todoist-mcp
A set of tools to connect to AI agents, to allow them to use Todoist on a user's behalf. Includes MCP support.
Documentation
Todoist MCP Server
Library for connecting AI agents to Todoist. Includes tools that can be integrated into LLMs,
enabling them to access and modify a Todoist account on the user's behalf.
These tools can be used both through an MCP server, or imported directly in other projects to
integrate them to your own AI conversational interfaces.
Using tools
1. Add this repository as a dependency
npm install @doist/todoist-mcp2. Import the tools and plug them to an AI
Here's an example using Vercel's AI SDK.
import { findTasksByDate, addTasks } from '@doist/todoist-mcp'
import { TodoistApi } from '@doist/todoist-sdk'
import { streamText } from 'ai'
// Create Todoist API client
const client = new TodoistApi(process.env.TODOIST_API_KEY)
// Helper to wrap tools with the client
function wrapTool(tool, todoistClient) {
return {
...tool,
execute(args) {
return tool.execute(args, todoistClient)
},
}
}
const result = streamText({
model: yourModel,
system: 'You are a helpful Todoist assistant',
tools: {
findTasksByDate: wrapTool(findTasksByDate, client),
addTasks: wrapTool(addTasks, client),
},
})Using as an MCP server
Quick Start
You can run the MCP server directly with npx:
npx @doist/todoist-mcpSetup Guide
The Todoist MCP server is available as a streamable HTTP service for easy integration with various AI clients:
Primary URL (Streamable HTTP): `https://ai.todoist.net/mcp`
Claude Desktop
1. Open Settings → Connectors → Add custom connector
2. Enter `https://ai.todoist.net/mcp` and complete OAuth authentication
Cursor
Create a configuration file:
- Global: `~/.cursor/mcp.json`
- Project-specific: `.cursor/mcp.json`
{
"mcpServers": {
"todoist": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://ai.todoist.net/mcp"]
}
}
}Then enable the server in Cursor settings if prompted.
Claude Code (CLI)
The fastest setup is the official Todoist plugin, which wires up the MCP server for you:
/plugin marketplace add doist/todoist-mcp
/plugin install todoist@doistOAuth runs in your browser the first time you use a Todoist tool. See Anthropic's plugin docs for more.
If you'd rather configure the MCP server manually, run:
claude mcp add --transport http todoist https://ai.todoist.net/mcpThen launch `claude`, execute `/mcp`, and select the `todoist` MCP server to authenticate.
Visual Studio Code
1. Open Command Palette → MCP: Add Server
2. Select HTTP transport and use:
{
"servers": {
"todoist": {
"type": "http",
"url": "https://ai.todoist.net/mcp"
}
}
}Other MCP Clients
npx -y mcp-remote https://ai.todoist.net/mcpFor more details on setting up and using the MCP server, including creating custom servers, see docs/mcp-server.md.
Features
A key feature of this project is that tools can be reused, and are not written specifically for use in an MCP server. They can be hooked up as tools to other conversational AI interfaces (e.g. Vercel's AI SDK).
This project is in its early stages. Expect more and/or better tools soon.
Nevertheless, our goal is to provide a small set of tools that enable complete workflows, rather than just atomic actions, striking a balance between flexibility and efficiency for LLMs.
For our design philosophy, guidelines, and development patterns, see docs/tool-design.md.
Available Tools
For a complete list of available tools, see the src/tools directory.
OpenAI MCP Compatibility
This server includes `search` and `fetch` tools that follow the OpenAI MCP specification, enabling seamless integration with OpenAI's MCP protocol. These tools return JSON-encoded results optimized for OpenAI's requirements while maintaining compatibility with the broader MCP ecosystem.
Dependencies
- MCP server using the official @modelcontextprotocol/server
- Todoist Typescript API client @doist/todoist-sdk
MCP Server Setup
See docs/mcp-server.md for full instructions on setting up the MCP server.
Local Development Setup
See docs/dev-setup.md for full setup instructions and CONTRIBUTING.md for contributor workflows and quality checks.
MCP Apps
This project includes support for MCP Apps – interactive UI widgets rendered inline in AI chat interfaces. Widgets provide rich visual representations of tool outputs (e.g., task lists) instead of plain text.
See docs/mcp-apps.md for the widget architecture, build pipeline, and development workflow.
Quick Start
After cloning and setting up the repository:
- `npm start` - Build and run the MCP inspector for testing
- `npm run dev` - Development mode with auto-rebuild and restart
- `npm run tool:list` - List available tools for direct execution
- `npm run tool -- ''` - Run a tool directly without MCP
When using `npm run tool`, include `--` before tool arguments so npm forwards them to `scripts/run-tool.ts`.
Example check before write operations:
`npm run tool -- user-info '{}'`
This confirms which Todoist account the current `TODOIST_API_KEY` is connected to.
`run-tool` uses `TODOIST_API_KEY` from your `.env` file (created from `.env.example` by `npm run setup`). Use a test account or a temporary project when running write operations to avoid modifying real data.
Contributing
See CONTRIBUTING.md for:
- Development workflow
- Running tools directly with `scripts/run-tool.ts`
- Testing and quality checks
- Commit conventions
Releasing
This project uses release-please to automate version management and package publishing.
How it works
1. Make your changes using Conventional Commits:
2. When commits are pushed to `main`:
3. After merging the release PR:
Frequently asked questions
What is todoist-mcp?
todoist-mcp is A set of tools to connect to AI agents, to allow them to use Todoist on a user's behalf. Includes MCP support.
How do I install todoist-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is todoist-mcp open source?
Yes — it is hosted on GitHub at https://github.com/Doist/todoist-mcp and has 540 stars.
Related MCP tools
Browser automation clicks buttons. OpenTabs calls APIs.
Code research platform for AI agents; find, understand, and prove context across your code and all of GitHub, in a fraction of the tokens. One toolset, MCP or CLI
Give your AI agent eyes for PDFs — structured text, tables, OCR, visual evidence, and page-level citations via MCP. Native Rust, local-first.
MCP server helping models to understand your Vite/Nuxt app better.
Allow AI to wade through complex OpenAPIs using Simple Language
gcloud MCP server
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP