This MCP server implementation allows Cursor AI assistants to interact with your Todoist tasks directly from your coding environment, making task management seamless while you work on your code.
Clone the repository and navigate to the project directory:
git clone https://github.com/mingolladaniele/todoist-mcp.git
cd todoist-mcp
Install all required packages:
pip install -r requirements.txt
Set your Todoist API token as an environment variable:
# Linux/macOS
export TODOIST_API_TOKEN="your-api-token-here"
# Windows
set TODOIST_API_TOKEN="your-api-token-here"
You can find your Todoist API token in Todoist settings → Integrations → Developer.
Start the MCP server with:
python server.py
Create or edit the MCP configuration file on your system:
Windows: C:\Users\<username>\.cursor\mcp.json
{
"mcpServers": {
"todoist-mcp": {
"command": "C:/Users/<username>/path/to/todoist-mcp/.venv/Scripts/python.exe",
"args": [
"C:/Users/<username>/path/to/todoist-mcp/server.py"
],
"env": {
"TODOIST_API_TOKEN": "your-api-token-here"
}
}
}
}
Replace <username>
and paths with your actual username and the correct paths to your installation.
After configuring, go to Cursor Settings → MCP and verify that the server is running (indicated by a green dot).
The MCP tool provides powerful filtering capabilities for retrieving your tasks.
"today"
"overdue"
"Jan 3"
"due before: May 5"
"due after: May 5"
"due before: +4 hours"
"no date"
"5 days"
or "next 5 days"
"recurring"
When using Cursor AI, you can request tasks with filters like:
The assistant will use the appropriate filter to retrieve and display your tasks with their priority levels, due dates, and other relevant information.
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 > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.