Stores and manages todo items in a standard markdown file format with checkbox syntax, maintaining persistent IDs for each task
Todo Markdown MCP Server
An MCP (Model Context Protocol) server that provides todo list functionality backed by a simple markdown file. This server allows AI assistants to manage todo items in a standardized markdown format.
Features
- Markdown-based storage: Todos are stored in a simple
todo.md
file using standard checkbox syntax - Full CRUD operations: Create, read, update, and delete todo items
- Persistent IDs: Each todo has a unique identifier for reliable updates
- MCP compliance: Follows the Model Context Protocol specification
- TypeScript: Fully typed implementation with comprehensive error handling
- Testing: Complete test suite with Vitest
Installation
From NPM
Local Development
- Clone this repository:
- Install dependencies:
- Build the project:
Usage
With Claude Desktop
Add this server to your Claude Desktop configuration:
Or if installed globally via NPM:
Configuring Todo File Location
By default, the server creates a todo.md
file in the current working directory. When using Claude Desktop, this might be a system directory where you don't have write permissions. To specify a custom location for your todo file, use the TODO_FILE_PATH
environment variable:
This solves the common "read-only file system" error by ensuring the todo file is created in a location where you have write permissions.
Recommended locations:
~/Documents/todo.md
- Your Documents folder~/Desktop/todo.md
- Your Desktop/path/to/your/project/todo.md
- Within a specific project
Important: Make sure the directory exists and you have write permissions to the specified location.
Available Tools
The server provides the following MCP tools:
list_todos
Lists all todo items from the markdown file.
Parameters: None
Returns: JSON object with todos array and summary statistics
add_todo
Adds a new todo item.
Parameters:
text
(string, required): The todo item text
Returns: The created todo item with generated ID
update_todo
Updates an existing todo item.
Parameters:
id
(string, required): The todo item IDtext
(string, optional): New text for the todocompleted
(boolean, optional): Mark as completed/incomplete
Returns: The updated todo item
delete_todo
Deletes a todo item.
Parameters:
id
(string, required): The todo item ID to delete
Returns: Success confirmation
clear_completed
Removes all completed todo items.
Parameters: None
Returns: Number of items cleared
File Format
The server manages a todo.md
file in your project root with the following format:
Each todo item includes:
- Standard markdown checkbox syntax (
- [ ]
or- [x]
) - The todo text
- A hidden HTML comment with a unique ID for tracking
Development
Scripts
npm run build
- Build the TypeScript projectnpm run dev
- Build and run the servernpm run watch
- Watch for changes and rebuildnpm test
- Run the test suitenpm run test:watch
- Run tests in watch modenpm run lint
- Run ESLintnpm run format
- Format code with Prettier
Testing
The project includes comprehensive tests covering all functionality:
Tests cover:
- Markdown parsing and generation
- CRUD operations
- Error handling
- File management
Project Structure
Requirements
- Node.js 18 or higher
- An MCP-compatible client (like Claude Desktop)
License
MIT
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
Model Context Protocol
This server implements the Model Context Protocol (MCP), an open protocol that standardizes how applications provide context to Large Language Models. MCP enables secure, controlled access to local and remote resources.
For more information about MCP, visit the official documentation.
This server cannot be installed
An MCP server that allows AI assistants to manage todo lists stored in a simple markdown file, supporting creation, reading, updating, and deletion of todo items with persistent IDs.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.Last updated -1022TypeScriptMIT License
- -securityFlicense-qualityAn MCP server that provides tools and resources for managing a coding project's todo list, allowing users to view, add, update, and delete todo items with details like priority, status, and tags.Last updated -1Python
- AsecurityAlicenseAqualityAn MCP server that enables LLMs to interact with Todoist tasks, projects, and other features through the Todoist API.Last updated -36653131TypeScriptMIT License
- -securityFlicense-qualityA server that allows AI assistants to access and retrieve Linear ticket data through the Model Context Protocol (MCP) standard, currently focused on fetching a user's todo tickets.Last updated -685TypeScript