mcp-server-todoist

mariomosca/mcp-server-todoist

3.2

If you are the rightful owner of mcp-server-todoist and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Advanced Todoist MCP Server is a sophisticated TypeScript-based server designed for seamless integration with Todoist, enabling AI assistants like Claude to intelligently manage Todoist projects and tasks.

Tools
7
Resources
0
Prompts
0

šŸš€ Advanced Todoist MCP Server

A sophisticated Model Context Protocol (MCP) server for seamless Todoist integration with AI assistants like Claude

This TypeScript-based MCP server enables advanced interaction with Todoist through the Model Context Protocol, allowing Claude and other LLMs to intelligently access, analyze, and manipulate your Todoist projects and tasks with unprecedented depth and flexibility.

🌐 Portfolio Project: This server showcases advanced MCP development expertise, TypeScript architecture, and AI-human workflow optimization for mariomosca.com.

✨ Unique Features & Differentiators

🧠 Intelligent Resource Discovery

  • Hierarchical Project Navigation: Automatic detection and mapping of project hierarchies with subprojects
  • Today's Tasks Optimization: Dedicated resource for current day task management
  • Dynamic Resource Generation: Real-time resource discovery based on your actual Todoist data
  • Context-Aware Descriptions: Smart descriptions that understand project relationships

šŸ”„ Advanced State Management

  • Delta Detection System: Track changes since last interaction (unique feature!)
  • Hierarchical Task Organization: Understand and maintain project-task relationships
  • Structured Data Access: JSON-formatted responses optimized for AI processing
  • Resource URI System: Clean, RESTful-like URI structure (todoist://project/{id}/tasks)

šŸ› ļø Comprehensive Tool Suite

  • CRUD Operations: Complete Create, Read, Update, Delete functionality
  • Smart Task Creation: Natural language due dates and priority setting
  • Batch Operations: Efficient handling of multiple tasks and projects
  • Error Handling: Robust error management with detailed feedback

šŸ—ļø Advanced Architecture

Modular Design Structure

src/
ā”œā”€ā”€ handlers/
│   ā”œā”€ā”€ mcpHandlers.ts    - Core MCP protocol handling
│   ā”œā”€ā”€ projectHandler.ts - Advanced project management
│   └── taskHandler.ts    - Intelligent task operations
ā”œā”€ā”€ types/
│   └── todoist.ts        - TypeScript type definitions
ā”œā”€ā”€ utils/
│   └── todoistClient.ts  - Authenticated API client
└── index.ts              - Server initialization & logging

Smart Logging System

  • File-Based Logging: Non-intrusive logging that doesn't interfere with stdio communication
  • Detailed Request Tracking: Complete audit trail of all operations
  • Performance Monitoring: Execution time and resource usage tracking
  • Debug-Friendly: Integrated with MCP Inspector for development

šŸŽÆ Core Capabilities

šŸ“š Resources (Read Operations)

Resource URIDescriptionUse Case
todoist://today/tasksToday's scheduled tasksDaily planning & focus
todoist://project/{id}Project details & metadataProject management
todoist://project/{id}/tasksAll tasks in specific projectProject task overview
todoist://project/{id}/structureComplete project hierarchyComplex project analysis
todoist://task/{id}Individual task detailsTask-specific operations

šŸ”§ Tools (Write Operations)

  • get_todoist_projects - Retrieve all projects with hierarchy
  • get_todoist_tasks - Flexible task retrieval with filtering
    • Filter by project ID
    • Filter by "today" for current tasks
  • create_todoist_project - Create new projects with color coding
  • create_todoist_task - Advanced task creation with:
    • Natural language due dates
    • Priority levels (1-4)
    • Project assignment
  • complete_todoist_task - Mark tasks as completed
  • delete_todoist_project - Safe project deletion
  • delete_todoist_task - Task removal with confirmation

āš™ļø Setup & Configuration

Prerequisites

  • Node.js 16+ (recommended: Node.js 20+)
  • Todoist Pro account (for API access)
  • TypeScript 5.3+

Installation

  1. Clone & Install
git clone https://github.com/mariomosca/mcp-server-todoist.git
cd mcp-server-todoist
npm install
  1. API Token Configuration

Get your Todoist API token from Todoist Integration Settings

Method 1: Environment File

# Create .env file
echo "TODOIST_API_TOKEN=your_todoist_api_token_here" > .env

Method 2: Command Line Token

# Pass token as argument
node build/index.js --token your_todoist_api_token_here
  1. Build the Server
npm run build

Claude Desktop Integration

macOS Configuration: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "todoist-server": {
      "command": "/path/to/mcp-server-todoist/build/index.js",
      "args": ["--token", "your_todoist_api_token_here"]
    }
  }
}

Windows Configuration: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "todoist-server": {
      "command": "node",
      "args": ["/path/to/mcp-server-todoist/build/index.js", "--token", "your_todoist_api_token_here"]
    }
  }
}

šŸš€ Development & Debugging

Development Workflow

# Watch mode with auto-compilation
npm run watch

# Build production version
npm run build

# Start with HTTP server (development only)
npm run start:http

Advanced Debugging

Since MCP servers communicate via stdio, debugging requires special tools:

# Launch MCP Inspector
npm run inspector

# View logs in real-time
tail -f todoist-mcp-server.log

The Inspector provides a web-based interface for testing all server capabilities.

šŸ“– Usage Examples

Daily Task Management

Claude: "What tasks do I have today?"
→ Accesses todoist://today/tasks resource
→ Returns structured JSON with today's tasks

Project Analysis

Claude: "Show me the structure of my Work project"
→ Finds project ID for "Work"
→ Accesses todoist://project/{id}/structure
→ Returns hierarchical project view with subprojects

Smart Task Creation

Claude: "Create a high-priority task 'Review quarterly reports' due tomorrow in Work project"
→ Uses create_todoist_task tool
→ Automatically sets priority=4, due="tomorrow", finds Work project ID

Batch Operations

Claude: "Complete all tasks in my Personal project that are overdue"
→ Gets all Personal project tasks
→ Filters for overdue items
→ Completes each task individually

šŸ”¬ Technical Innovation

What Makes This MCP Server Unique

  1. Delta Detection System: Unlike other Todoist integrations, this server can track what changed since the last interaction, enabling intelligent sync and update operations.

  2. Hierarchical Resource Mapping: Automatically understands and maps complex project hierarchies, providing both flat and structured views.

  3. Context-Aware AI Integration: Designed specifically for AI interaction patterns, with optimized data structures and clear operation separation.

  4. Advanced Error Recovery: Robust error handling that provides actionable feedback for both users and AI systems.

  5. Performance Optimization: Efficient API usage with smart caching and batch operation support.

šŸŽÆ AI Pair Programming Excellence

This project demonstrates advanced AI-Human Collaboration Methodology:

  • Human Architecture: Strategic decisions, API design, and system architecture
  • AI Implementation: Accelerated coding, pattern implementation, and optimization
  • Collaborative Testing: Combined human insight and AI-powered edge case detection
  • Iterative Refinement: Continuous improvement through AI-assisted code review

šŸ”® Roadmap & Extensions

Planned Features

  • Label Management: Full support for Todoist labels and filters
  • Section Support: Project section creation and management
  • Advanced Search: Natural language task and project search
  • Analytics Integration: Task completion statistics and productivity insights
  • Webhook Support: Real-time notifications and sync
  • Multi-Account Support: Handle multiple Todoist accounts

Integration Opportunities

  • Calendar Sync: Integration with calendar MCP servers
  • Note-Taking: Connection with knowledge management systems
  • Time Tracking: Integration with time tracking MCP servers
  • Email Integration: Task creation from email content

šŸ† Portfolio Showcase

This MCP server showcases expertise in:

  • Advanced TypeScript Development: Complex type systems and async patterns
  • API Integration Architecture: RESTful API consumption and state management
  • Protocol Implementation: Model Context Protocol specification compliance
  • Error Handling & Logging: Production-ready monitoring and debugging
  • Developer Experience: Comprehensive tooling and documentation
  • AI-Human Workflow Design: Optimized for AI assistant interaction patterns

šŸ“„ License

MIT License - see file for details.

šŸ¤ Contributing

Contributions welcome! Please read our contributing guidelines and submit pull requests for any improvements.


Built with ā¤ļø by Mario Mosca - Showcasing the future of AI-human productivity collaboration

AI Pair Programming