Todo for AI MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Todo for AI MCP ServerList all pending tasks for the Website Redesign project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Todo for AI MCP Server
δΈζηζ¬ | English
A Model Context Protocol (MCP) server that provides AI assistants with access to the Todo for AI task management system. This allows AI assistants to retrieve tasks, get project information, create new tasks, and submit task feedback through a standardized interface.
π Try it now: Visit https://todo4ai.org/ to experience our product!
Features
π Get Project Tasks: Retrieve pending tasks for a specific project with status filtering
π Get Task Details: Fetch detailed information about individual tasks with project context
β Create Tasks: Create new tasks with full metadata support
β Submit Feedback: Update task status and provide completion feedback
π Project Information: Get comprehensive project statistics and recent tasks
π Automatic Retry: Built-in retry mechanism for network failures
π Comprehensive Logging: Detailed logging with configurable levels
βοΈ Flexible Configuration: Environment variables and config file support
π‘οΈ Type Safety: Full TypeScript support with strict type checking
π Performance: Optimized build with incremental compilation
π HTTP Transport: Modern HTTP-based communication using Streamable HTTP protocol
π Security: DNS rebinding protection, CORS support, and origin validation
π‘ Real-time: Server-Sent Events (SSE) support for real-time communication
π Session Management: Automatic session handling with timeout and cleanup
Related MCP server: Todoist MCP Server
Installation
From npm (Recommended)
npm install -g @todo-for-ai/mcpFrom Source
git clone <repository-url>
cd todo-mcp
npm install
npm run build
npm linkConfiguration
Transport Type
The MCP server uses HTTP Transport: Modern HTTP-based communication with Server-Sent Events (SSE) support for real-time communication.
Environment Variables
Create a .env file or set environment variables:
# Required: API authentication token
TODO_API_TOKEN=your-api-token
# Optional: Todo API base URL (default: https://todo4ai.org/todo-for-ai/api/v1)
TODO_API_BASE_URL=http://localhost:50110/todo-for-ai/api/v1
# Optional: API timeout in milliseconds (default: 10000)
TODO_API_TIMEOUT=10000
# HTTP Transport Configuration
# Optional: HTTP server port (default: 3000)
TODO_HTTP_PORT=3000
# Optional: HTTP server host (default: 127.0.0.1)
TODO_HTTP_HOST=127.0.0.1
# Optional: Session timeout in milliseconds (default: 300000 = 5 minutes)
TODO_SESSION_TIMEOUT=300000
# Optional: Enable DNS rebinding protection (default: true)
TODO_DNS_PROTECTION=true
# Optional: Allowed origins for CORS (comma-separated, default: http://localhost:*,https://localhost:*)
TODO_ALLOWED_ORIGINS=http://localhost:*,https://localhost:*
# Optional: Maximum concurrent connections (default: 100)
TODO_MAX_CONNECTIONS=100
# Optional: Log level (default: info)
LOG_LEVEL=info
# Optional: Environment (default: development)
NODE_ENV=developmentConfiguration File
Alternatively, create a config.json file:
{
"apiBaseUrl": "https://todo4ai.org/todo-for-ai/api/v1",
"apiTimeout": 10000,
"apiToken": "your-api-token",
"logLevel": "info"
}Usage
Command Line
HTTP Transport
# Start with HTTP transport on default port 3000
todo-for-ai-mcp --api-token your-token
# HTTP transport with custom port and host
todo-for-ai-mcp --api-token your-token --http-port 8080 --http-host 0.0.0.0
# HTTP transport with session timeout and security options
todo-for-ai-mcp --api-token your-token \
--session-timeout 600000 \
--dns-protection \
--allowed-origins "http://localhost:*,https://localhost:*"
# Using environment variables for HTTP transport
TODO_API_TOKEN=your-token \
TODO_HTTP_PORT=3000 \
TODO_HTTP_HOST=127.0.0.1 \
todo-for-ai-mcp
# With environment variables
TODO_API_BASE_URL=http://your-server:8080 TODO_API_TOKEN=your-token todo-for-ai-mcp
# With command line arguments
todo-for-ai-mcp --api-base-url http://your-server:8080 --api-token your-token --log-level debug
# Mixed configuration (CLI args take priority over environment variables)
TODO_API_BASE_URL=http://localhost:50110 todo-for-ai-mcp --api-token your-token --log-level infoConfiguration Options
The MCP server supports configuration through both command line arguments and environment variables, with the following priority order:
Priority: Command Line Arguments > Environment Variables > Defaults
Configuration | CLI Argument | Environment Variable | Default |
API Base URL |
|
|
|
API Token |
|
| Required |
API Timeout |
|
|
|
Log Level |
|
|
|
| HTTP Port | --http-port | TODO_HTTP_PORT | 3000 |
| HTTP Host | --http-host | TODO_HTTP_HOST | 127.0.0.1 |
| Session Timeout | --session-timeout | TODO_SESSION_TIMEOUT | 300000 (ms) |
| DNS Protection | --dns-protection | TODO_DNS_PROTECTION | true (for http) |
| Allowed Origins | --allowed-origins | TODO_ALLOWED_ORIGINS | http://localhost:*,https://localhost:* |
| Max Connections | --max-connections | TODO_MAX_CONNECTIONS | 100 |
Additional Options:
Option | CLI Argument | Description |
Help |
| Show help message and exit |
Version |
| Show version information and exit |
Examples:
# Show help information
todo-for-ai-mcp --help
todo-for-ai-mcp -h
# Show version information
todo-for-ai-mcp --version
todo-for-ai-mcp -v
# Using command line arguments (API token is required)
todo-for-ai-mcp --api-token your-token --log-level debug
# Using environment variables
export TODO_API_TOKEN="your-token"
export LOG_LEVEL="info"
todo-for-ai-mcp
# Using custom API base URL
todo-for-ai-mcp --api-base-url http://localhost:50110/todo-for-ai/api/v1 --api-token your-token
# Mixed approach (CLI args override env vars)
TODO_API_TOKEN=your-token todo-for-ai-mcp --log-level debugHTTP Transport Usage
When using HTTP transport, the MCP server runs as a standalone HTTP server that can be accessed via REST API and Server-Sent Events (SSE).
Starting HTTP Server
# Start HTTP server on default port 3000
todo-for-ai-mcp --api-token your-token --transport http
# The server will be available at:
# - Health check: http://127.0.0.1:3000/health
# - MCP endpoint: http://127.0.0.1:3000/mcpHTTP Endpoints
GET /health: Health check endpoint
POST /mcp: Client-to-server communication (JSON-RPC)
GET /mcp: Server-to-client notifications (SSE)
DELETE /mcp: Session termination
Session Management
HTTP transport uses session-based communication:
Initialize: Send an
initializerequest to create a new sessionSession ID: Server returns a session ID in the
Mcp-Session-IdheaderSubsequent requests: Include the session ID in all future requests
Cleanup: Sessions automatically expire after the configured timeout
Example HTTP Client Usage
// Initialize session
const initResponse = await fetch('http://127.0.0.1:3000/mcp', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'initialize',
params: {
protocolVersion: '2024-11-05',
capabilities: { tools: {} },
clientInfo: { name: 'my-client', version: '1.0.0' }
}
})
});
const sessionId = initResponse.headers.get('Mcp-Session-Id');
// Use session for subsequent requests
const toolsResponse = await fetch('http://127.0.0.1:3000/mcp', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Mcp-Session-Id': sessionId
},
body: JSON.stringify({
jsonrpc: '2.0',
id: 2,
method: 'tools/list',
params: {}
})
});IDE Integration
Claude Desktop
Note: Claude Desktop currently supports Stdio transport. For HTTP transport support, you'll need to start the server separately and use a custom MCP client that supports HTTP transport.
Traditional Stdio configuration (if supported):
{
"mcpServers": {
"todo-for-ai": {
"command": "npx",
"args": [
"-y", "@todo-for-ai/mcp@latest",
"--api-token", "your-api-token-here"
]
}
}
}Alternative with environment variables:
{
"mcpServers": {
"todo-for-ai": {
"command": "npx",
"args": ["-y", "@todo-for-ai/mcp@latest"],
"env": {
"TODO_API_TOKEN": "your-api-token-here"
}
}
}
}For local development (custom API base URL):
{
"mcpServers": {
"todo-for-ai": {
"command": "npx",
"args": [
"-y", "@todo-for-ai/mcp@latest",
"--api-base-url", "http://localhost:50110/todo-for-ai/api/v1",
"--api-token", "your-api-token-here"
]
}
}
}HTTP transport setup:
Start the HTTP server separately:
# Terminal 1: Start the MCP server in HTTP mode
TODO_API_TOKEN=your-token todo-for-ai-mcp --http-port 3000The server will be available at
http://127.0.0.1:3000/mcpfor custom MCP clients that support HTTP transport.
Cursor IDE
Add to your Cursor configuration:
{
"mcpServers": {
"todo-for-ai": {
"command": "npx",
"args": [
"-y", "@todo-for-ai/mcp@latest",
"--api-token", "your-api-token-here"
]
}
}
}Local Development
For development with local Todo for AI server:
{
"mcpServers": {
"todo-for-ai-local": {
"command": "node",
"args": ["/path/to/todo-mcp/dist/index.js"],
"env": {
"TODO_API_BASE_URL": "http://localhost:50110",
"LOG_LEVEL": "debug"
}
}
}
}Available Tools
1. get_project_tasks_by_name
Get all pending tasks for a project by name.
Parameters:
project_name(string, required): Name of the projectstatus_filter(array, optional): Filter by task status (default: ["todo", "in_progress", "review"])
Example:
{
"project_name": "My Project",
"status_filter": ["todo", "in_progress"]
}2. get_task_by_id
Get detailed information about a specific task.
Parameters:
task_id(integer, required): ID of the task to retrieve
Example:
{
"task_id": 123
}3. create_task
Create a new task in the specified project.
Parameters:
project_id(integer, required): ID of the projecttitle(string, required): Task titlecontent(string, optional): Task content/descriptionstatus(string, optional): Initial status (default: "todo")priority(string, optional): Task priority (default: "medium")due_date(string, optional): Due date in YYYY-MM-DD formatassignee(string, optional): Person assigned to the tasktags(array, optional): Tags associated with the taskis_ai_task(boolean, optional): Whether this is an AI task (default: true)ai_identifier(string, optional): AI identifier (default: "MCP Client")
Example:
{
"project_id": 10,
"title": "Implement new feature",
"content": "Add user authentication to the application",
"status": "todo",
"priority": "high",
"due_date": "2024-12-31",
"tags": ["authentication", "security"]
}4. submit_task_feedback
Submit feedback and update status for a task.
Parameters:
task_id(integer, required): ID of the taskproject_name(string, required): Name of the projectfeedback_content(string, required): Feedback descriptionstatus(string, required): New status ("in_progress", "review", "done", "cancelled")ai_identifier(string, optional): AI identifier (default: "MCP Client")
Example:
{
"task_id": 123,
"project_name": "My Project",
"feedback_content": "Completed the implementation as requested",
"status": "done",
"ai_identifier": "Claude"
}5. get_project_info
Get detailed project information including statistics and recent tasks.
Parameters:
project_id(integer, optional): ID of the project to retrieveproject_name(string, optional): Name of the project to retrieve
Note: Either project_id or project_name must be provided.
Example:
{
"project_name": "My Project"
}6. list_agents
List Agent identities available to the current user.
Agent collaboration tools return a short operational summary first, followed by a JSON: block with the complete API response. Use the summary for the next action and the JSON block for exact IDs, states, lease timestamps, match scores, and event payloads.
Parameters:
status(string, optional): Filter by Agent status (active,paused,offline,disabled)search(string, optional): Search Agent name or descriptionpage(integer, optional): Page number (default: 1)per_page(integer, optional): Page size (default: 20)
Example:
{
"status": "active",
"per_page": 20
}7. create_agent
Create an Agent identity and declare its collaboration capabilities.
Parameters:
name(string, required): Agent display namedescription(string, optional): Agent purpose or operating noteskind(string, optional): Agent kind (assistant,autonomous,coordinator,external; default:assistant)status(string, optional): Initial Agent status (active,paused,offline,disabled; default:active)provider(string, optional): Provider namemodel(string, optional): Model or runtime identifiercapabilities(array of strings, optional): Capability keywords used for automatic task matchingconfig(object, optional): Agent configuration metadata
Example:
{
"name": "Frontend Builder",
"kind": "autonomous",
"provider": "openai",
"model": "gpt-5-codex",
"capabilities": ["frontend", "react", "typescript", "ui"]
}8. update_agent
Update an Agent identity, status, model metadata, or capabilities.
Parameters:
agent_id(integer, required): ID of the Agentname(string, optional): Agent display namedescription(string, optional): Agent purpose or operating noteskind(string, optional): Agent kind (assistant,autonomous,coordinator,external)status(string, optional): Agent status (active,paused,offline,disabled)provider(string, optional): Provider namemodel(string, optional): Model or runtime identifiercapabilities(array of strings, optional): Capability keywords used for automatic task matchingconfig(object, optional): Agent configuration metadata
Example:
{
"agent_id": 1,
"status": "active",
"capabilities": ["frontend", "react", "typescript", "review"]
}9. heartbeat_agent
Record an Agent heartbeat and optionally update its availability status.
Parameters:
agent_id(integer, required): ID of the Agentstatus(string, optional): New Agent status (active,paused,offline,disabled)
Example:
{
"agent_id": 1,
"status": "active"
}10. list_review_queue
List Agent assignments that need human feedback or final review.
For human_feedback items, resume the assignment with update_task_assignment using state: "running", task_status: "in_progress", and feedback_content so the worker Agent receives the human response. For final_review items, approve with state: "done" and task_status: "done", or send changes back with state: "running" plus feedback_content.
Parameters:
action(string, optional): Filter queue byall,human_feedback, orfinal_review(default:all)page(integer, optional): Page number (default: 1)per_page(integer, optional): Page size (default: 20)
Example:
{
"action": "final_review",
"per_page": 20
}11. list_agent_assignments
List task assignments for an Agent.
Parameters:
agent_id(integer, required): ID of the Agentstate(string, optional): Assignment state filterpage(integer, optional): Page number (default: 1)per_page(integer, optional): Page size (default: 20)
Example:
{
"agent_id": 1,
"state": "running"
}12. list_task_assignments
List Agent assignments for a task. Use state: "active" to see current non-terminal assignments with live leases.
Parameters:
task_id(integer, required): ID of the taskstate(string, optional): Assignment state filter, oractivepage(integer, optional): Page number (default: 1)per_page(integer, optional): Page size (default: 20)
Example:
{
"task_id": 42,
"state": "active"
}13. list_task_events
List collaboration events for a task so Agents can inspect handoffs, claims, review requests, assignment updates, and lease expirations.
Parameters:
task_id(integer, required): ID of the taskpage(integer, optional): Page number (default: 1)per_page(integer, optional): Page size (default: 20)
Example:
{
"task_id": 42,
"per_page": 20
}14. claim_agent_task
Claim a specific task, or the next claimable task, for an Agent. Claiming creates an assignment, starts an Agent run, and records a task collaboration event.
Parameters:
agent_id(integer, required): ID of the Agenttask_id(integer, optional): Specific task ID to claimproject_id(integer, optional): Project filter when claiming the next available tasklease_seconds(integer, optional): Lease duration in seconds (default: 1800)match_capabilities(boolean, optional): Prefer tasks whose tags or text match the Agent capabilities when claiming automatically (default: true)dispatch_source(string, optional): Set tohumanwhen manually dispatching a specific task to the Agentdispatch_notes(string, optional): Notes stored inrun_metadata.dispatch_notesfor a manual dispatchrun_metadata(object, optional): Runtime metadata
Example:
{
"agent_id": 1,
"project_id": 10,
"lease_seconds": 1800,
"match_capabilities": true
}Manual dispatch example:
{
"agent_id": 1,
"task_id": 42,
"lease_seconds": 1800,
"dispatch_source": "human",
"dispatch_notes": "Focus on the API contract and update tests before marking review."
}15. update_agent_assignment
Update an Agent assignment state, progress, feedback, lease, or execution result. Marking an assignment as done moves the task to review so a human can approve the final completion.
Parameters:
agent_id(integer, required): ID of the Agentassignment_id(integer, required): ID of the assignmentstate(string, optional): New assignment stateprogress_rate(integer, optional): Progress percent from 0 to 100notes(string, optional): Internal assignment notesfeedback_content(string, optional): Human-readable task feedbackoutput_summary(string, optional): Execution output summaryerror(string, optional): Execution error detailslease_seconds(integer, optional): Extend lease by this duration in secondstask_status(string, optional): Optional task status overriderun_metadata(object, optional): Runtime metadata
Example:
{
"agent_id": 1,
"assignment_id": 42,
"state": "done",
"progress_rate": 100,
"feedback_content": "Implementation completed and ready for review."
}16. update_task_assignment
Update a task assignment as the current user or coordinator. Use this with items from list_review_queue to approve final review, resume work, cancel an assignment, or add human feedback without acting as the worker Agent.
Parameters:
task_id(integer, required): ID of the taskassignment_id(integer, required): ID of the assignmentstate(string, optional): New assignment stateprogress_rate(integer, optional): Progress percent from 0 to 100notes(string, optional): Internal assignment notesfeedback_content(string, optional): Human-readable task feedbackoutput_summary(string, optional): Execution output summaryerror(string, optional): Execution error detailslease_seconds(integer, optional): Extend lease by this duration in secondstask_status(string, optional): Optional task status overriderun_metadata(object, optional): Runtime metadata
Examples:
{
"task_id": 42,
"assignment_id": 7,
"state": "done",
"progress_rate": 100,
"task_status": "done"
}{
"task_id": 42,
"assignment_id": 7,
"state": "running",
"task_status": "in_progress",
"feedback_content": "Please address the review comments and continue."
}Development
Prerequisites
Node.js 18+
npm or yarn
Todo for AI backend server running
Setup
# Clone and install
git clone <repository-url>
cd todo-mcp
npm install
# Copy environment file
cp .env.example .env
# Edit .env with your configuration
# Development mode
npm run dev
# Build
npm run build
# Test
npm test
# Lint
npm run lintProject Structure
todo-mcp/
βββ src/
β βββ index.ts # Main entry point
β βββ server.ts # MCP server implementation
β βββ api-client.ts # Todo API client
β βββ config.ts # Configuration management
β βββ logger.ts # Logging utilities
β βββ error-handler.ts # Error handling
β βββ types.ts # TypeScript types
βββ dist/ # Compiled JavaScript
βββ package.json
βββ tsconfig.json
βββ .env.example
βββ README.mdTroubleshooting
Common Issues
Connection Failed
Ensure Todo for AI backend is running
Check
TODO_API_BASE_URLis correctVerify network connectivity
Authentication Errors
Check if API token is required
Verify
TODO_API_TOKENis set correctly
Tool Not Found
Ensure MCP server is properly registered in IDE
Check IDE configuration syntax
Restart IDE after configuration changes
Debug Mode
Enable debug logging:
LOG_LEVEL=debug todo-for-ai-mcpHealth Check
Test connection to Todo API:
curl http://localhost:50110/api/healthLicense
MIT License - see LICENSE file for details.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
Support
For issues and questions:
Create an issue on GitHub
Check the troubleshooting section
Review the logs with debug mode enabled
π Ready to supercharge your AI workflow? Visit https://todo4ai.org/ and experience the power of AI-driven task management!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Manage tasks, Focus Zone, notes, projects, and task history from compatible AI assistants.
Create and manage MeisterTask projects, tasks, and notes from your AI assistant.
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Official Todoist MCP server for AI assistants to manage tasks, projects, and workflows.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Todoist tasks and projects through natural language. Supports comprehensive task management including creating, updating, completing tasks, managing projects, and filtering by various criteria.11GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Todoist tasks, projects, sections, and labels through natural language, supporting task creation, updates, completion, and intelligent organization of your workflow.24MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Todoist tasks, projects, comments, and labels through natural language commands. Provides complete CRUD operations securely via the Todoist REST API v2.Apache 2.0
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to manage Todoist tasks, projects, sections, labels, and comments through natural language conversations, providing complete control over your productivity workflow via the Todoist API.527MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/todo-for-ai/todo-for-ai-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server