This MCP server implementation allows AI assistants to manage persistent tasks through the Model Context Protocol. By connecting to this server, AI models can create, track, and update tasks that persist beyond their normal context limitations.
git clone https://github.com/yourusername/tiny-todo-mcp.git
cd tiny-todo-mcp
pip install -r requirements.txt
python -m tiny_todo_mcp.init_db
Start the MCP server with the following command:
python -m tiny_todo_mcp.server
By default, the server runs on port 8000. You can specify a different port using the --port
argument:
python -m tiny_todo_mcp.server --port 8080
AI assistants can connect to the MCP server through HTTP requests. The base URL format is:
http://localhost:8000/mcp
{
"name": "create_todo",
"parameters": {
"title": "Buy groceries",
"description": "Need to get milk, eggs, and bread",
"due_date": "2023-11-30"
}
}
{
"name": "update_todo",
"parameters": {
"todo_id": 1,
"completed": true
}
}
{
"name": "list_todos",
"parameters": {
"completed": false
}
}
{
"name": "get_todo",
"parameters": {
"todo_id": 1
}
}
{
"name": "delete_todo",
"parameters": {
"todo_id": 1
}
}
{
"name": "find_upcoming_todos",
"parameters": {
"days": 7
}
}
{
"name": "find_overdue_todos",
"parameters": {}
}
When configuring your AI assistant, provide the MCP server URL in your system prompt or configuration. For example:
You have access to a todo management system through MCP at http://localhost:8000/mcp.
The AI can then use the various todo operations by making appropriate calls to the MCP server, allowing it to maintain persistent task information across user sessions.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "tiny-todo-mcp" '{"command":"npx","args":["-y","tinyt-todo-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"tiny-todo-mcp": {
"command": "npx",
"args": [
"-y",
"tinyt-todo-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"tiny-todo-mcp": {
"command": "npx",
"args": [
"-y",
"tinyt-todo-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect