MCP server and importable AI tools for the Todoist Comms API. Use the tools through an MCP server, or import them directly to plug Comms into your own AI conversational interface.
MCP server URL (Streamable HTTP): https://ai.todoist.net/mcp/comms
Add it to your AI client and sign in with your Todoist account. You don't need an API key or to run the server yourself.
- Open Settings → Connectors → Add custom connector
- Enter
https://ai.todoist.net/mcp/commsand complete OAuth authentication
claude mcp add --transport http comms https://ai.todoist.net/mcp/commsThen launch claude, run /mcp, and select the comms server to
authenticate.
~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
{
"mcpServers": {
"comms": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://ai.todoist.net/mcp/comms"]
}
}
}Run MCP: Add Server from the Command Palette, pick HTTP, and enter
the URL. Or add it to .vscode/mcp.json:
{
"servers": {
"comms": {
"type": "http",
"url": "https://ai.todoist.net/mcp/comms"
}
}
}npx -y mcp-remote https://ai.todoist.net/mcp/commsTo run the server yourself over stdio, pass it a Comms API key:
{
"mcpServers": {
"comms": {
"command": "npx",
"args": ["-y", "@todoist/comms-mcp"],
"env": {
"COMMS_API_KEY": "your-comms-api-key-here"
}
}
}
}VS Code uses servers instead of mcpServers. In Claude Code:
claude mcp add comms npx @todoist/comms-mcp
export COMMS_API_KEY=your-comms-api-key-hereBy default the server talks to https://comms.todoist.com. To point at
staging or a custom deployment, also set COMMS_BASE_URL:
"env": {
"COMMS_API_KEY": "your-comms-api-key-here",
"COMMS_BASE_URL": "https://comms.staging.todoist.com"
}Comms accepts your Todoist API token. In Todoist, open Settings →
Integrations → Developer and copy the API token, then export it as
COMMS_API_KEY (or paste it into the MCP client config above). It has
full access to your account, so keep it secret.
npm install @todoist/comms-mcpThis package was previously published as @doist/comms-mcp.
Example with Vercel's AI SDK:
import { fetchInbox, reply, markDone } from '@todoist/comms-mcp'
import { streamText } from 'ai'
const result = streamText({
model: yourModel,
system: 'You are a helpful Comms assistant',
tools: {
fetchInbox,
reply,
markDone,
},
})The tools are intentionally workflow-shaped rather than 1:1 wrappers around API endpoints, so an LLM can complete a useful action with a small number of calls.
- userInfo — Information about the current user, including their status
- updateUserInfo — Change the user's name, timezone, language or status. The status is shared with Todoist (message, emoji, end, paused notifications or Karma). Over an OAuth connection this needs the
user:writescope - fetchInbox — Threads and conversations from the inbox
- loadThread — Load a thread with its comments
- loadConversation — Load a conversation with its messages
- searchConten 94C1 t — Search a workspace for threads, comments, and messages
- getMentions — Threads, comments, and messages mentioning the current user
- listThreads — A channel's threads, or every thread you can see in a workspace, most recently active first, filtered by date
- create-channel / update-channel — Create or update workspace channels through MCP
- createThread — Start a new channel thread. Accepts an optional
displayInInboxboolean (defaultfalse). Whentrue, the thread is unarchived after creation so it appears in the author's Inbox. See also COMMS_CREATE_THREAD_DISPLAY_IN_INBOX. - updateObject / deleteObject — Edit or remove a thread, comment, or message
- reply — Reply to a thread or conversation, marking it read for you through the reply (pass
markAsRead: falseto leave it unread). On a thread, an optionalthreadAction(closeorreopen) closes the thread for everyone with the reply, or reopens it. This differs from markDone, which only archives the thread in your own inbox - react — Add a reaction to a thread, comment, conversation, or message
- pin — Pin or unpin a thread comment or a conversation message
- markDone — Mark threads or conversations as read and/or archived
- markRead — Mark threads and/or conversations as read without archiving them (specific IDs, or everything unread in a workspace)
- buildLink — Build URLs to Comms resources
- listChannels / getGroups / getUsers / getWorkspaces — Discovery helpers
For details, see src/tools.
The server also serves skills over the io.modelcontextprotocol/skills extension: workflows a client loads only when a task calls for them.
- catch-up: gather what is unread and what mentions the user across their workspaces, sort it by what needs them, then reply, mark done or mark read as they agree.
- post-a-message: choose between a thread reply, a new thread, a direct message and a group chat, resolve names to IDs, write mentions, and notify exactly the right people.
- find-and-summarise: recap a channel or workspace over a period with
list-threads, or find everything said about a topic withsearch-content, then summarise what was decided and what is still open, linking each thread.
They live in src/skills/, one file per skill, and src/skills/skills.ts lists them. Serving them comes from @todoist/mcp-core/skills, which needs @modelcontextprotocol/server 2.4 or later. Only some clients load skills, so routing and safety rules stay in the instructions and the tool descriptions, which must never route to a skill. In a skill, bold is reserved for tool names (**fetch-inbox**). src/skills/skills.test.ts runs mcp-core's describeServedSkills, which checks that the server serves exactly these skills, that every tool a skill names in bold exists, and that the instructions don't mention skills.
| Variable | Default | Description |
|---|---|---|
COMMS_API_KEY |
(required) | Your Comms API key. |
COMMS_CREATE_THREAD_DISPLAY_IN_INBOX |
false |
Set to true to unarchive every newly-created thread so it appears in the author's Inbox, without needing to pass displayInInbox: true on each call. Only takes effect when running the MCP locally. The remote/hosted MCP does not have this variable set and will use the per-call displayInInbox parameter only. |
- MCP server uses the official @modelcontextprotocol/server
- Comms TypeScript SDK @todoist/comms-sdk
- Node.js 20.18.1+
- npm
- A Comms API token
git clone https://github.com/todoist/comms-mcp.git
cd comms-mcp
npm install
cp .env.example .env # then add your COMMS_API_KEY
npm run buildnpm start— Build and run the MCP inspectornpm run dev— Watch mode with auto-restartnpm test— Vitestnpm run type-check— TypeScriptnpm run format:check/npm run format:fix— oxlint + oxfmt
npx tsx scripts/run-tool.ts user-info '{}'
npx tsx scripts/run-tool.ts --list- Tests pass (
npm test) - Types pass (
npm run type-check) - Lint & format pass (
npm run format:check)
Use Conventional Commits — feat:, fix:, docs:, test:, chore:.
MIT