Fastapi Todo Listapp Mcpserver
F

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.
2 points
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.

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "todo-mcp-server": {
      "command": "python3",
      "args": ["mcp_server.py"],
      "cwd": "/home/okki/Desktop/projects/fast-apimcp"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
5.9K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
9.9K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
8.2K
4 points
M
MCP Agent Mail
MCP Agent Mail is a mail - based coordination layer designed for AI programming agents, providing identity management, message sending and receiving, file reservation, and search functions, supporting asynchronous collaboration and conflict avoidance among multiple agents.
Python
9.5K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
13.1K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
8.7K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
10.0K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
10.9K
5 points
G
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
M
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
N
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
D
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
U
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
F
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
G
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
M
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
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase