Todo MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Todo MCP Serverlist all todos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Todo App - FastAPI to MCP Conversion
This project demonstrates how to create a FastAPI todo application and convert it to an MCP (Model Context Protocol) server.
Project Structure
├── main.py # FastAPI application
├── models.py # Pydantic models for data validation
├── database.py # In-memory database operations
├── mcp_server.py # MCP server implementation
├── mcp_config.json # MCP server configuration
├── test_mcp.py # Test script for MCP server
├── requirements.txt # Python dependencies
└── README.md # This fileRelated MCP server: Coding Todo Server
Features
FastAPI Application
RESTful API endpoints for todo management
CRUD operations (Create, Read, Update, Delete)
Data validation with Pydantic models
In-memory storage for simplicity
MCP Server
Converts FastAPI functionality to MCP tools
5 available tools: list_todos, get_todo, create_todo, update_todo, delete_todo
Compatible with MCP clients and AI assistants
Installation
Create and activate a virtual environment:
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activateInstall dependencies:
pip install -r requirements.txtUsage
Running the FastAPI Application
python main.pyThe API will be available at http://localhost:8000
API Endpoints:
GET /- Welcome messageGET /todos- List all todosGET /todos/{id}- Get specific todoPOST /todos- Create new todoPUT /todos/{id}- Update todoDELETE /todos/{id}- Delete todo
Running the MCP Server
python mcp_server.pyThe MCP server provides these tools:
list_todos- Get all todosget_todo- Get specific todo by IDcreate_todo- Create new todoupdate_todo- Update existing tododelete_todo- Delete todo
Testing the MCP Server
python test_mcp.pyThis will run a comprehensive test of all MCP server functionality.
API Examples
FastAPI Examples
Create a todo:
curl -X POST "http://localhost:8000/todos" \
-H "Content-Type: application/json" \
-d '{"title": "Learn MCP", "description": "Study Model Context Protocol", "status": "pending"}'Get all todos:
curl "http://localhost:8000/todos"MCP Tool Examples
The MCP server can be used with MCP-compatible clients. The tools accept JSON arguments and return structured responses.
Data Models
Todo Model
id: Integer (auto-generated)title: String (required)description: String (optional)status: Enum (pending, in_progress, completed)created_at: DateTime (auto-generated)updated_at: DateTime (auto-updated)
Status Values
pending: Todo is not startedin_progress: Todo is being worked oncompleted: Todo is finished
Development
The project uses:
FastAPI for the REST API
Pydantic for data validation
MCP for the protocol server
asyncio for asynchronous operations
Notes
The database is in-memory and will reset when the application restarts
The MCP server runs in stdio mode for easy integration
Both the FastAPI app and MCP server share the same data models and business logic
MCP-Server
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, list, and complete todo items through MCP.
- mcpOAuthnet.todoist
Official Todoist MCP server for AI assistants to manage tasks, projects, and workflows.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.7 npm46MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools and resources for managing a coding project's todo list, allowing users to view, add, update, and delete todo items with details like priority, status, and tags.1-
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes a TODO list API to AI assistants, enabling natural language management of tasks with create, read, update, and delete operations.-
- AlicenseNot gradedqualityCmaintenanceA CRUD todo list server that exposes tools to create, list, and conclude tasks, compatible with any MCP host.1 npmMIT