Skip to main content
Glama

Todoist MCP

by Doist
import type { TodoistApi } from '@doist/todoist-api-typescript' import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js' export function registerGetLabels(server: McpServer, api: TodoistApi) { server.tool('get-labels', 'Get all labels in Todoist', {}, async () => { let response = await api.getLabels() const labels = response.results while (response.nextCursor) { response = await api.getLabels({ cursor: response.nextCursor }) labels.push(...response.results) } return { content: labels.map((label) => ({ type: 'text', text: JSON.stringify(label, null, 2), })), } }) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Doist/todoist-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server