TODO MCP CLI & Server
This repository contains a minimal Model Context Protocol (MCP) implementation for a to-do list application, including:
- FastAPI server (
server/
): exposes a/tools
endpoint for tool discovery and an/rpc
endpoint for JSON-RPC calls to perform operations on tasks. - CLI client (
client/cli.py
): a Python command-line interface that interacts with an LLM (via OpenAI) and the MCP server to create, list, and complete tasks using function calls.
Features
- Add tasks with title, content, and optional due date
- List all tasks
- Mark tasks as completed
- Server-side task ID generation
- JSON-RPC 2.0 compliance for tool invocation
Prerequisites
- Python 3.10+
- pipenv or
venv
for virtual environments - An OpenAI API key
Installation
- Clone the repo:
- Create and activate a virtual environment:
- Install dependencies:
- Create a
.env
in the project root:
Directory Structure
Running the Server
- Visit http://127.0.0.1:8000/docs for interactive API docs.
Running the CLI
From the project root:
Type natural language commands at the prompt, for example:
The CLI will print tool invocations and LLM responses.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Минимальная реализация сервера Model Context Protocol, предоставляющая инструменты для управления списком дел, позволяющая пользователям создавать задачи, перечислять их и отмечать как выполненные с помощью вызовов JSON-RPC.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that integrates with Notion's API to manage personal todo lists, allowing users to view, add, and update tasks directly from Claude.Last updated -22MIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.Last updated -30MIT License
- -securityAlicense-qualityA Model Context Protocol server providing comprehensive task management capabilities with support for project organization, task tracking, and automatic PRD parsing into actionable items.Last updated -23MIT License
- AsecurityAlicenseAqualityA task management Model Context Protocol server that helps break down user requests into manageable tasks with subtasks, dependencies, and notes, while enforcing a structured workflow with user approval steps.Last updated -1769510MIT License