Fastapi Todo Listapp Mcpserver
A modern to-do list application based on FastAPI and the MCP protocol, supporting complete CRUD operations, task statistics, and integrating with the Gemini CLI through the FastMCP server to achieve natural language task management.
rating : 2 points
downloads : 6.4K
What is FastAPI Todo List with MCP Server?
This is a to-do list management system that combines modern web technologies with artificial intelligence interaction. It consists of two core components: 1) A RESTful API server based on FastAPI, providing complete task management functions; 2) A server based on the Model Context Protocol (MCP), allowing you to manage tasks by conversing with the Gemini CLI in natural language.How to use this service?
You can use it in two ways: 1) Directly access the FastAPI web interface or API endpoints to manage tasks; 2) Use natural language commands (such as 'Show all my tasks' or 'Create a new task') through the Gemini CLI to manage tasks. The system will automatically synchronize operations from both methods.Use cases
Suitable for users who need to efficiently manage personal or team tasks, especially those who want to operate quickly through natural language without frequently switching interfaces. It is also suitable for developers to learn the integration of FastAPI and the MCP server.Main features
Complete task management
Supports creating, reading, updating, and deleting to-do items. Each task includes a title, description, and completion status.
Real-time statistics dashboard
Automatically calculates the total number of tasks, the number of completed tasks, the number of pending tasks, and the completion percentage to help you understand your work progress.
MCP server integration
Connects to the Gemini CLI through the Model Context Protocol, allowing you to manage tasks using natural language.
Natural language interaction
No need to memorize complex commands. You can manage tasks by simply conversing with Gemini in everyday language.
Preloaded sample data
The system includes 5 sample tasks to help you start experiencing immediately without creating from scratch.
Complete API documentation
Automatically generated interactive API documentation that supports online testing of all endpoints.
Advantages
Dual access methods: You can manage tasks through the web interface/API or through natural language interaction.
Easy to deploy: Only two Python files are required, with simple dependencies and quick startup.
Modern technology stack: Uses modern Python frameworks such as FastAPI and Pydantic.
Real-time synchronization: Operations through the MCP server and API are synchronized in real-time.
Learning-friendly: Includes sample data and complete documentation, suitable for learning and demonstration.
Limitations
Requires running two services: The FastAPI server and the MCP server need to be started separately.
Depends on external tools: You need to install and configure the Gemini CLI to use the natural language function.
Basic functions: Currently focuses on core task management and lacks advanced features such as tags, priorities, and deadlines.
Single-machine deployment: The default configuration is for local running. Additional configuration is required to support multiple users or remote access.
How to use
Install dependencies
Make sure Python 3.8+ is installed, and then install all the Python packages required for the project.
Start the FastAPI server
Start the main API server in the first terminal window. This will provide the web interface and REST API.
Start the MCP server
Start the MCP server in the second terminal window. This will connect FastAPI and the Gemini CLI.
Configure the Gemini CLI
Make sure the Gemini CLI is installed and correctly configured. The configuration file is located at .gemini/settings.json.
Start using
Now you can access the API documentation through a browser or use natural language to manage tasks through the Gemini CLI.
Usage examples
Daily task management
You are planning your daily work and need to quickly view, add, and update tasks.
Progress tracking
A project manager needs to understand the team's task completion status and prepare a progress report.
Batch task cleaning
Clean up completed tasks on weekends to organize the workspace.
Team collaboration demonstration
Demonstrate to team members how to manage shared tasks through different methods.
Frequently Asked Questions
Do I need to run two servers simultaneously?
What if port 8000 is already occupied?
Where is the data stored? Will it be lost after restarting?
Can I add task tags or deadlines?
How can I let others access my to-do list?
What is the MCP server? Why do I need it?
Related resources
FastAPI official documentation
A complete guide and tutorial for learning the FastAPI framework.
Model Context Protocol (MCP) introduction
Understand the technical specifications and design concepts of the MCP protocol.
Gemini CLI installation guide
How to install and configure the Google Gemini command-line tool.
Project demonstration video
Watch a practical operation demonstration of FastAPI Todo List with MCP Server.
Similar projects on GitHub
Explore more implementations of to-do list applications based on FastAPI.

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
17.5K
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
27.6K
5 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.6K
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
55.3K
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
24.3K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
52.4K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.2K
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
35.7K
4.8 points
