Project Manager MCP Server

Project Manager MCP Server

Enables project management through natural language, allowing users to create, list, and update tasks with SQLite persistence, integrated with Claude Code and deployable over SSE.

Category
访问服务器

README

Project Manager MCP Server

A small MCP (Model Context Protocol) server for a project-management domain — create_task, list_tasks, update_task — backed by SQLite, integrated with Claude Code, and deployable to Railway or Render over SSE.

How this maps to the assignment

Objective Where
MCP server exposing tools for an external system src/ — SQLite-backed task tracker
Configure Claude Code to use the server .mcp.json, .claude/settings.json
CLAUDE.md + commands leveraging the tools CLAUDE.md, .claude/commands/*.md
End-to-end workflow demo WALKTHROUGH.md
Learning goal Where it shows up
MCP architecture (host, client, server, transport) Two transports implemented: src/index.ts (stdio) and src/sse.ts (SSE). Claude Code is the host/client in both cases.
Tool definitions with JSON Schema src/tools.tsTOOL_DEFINITIONS
Integrate via .mcp.json .mcp.json (stdio) and .mcp.sse.json.example (SSE, for the deployed server)
Deploy with SSE transport Dockerfile, railway.json, render.yaml, src/sse.ts

Project layout

src/
  types.ts    Task/Priority/Status types
  db.ts       SQLite persistence (better-sqlite3)
  tools.ts    Tool JSON Schemas + tools/call handler
  server.ts   Shared MCP Server factory (tools + resources)
  index.ts    stdio entry point (local Claude Code use)
  sse.ts      SSE/HTTP entry point (cloud deployment)
.claude/
  settings.json       auto-approves this project's MCP tools
  commands/
    create-task.md
    list-tasks.md
    update-task.md
    task-report.md    bonus: reads back a status summary
CLAUDE.md              project context Claude Code reads automatically
.mcp.json              local stdio server registration
.mcp.sse.json.example  swap-in config for the deployed SSE server
Dockerfile             build for Railway/Render
railway.json           Railway build/deploy config
render.yaml             Render Blueprint config
WALKTHROUGH.md          scripted demo + how to record your own

The three tools

Tool Required args Optional args Behavior
create_task title description, priority (low/medium/high) Inserts a row, status starts at pending
list_tasks status, priority Filters, newest first
update_task task_id, status Errors if task_id doesn't exist

There's also a read-only resource, tasks://summary, returning counts of tasks by status — used by the /task-report command.

Run it locally

npm install
npm run build
npm start           # stdio server, for manual testing outside Claude Code

Or skip the build step during development:

npm run dev          # runs src/index.ts directly via tsx

Data is stored in tasks.db in the project root by default; override with DB_PATH=/some/path/tasks.db.

Wire it up to Claude Code

  1. Open this project directory in a terminal: cd project-manager-mcp.
  2. Make sure it's built: npm run build (the committed .mcp.json points at dist/index.js).
  3. Start claude from this directory. Claude Code reads .mcp.json automatically and will ask you to approve the project-scoped project-manager server the first time — approve it.
  4. .claude/settings.json pre-allows the three tools so you won't get a permission prompt per-call; CLAUDE.md gives Claude the context on when to use each one.
  5. Try it:
    • "Create a task called 'Set up CI' with medium priority" → calls create_task
    • /list-tasks → calls list_tasks
    • /update-task task_xxx in_progress → calls update_task
    • /task-report → summarizes status counts

If you'd rather not build first, you can point .mcp.json at the dev command instead:

{
  "mcpServers": {
    "project-manager": {
      "command": "npx",
      "args": ["tsx", "src/index.ts"]
    }
  }
}

Deploy to Railway

npm install -g @railway/cli   # if you don't have it
railway login
railway init
railway up

Railway detects railway.json and builds the Dockerfile. Once deployed:

  1. In the Railway dashboard, add a volume mounted at /app/data so tasks.db (at DB_PATH=/app/data/tasks.db) survives redeploys.
  2. Grab the public URL Railway assigns (Settings → Networking → Generate Domain if it's not already public).
  3. Verify it's up: curl https://<your-app>.up.railway.app/ should return a small JSON status blob.

Deploy to Render

  1. Push this repo to GitHub.
  2. In Render, "New" → "Blueprint", point it at the repo — it picks up render.yaml automatically (Docker build, persistent disk at /app/data, PORT/DB_PATH env vars already set).
  3. Once live, verify with curl https://<your-app>.onrender.com/.

Point Claude Code at the deployed server

Replace (or add an entry to) .mcp.json with the SSE config — see .mcp.sse.json.example for the exact shape:

{
  "mcpServers": {
    "project-manager": {
      "type": "sse",
      "url": "https://<your-deployed-app>/sse"
    }
  }
}

Restart Claude Code and re-run the same natural-language requests and slash commands — same tools, same data, now over the network instead of a local subprocess.

Design notes

  • Two transports, one server: src/server.ts exports a createServer() factory used by both index.ts (stdio) and sse.ts (SSE), so the tool logic in tools.ts/db.ts is written once. The SSE entry point creates one Server instance per connection (matching the official MCP SDK examples) so concurrent clients don't share request state; they all read and write the same underlying SQLite file, though.
  • SQLite over in-memory: the original example (src/index.ts you may have seen elsewhere) kept tasks in a Map, which resets on every restart. This version persists to SQLite via better-sqlite3 so state survives restarts and redeploys (given a persistent volume).
  • Validation: tools.ts checks required fields and enum values before touching the database and returns isError: true with a plain-language message on bad input, rather than throwing.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选