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-mcp
2. 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
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 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.
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
-
Make your changes using Conventional Commits:
feat: for new features (minor version bump)
fix: for bug fixes (patch version bump)
feat!: or fix!: for breaking changes (major version bump)
docs: for documentation changes
chore: for maintenance tasks
ci: for CI changes
-
When commits are pushed to main:
- Release-please automatically creates/updates a release PR
- The PR includes version bump and changelog updates
- Review the PR and merge when ready
-
After merging the release PR:
- A new GitHub release is automatically created
- A new tag is created
- The
publish workflow is triggered
- The package is published to npm