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.
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.ts — TOOL_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
- Open this project directory in a terminal:
cd project-manager-mcp. - Make sure it's built:
npm run build(the committed.mcp.jsonpoints atdist/index.js). - Start
claudefrom this directory. Claude Code reads.mcp.jsonautomatically and will ask you to approve the project-scopedproject-managerserver the first time — approve it. .claude/settings.jsonpre-allows the three tools so you won't get a permission prompt per-call;CLAUDE.mdgives Claude the context on when to use each one.- Try it:
- "Create a task called 'Set up CI' with medium priority" → calls
create_task /list-tasks→ callslist_tasks/update-task task_xxx in_progress→ callsupdate_task/task-report→ summarizes status counts
- "Create a task called 'Set up CI' with medium priority" → calls
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:
- In the Railway dashboard, add a volume mounted at
/app/datasotasks.db(atDB_PATH=/app/data/tasks.db) survives redeploys. - Grab the public URL Railway assigns (Settings → Networking → Generate Domain if it's not already public).
- Verify it's up:
curl https://<your-app>.up.railway.app/should return a small JSON status blob.
Deploy to Render
- Push this repo to GitHub.
- In Render, "New" → "Blueprint", point it at the repo — it picks up
render.yamlautomatically (Docker build, persistent disk at/app/data,PORT/DB_PATHenv vars already set). - 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.tsexports acreateServer()factory used by bothindex.ts(stdio) andsse.ts(SSE), so the tool logic intools.ts/db.tsis written once. The SSE entry point creates oneServerinstance 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.tsyou may have seen elsewhere) kept tasks in aMap, which resets on every restart. This version persists to SQLite viabetter-sqlite3so state survives restarts and redeploys (given a persistent volume). - Validation:
tools.tschecks required fields and enum values before touching the database and returnsisError: truewith a plain-language message on bad input, rather than throwing.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。