Todo Markdown logo

Todo Markdown

Community
danjdewhurst

MCP server that gives AI assistants a markdown-backed todo list with full CRUD.

Publisherdanjdewhurst
Repositorytodo-md-mcp
LanguageTypeScript
Forks
2
Stars
6
Available tools
5
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Todo Markdown exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 5 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    6 stars and 2 forks from the linked repository.

Todo Markdown MCP Server

npm version License: MIT Test Lint and Format TypeScript MCP

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

bash
npm install -g @danjdewhurst/todo-md-mcp

Local Development

  1. Clone this repository:
    bash
    git clone https://github.com/danjdewhurst/todo-md-mcp.git
    cd todo-md-mcp
  2. Install dependencies:
    bash
    npm install
  3. Build the project:
    bash
    npm run build

Usage

With Claude Desktop

Add this server to your Claude Desktop configuration:

json
{
  "mcpServers": {
    "todo-md": {
      "command": "node",
      "args": ["/path/to/todo-md-mcp/dist/index.js"]
    }
  }
}

Or if installed globally via NPM:

json
{
  "mcpServers": {
    "todo-md": {
      "command": "npx",
      "args": ["@danjdewhurst/todo-md-mcp"]
    }
  }
}

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:

json
{
  "mcpServers": {
    "todo-md": {
      "command": "npx",
      "args": ["@danjdewhurst/todo-md-mcp"],
      "env": {
        "TODO_FILE_PATH": "/Users/yourname/Documents/todo.md"
      }
    }
  }
}

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 ID
  • text (string, optional): New text for the todo
  • completed (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:

markdown
# Todo List

- [ ] First incomplete task <!-- id:550e8400-e29b-41d4-a716-446655440000 -->
- [x] Completed task <!-- id:6ba7b810-9dad-11d1-80b4-00c04fd430c8 -->
- [ ] Another task <!-- id:6ba7b811-9dad-11d1-80b4-00c04fd430c8 -->

<!-- Generated by MCP Todo Server -->

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 project
  • npm run dev - Build and run the server
  • npm run watch - Watch for changes and rebuild
  • npm test - Run the test suite
  • npm run test:watch - Run tests in watch mode
  • npm run lint - Run ESLint
  • npm run format - Format code with Prettier

Testing

The project includes comprehensive tests covering all functionality:

bash
npm test

Tests cover:

  • Markdown parsing and generation
  • CRUD operations
  • Error handling
  • File management

Project Structure

todo-md-mcp/
├── src/
│   ├── index.ts              # Main MCP server implementation
│   ├── todoManager.ts        # Todo CRUD operations and markdown parsing
│   └── types.ts              # TypeScript type definitions
├── tests/
│   └── todoManager.test.ts   # Test suite
├── dist/                     # Built JavaScript files
├── package.json
├── tsconfig.json
├── .eslintrc.json
├── .prettierrc
├── vitest.config.ts
└── README.md

Requirements

  • Node.js 18 or higher
  • An MCP-compatible client (like Claude Desktop)

License

MIT

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Run the test suite
  6. 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.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "todo-md": {
      "command": "npx",
      "args": [
        "@danjdewhurst/todo-md-mcp"
      ]
    }
  }
}

Available Tools

  • list_todos

    List all todos from the markdown file

  • add_todo

    Add a new todo item

  • update_todo

    Update an existing todo item

  • delete_todo

    Delete a todo item

  • clear_completed

    Remove all completed todo items

Use Todo Markdown MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Todo Markdown is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Todo Markdown as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Todo Markdown MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "todo-markdown": {
      "command": "npx",
      "args": [
        "-y",
        "@danjdewhurst/todo-md-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Todo Markdown MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Todo Markdown MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Todo Markdown to help me with this task?
Todo Markdown
Sure. I read it.
Here is what I found using Todo Markdown.

Frequently asked questions

What is the Todo Markdown MCP server used for?

Todo Markdown is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Todo Markdown MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Todo Markdown with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Todo Markdown MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Todo Markdown connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Todo Markdown MCP to TypingMind?

Todo Markdown runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Todo Markdown MCP provide in TypingMind?

Todo Markdown exposes 5 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Todo Markdown MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Todo Markdown requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇