Skip to main content
Glama

mcp-server-my-todo

一个基于 SQLite 的极简 MCP(模型上下文协议)服务器,用于个人待办事项列表。

工具

  • add_todo(task: str) — 添加新的待办事项

  • list_todos(include_done: bool = True) — 列出待办事项,可选择隐藏已完成的

  • complete_todo(todo_id: int) — 将待办事项标记为已完成

  • delete_todo(todo_id: int) — 删除待办事项

Related MCP server: Todo MCP Server

本地运行

uv sync
uv run main.py

服务器使用 streamable-http 传输方式监听 http://0.0.0.0:8000/mcp。

环境变量:

  • PORT — 监听端口(默认 8000)

  • TODO_DB_PATH — SQLite 文件路径(默认 todo.db)

将 MCP 客户端指向 http://localhost:8000/mcp 进行尝试,例如使用 MCP inspector:

uv run mcp dev main.py

部署到 Render

此仓库包含一个 Dockerfile 和一个 render.yaml 蓝图,用于构建它并 提供一个 Web 服务以及一个挂载在 /data 的 1GB 持久磁盘(这样 SQLite 文件在部署/重启后仍然存在——Render 的常规文件系统是临时的,而磁盘 需要付费实例类型,因此使用 plan: starter)。

  1. 将此仓库推送到 GitHub。

  2. 在 Render 中,创建一个新的 Blueprint 并将其指向该仓库——它将读取 render.yaml,构建 Dockerfile,并运行容器。

  3. 部署完成后,你的 MCP 端点为 https://<your-service>.onrender.com/mcp。

你也可以先在本地构建/运行镜像以进行初步检查:

docker build -t mcp-server-my-todo .
docker run --rm -p 8000:8000 mcp-server-my-todo

如果你不需要跨部署持久化,可以跳过蓝图,直接创建一个 普通的 Render Web 服务,使用相同的构建/启动命令,在免费套餐上——待办事项 列表会在服务重新部署或关闭时重置。

Maintenance

ActivityMaintained
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    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.
    5
    16 npm
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A simple MCP server for managing todo items with SQLite database storage, supporting add, list, and remove operations.
    12 npm
    6
    ISC
  • A
    license
    Not graded
    quality
    D
    maintenance
    A small MCP server for managing todos, enabling assistants like Claude to create, update, and query task lists through natural conversation. Stores everything in a local SQLite database.
    12 npm
    1
    ISC