TODO MCP Server

by oseni99
  • Linux
  • Apple
Integrations
  • Manages environment variables for the application, including the OpenAI API key and MCP server URL configuration.

  • Provides the server framework for the MCP implementation, exposing endpoints for tool discovery and JSON-RPC calls to interact with the to-do list application.

  • Provides version control for the MCP implementation, with instructions for cloning the repository during installation.

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

  1. Clone the repo:
    git clone https://github.com/oseni99/todo-mcp cd todo-mcp
  2. Create and activate a virtual environment:
    python3 -m venv .venv source .venv/bin/activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Create a .env in the project root:
    OPENAI_API_KEY=sk-... MCP_SERVER=http://127.0.0.1:8000

Directory Structure

todoMCP/ ├── client/ # CLI client code │ └── cli.py # Main entrypoint for the MCP-CLI ├── server/ # FastAPI server code │ ├── handlers.py # Business logic for add, list, complete │ ├── tools.py # JSON-Schema tool manifest │ └── main.py # FastAPI app with /tools and /rpc ├── .env # Environment variables (not committed) ├── requirements.txt # Python dependencies └── README.md # This file

Running the Server

fastapi dev server/main.py

Running the CLI

From the project root:

python -m client.cli

Type natural language commands at the prompt, for example:

> Create a task titled "Write blog post" with content "Outline first draft" due 2025-05-20 > List my tasks > Mark the first task as done > Thanks! > exit

The CLI will print tool invocations and LLM responses.


-
security - not tested
F
license - not found
-
quality - not tested

A minimal Model Context Protocol server implementation that provides tools for managing a to-do list, allowing users to create tasks, list them, and mark them as completed via JSON-RPC calls.

  1. Features
    1. Prerequisites
      1. Installation
        1. Directory Structure
          1. Running the Server
            1. Running the CLI

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.
                Last updated -
                10
                4
                TypeScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.
                Last updated -
                2
                Python
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                A 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 -
                4
                Python
                MIT License
                • Linux
                • Apple
              • -
                security
                F
                license
                -
                quality
                A utility module for creating Model Context Protocol servers declaratively, allowing developers to easily define tools, prompts, and resources with a simplified syntax.
                Last updated -
                JavaScript

              View all related MCP servers

              ID: 01t39tz0p2