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 MCP ServerShow me all high priority pending todos"
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 MCP Server
A robust Model Context Protocol (MCP) server for managing todos, built with TypeScript and the official MCP SDK. This implementation demonstrates modern MCP best practices including proper error handling, server capabilities configuration, and comprehensive tool/resource/prompt integration.
๐ Features
๐ ๏ธ Tools (AI can execute)
create_todo- Create new todos with title, description, priority levels, and tagslist_todos- List and filter todos by status (completed/pending), priority, and tagsupdate_todo- Update any todo field including completion status and metadatadelete_todo- Remove todos by ID with confirmationtodo_stats- Generate comprehensive statistics and analytics
๐ Resources (AI can read)
todos://json- Complete todo dataset as structured JSONtodos://summary- Quick summary with counts, completion rates, and metrics
๐ฌ Prompts (AI templates)
daily_report- Generate professional daily todo reports with filteringprioritize_tasks- Get AI assistance with intelligent task prioritization
๐ Quick Start
Prerequisites
Node.js 18+
npm or yarn
TypeScript knowledge (optional for usage)
Installation & Setup
Configuration
For Cursor IDE:
Add to your Cursor settings (~/.cursor/settings.json):
For Claude Desktop:
Add to ~/.claude_desktop_config.json:
๐ฏ Usage Examples
Once connected to your MCP client, you can interact naturally:
Creating & Managing Todos
Viewing & Filtering
AI-Powered Insights
๐๏ธ Architecture & Implementation
Modern MCP SDK Patterns
This implementation follows current MCP SDK best practices:
How Capability Discovery Works
Server Initialization: Server declares or auto-discovers its capabilities
Client Connection: Client connects and receives server capability information during handshake
Dynamic Discovery: Client calls these methods to discover available features:
client.listTools()- Discover available toolsclient.listResources()- Discover available resourcesclient.listPrompts()- Discover available prompts
Usage: Client can then call specific tools, read resources, or use prompts
The high-level McpServer API automatically handles capability advertisement based on what you actually register, making it much simpler to use.
Project Structure
Data Model
๐ง Development
Available Scripts
Testing with MCP Inspector
The MCP Inspector is the official testing tool:
Error Handling & Logging
The server implements comprehensive error handling:
Tool errors: Graceful failure with user-friendly messages
Resource errors: Proper exception handling with context
Process errors: Graceful shutdown and cleanup
Validation errors: Zod schema validation with detailed feedback
Performance Considerations
In-memory storage: Fast for development; replace with database for production
Async operations: All operations are properly async/await
Resource management: Proper cleanup on server shutdown
Error isolation: Errors in one operation don't crash the server
๐ Production Deployment
Database Integration
Replace the in-memory Map with a proper database:
Environment Configuration
Monitoring & Observability
Consider adding:
Structured logging (Winston, Pino)
Metrics collection (Prometheus)
Health check endpoints
Request tracing
๐ฎ Extending the Server
Adding New Tools
Adding New Resources
Adding New Prompts
๐ Learn More
MCP Resources
Advanced Topics
Authentication: Implement OAuth or API key authentication
Rate Limiting: Add request throttling for production use
Caching: Implement Redis or in-memory caching
Webhooks: Add real-time notifications
Collaboration: Multi-user todo management
Sync: Cross-device synchronization
๐ค Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureFollow the existing code style and patterns
Add tests for new functionality
Update documentation as needed
Submit a pull request
Code Standards
Use TypeScript with strict mode
Follow the existing error handling patterns
Add JSDoc comments for public APIs
Ensure all tests pass
Follow semantic versioning
๐ License
MIT License - see LICENSE file for details.
Built with โค๏ธ using the official