ArnoNuyts/Todo.txt-MCP
If you are the rightful owner of Todo.txt-MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
Todo.txt-MCP is a server that manages your todo.txt file, allowing AI agents to interact with your tasks.
Todo.txt-MCP
Todo.txt-MCP is a Model Context Protocol (MCP) server designed to manage your
todo.txt file. It enables AI agents to interact with your tasks—listing, adding,
editing, and marking them as done. It supports storage via a local todo.txt
file or synchronization over WebDAV.
🚀 Quick Start with Docker
The easiest way to run TodoTui is using Docker Compose.
You can use the following docker-compose.yml configuration:
version: "3.8"
services:
todo-txt-mcp:
build: https://github.com/ArnoNuyts/Todo.txt-MCP.git
ports:
- "5000:5000"
volumes:
# Mount only the data file for persistence
- ./todo.txt:/app/todo.txt
environment:
# Configuration
- TODOTXT_MCP_BACKEND=local
- TODOTXT_MCP_LOCAL_FILENAME=todo.txt
# - TODOTXT_MCP_BACKEND=webdav
# - TODOTXT_MCP_WEBDAV_URL=https://dav.example.com
# - TODOTXT_MCP_WEBDAV_USERNAME=user
# - TODOTXT_MCP_WEBDAV_PASSWORD=pass
- Run:
docker-compose up -d - Access: The server will be running at
http://localhost:5000.
💻 Run Locally
If you have Deno installed, you can run the server directly.
- Install Deno: https://deno.com/runtime
- Run:
By default, it runs on port
deno run --allow-net --allow-read --allow-write --allow-env server.ts3000. You can change this by setting thePORTenvironment variable.
⚙️ Configuration
You can configure the backend using environment variables. This is especially useful when running with Docker.
Local File Backend (Default)
Stores todos in a local text file.
TODOTUI_BACKEND: Set tolocal.TODOTUI_LOCAL_FILENAME: Path to the todo file (default:todo.txt).
WebDAV Backend
Syncs todos with a WebDAV server (e.g., Nextcloud).
TODOTUI_BACKEND: Set towebdav.TODOTUI_WEBDAV_URL: Full URL to the WebDAV resource (e.g.,https://cloud.example.com/remote.php/dav/files/user/todo.txt).TODOTUI_WEBDAV_USERNAME: WebDAV username.TODOTUI_WEBDAV_PASSWORD: WebDAV password.
🛠️ Testing with MCP Inspector
You can verify that the server is working correctly using the MCP Inspector.
- Start the server (Docker or Local).
- Run the Inspector:
(Replace port
npx @modelcontextprotocol/inspector http://localhost:5000/mcp5000with3000if running locally without Docker)
This will open a web interface where you can list available tools (list_todos,
add_todo, etc.) and execute them to test the functionality.