todo-mcp-server
Enables Gemini CLI and other AI assistants to manage todos (create, read, update, delete, filter) through natural language commands via the Model Context Protocol.
README
Todo List App with FastAPI and MCP Integration
A complete todo list application with a modern web interface, REST API built with FastAPI, and Model Context Protocol (MCP) integration for Gemini CLI.
Features
Backend API
- Create, read, update, and delete todos
- Mark todos as completed or pending
- Filter todos by completion status
- Automatic API documentation with Swagger UI
- RESTful API endpoints
Frontend Interface
- Modern, responsive web interface
- Interactive todo management
- Real-time statistics
- Filter todos by status (All, Pending, Completed)
- Edit and delete todos with confirmation
- Beautiful gradient design with animations
- Mobile-friendly responsive layout
MCP Integration
- Model Context Protocol (MCP) server for AI assistant integration
- Gemini CLI support - Control your todos through natural language
- FastMCP framework for seamless AI integration
- Complete tool set for todo management via AI
- Natural language interface for todo operations
Setup
Basic Setup
-
Activate the virtual environment:
source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt -
Run the application:
python main.pyOr alternatively:
uvicorn main:app --reload
MCP Integration Setup
For AI assistant integration with Gemini CLI:
-
Start both services (FastAPI app + MCP server):
./start_services.sh -
Configure Gemini CLI by adding to your Gemini config:
{ "mcpServers": { "todo-mcp-server": { "command": "/path/to/your/project/venv/bin/python", "args": ["mcp_server.py"], "cwd": "/path/to/your/project" } } } -
Test with Gemini CLI:
- "Show me all my todos"
- "Create a new todo called 'Learn FastAPI'"
- "Mark todo as complete"
- "What's my completion rate?"
See MCP_INTEGRATION_GUIDE.md for detailed setup instructions.
API Endpoints
GET /- Welcome messageGET /todos- Get all todosGET /todos/{todo_id}- Get a specific todoPOST /todos- Create a new todoPUT /todos/{todo_id}- Update a todoDELETE /todos/{todo_id}- Delete a todoGET /todos/completed- Get completed todosGET /todos/pending- Get pending todos
Access the Application
Once the server is running, visit:
- Web Interface: http://localhost:8000 (Main todo list interface)
- API Documentation: http://localhost:8000/docs (Swagger UI)
- Alternative API Docs: http://localhost:8000/redoc
Example Usage
Create a new todo:
curl -X POST "http://localhost:8000/todos" \
-H "Content-Type: application/json" \
-d '{"title": "Learn FastAPI", "description": "Build a todo API", "completed": false}'
Get all todos:
curl -X GET "http://localhost:8000/todos"
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.