mariomosca/mcp-server-todoist
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.
š 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 URI | Description | Use Case |
---|---|---|
todoist://today/tasks | Today's scheduled tasks | Daily planning & focus |
todoist://project/{id} | Project details & metadata | Project management |
todoist://project/{id}/tasks | All tasks in specific project | Project task overview |
todoist://project/{id}/structure | Complete project hierarchy | Complex project analysis |
todoist://task/{id} | Individual task details | Task-specific operations |
š§ Tools (Write Operations)
get_todoist_projects
- Retrieve all projects with hierarchyget_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 codingcreate_todoist_task
- Advanced task creation with:- Natural language due dates
- Priority levels (1-4)
- Project assignment
complete_todoist_task
- Mark tasks as completeddelete_todoist_project
- Safe project deletiondelete_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
- Clone & Install
git clone https://github.com/mariomosca/mcp-server-todoist.git
cd mcp-server-todoist
npm install
- 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
- 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
-
Delta Detection System: Unlike other Todoist integrations, this server can track what changed since the last interaction, enabling intelligent sync and update operations.
-
Hierarchical Resource Mapping: Automatically understands and maps complex project hierarchies, providing both flat and structured views.
-
Context-Aware AI Integration: Designed specifically for AI interaction patterns, with optimized data structures and clear operation separation.
-
Advanced Error Recovery: Robust error handling that provides actionable feedback for both users and AI systems.
-
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