Team Sync MCP Server
A self-hosted synchronization hub for frontend and backend teams using Cursor, enabling publishing and reading of shared project state with a local React dashboard.
README
Team Sync MCP Server
A self-hosted synchronization hub for frontend and backend teams using Cursor. It exposes MCP tools for publishing and reading project state, stores everything locally, and serves a small React dashboard for visual inspection.
What It Provides
- A Python MCP server using the official
mcpSDK and Streamable HTTP transport athttp://localhost:8080/mcp. - Shared project state for API contracts, requirements, component specs, and changelog entries.
- SQLite persistence by default, with an optional JSON-file backend.
- REST endpoints for dashboard access at
/api/state,/api/changelog, and/api/events. - A React, Tailwind CSS, and shadcn-style dashboard served at
http://localhost:8080/dashboard/. - Optional shared bearer token for MCP calls and write endpoints.
Quick Start With Docker
docker compose up --build
Open the dashboard:
http://localhost:8080/dashboard/
The SQLite database is stored in ./data through the compose volume.
Local Development
Install and run the Python server:
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
python -m sync_mcp
Run the dashboard in Vite dev mode:
cd dashboard
npm install
npm run dev
The Vite dev server proxies /api to http://localhost:8080.
For a production-like local run:
cd dashboard
npm install
npm run build
cd ..
python -m sync_mcp
Configuration
Copy .env.example to .env or set environment variables directly.
| Variable | Default | Description |
|---|---|---|
SYNC_MCP_PROJECT |
my-project |
Project name displayed in Cursor and the dashboard. |
SYNC_MCP_STORAGE |
sqlite |
Use sqlite or json. |
SYNC_MCP_DATA_DIR |
./data |
Directory for persistent state. |
SYNC_MCP_HOST |
0.0.0.0 |
Server bind host. |
SYNC_MCP_PORT |
8080 |
Server port. |
SYNC_MCP_TOKEN |
empty | Optional shared bearer token for MCP and write access. |
Cursor MCP Configuration
Add the server in Cursor MCP settings. For an open local server:
{
"mcpServers": {
"team-sync": {
"url": "http://localhost:8080/mcp"
}
}
}
If SYNC_MCP_TOKEN is set:
{
"mcpServers": {
"team-sync": {
"url": "http://localhost:8080/mcp",
"headers": {
"Authorization": "Bearer shared-secret"
}
}
}
}
MCP Tools
publish_update(team, type, description, details)
Records a change and updates the aggregated state.
Example after a backend endpoint change:
{
"team": "backend",
"type": "api_added",
"description": "Add user lookup endpoint",
"details": {
"method": "GET",
"path": "/users/:id",
"response": {
"id": "string",
"name": "string"
}
}
}
Useful type values:
api_added,api_changed,api_removedrequirement_added,requirement_changed,requirement_closedcomponent_specchangelogother
get_latest_state()
Returns the current API endpoints, open requirements, component specs, recent changes, and a Cursor-friendly markdown digest.
get_changelog(since, team, type, limit)
Returns recent changes. since accepts either an ISO timestamp or a version number.
subscribe_to_changes()
Returns subscription hints. MCP clients that support resource update notifications can subscribe to:
sync://statesync://changelog
The dashboard uses Server-Sent Events at /api/events.
Dashboard API
curl http://localhost:8080/api/health
curl http://localhost:8080/api/state
curl "http://localhost:8080/api/changelog?team=backend&type=api_added"
Publish through the REST fallback:
curl -X POST http://localhost:8080/api/updates \
-H "Content-Type: application/json" \
-d '{
"team": "frontend",
"type": "requirement_added",
"description": "User payload needs avatar_url",
"details": { "id": "user-avatar", "title": "Expose avatar_url" }
}'
With token auth:
curl -X POST http://localhost:8080/api/updates \
-H "Authorization: Bearer shared-secret" \
-H "Content-Type: application/json" \
-d '{"team":"backend","type":"changelog","description":"Deployed staging build"}'
Team Workflow
- Backend publishes
api_addedorapi_changedfrom Cursor after changing an endpoint. - Frontend starts a session and calls
get_latest_state()or thesync_digestprompt. - Frontend publishes
requirement_addedwhen they need contract changes. - Backend sees the requirement in Cursor or at
http://localhost:8080/dashboard/.
Tests
pip install -e ".[dev]"
pytest
The tests cover state aggregation, changelog filtering, and token enforcement on write endpoints.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。