MCP Project Bridge
Enables multi-project workspaces to share structured notes, API contracts, and handoff messages via a local SQLite database, with versioning and read tracking.
README
MCP Project Bridge
MCP Project Bridge is a stdio MCP server for sharing project messages through a local SQLite database. It is designed for multi-project workspaces where one project needs to leave structured notes, API contracts, implementation status, or handoff messages for another project.
The server writes only to its own central database. It does not create files inside the projects being bridged.
How It Works
Each project is represented by a project key. You can provide your own key, or derive a stable key from an absolute project path with derive_project_key.
Messages are stored in a central inbox model:
- A direct message has a sender project key, a target project key, and a
docKey. - A broadcast message has a sender project key and a
docKey, with no target project key. - Reusing the same sender, target, and
docKeycreates a new version of the same message. - Passing
messageIdupdates that message, but only the sender project can update it. - Read state is tracked per viewer project and per message version.
read_unread_messagesmarks only the returned latest versions as read.- A later message version becomes unread again for projects that have not read that version.
Broadcast messages are hidden from normal inbox reads unless withBroadcast: true is passed.
Local Setup
Requirements:
- Node.js 20 or newer
- Yarn 1.x
Install and build:
yarn install
yarn build
Configure your MCP client to run the built stdio server:
{
"mcpServers": {
"project-bridge": {
"command": "node",
"args": ["D:\\mcp\\mcp-project-bridge\\dist\\index.js"]
}
}
}
Use an absolute path to dist/index.js. On Windows JSON paths need escaped backslashes.
Database Location
By default, the database is stored in the user data directory:
- Windows:
%APPDATA%\\mcp-project-bridge\\bridge.sqlite - Linux and WSL:
$XDG_DATA_HOME/mcp-project-bridge/bridge.sqlite, or~/.local/share/mcp-project-bridge/bridge.sqlite
Set MCP_PROJECT_BRIDGE_DB to choose a database file:
{
"mcpServers": {
"project-bridge": {
"command": "node",
"args": ["D:\\mcp\\mcp-project-bridge\\dist\\index.js"],
"env": {
"MCP_PROJECT_BRIDGE_DB": "D:\\mcp\\project-bridge-data\\bridge.sqlite"
}
}
}
}
Docker Image
Build the image:
docker build -t mcp-project-bridge:latest .
Run it as a stdio MCP server from an MCP client:
{
"mcpServers": {
"project-bridge": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"mcp-project-bridge-data:/data",
"mcp-project-bridge:latest"
]
}
}
}
The image sets MCP_PROJECT_BRIDGE_DB=/data/bridge.sqlite, so mount /data to keep messages across container restarts. The server uses stdio and does not expose an HTTP port.
Project Keys
derive_project_key normalizes Windows drive paths into WSL-style paths before replacing path separators with underscores.
Examples:
D:\mcp\api -> /mnt/d/mcp/api -> _mnt_d_mcp_api
C:/work\frontend -> /mnt/c/work/frontend -> _mnt_c_work_frontend
/home/me/web -> _home_me_web
Project keys are just message identifiers. They do not need to be registered before use.
Tools
derive_project_key
Derive a stable project key from an absolute project path without writing to storage.
{
"path": "D:\\workspace\\backend"
}
upsert_message
Create or update a direct or broadcast message.
{
"currentProjectKey": "_mnt_d_workspace_backend",
"targetProjectKey": "_mnt_d_workspace_frontend",
"docKey": "users-api",
"title": "Users API",
"content": "GET /users\nPOST /users",
"format": "markdown",
"tags": ["api", "users"]
}
Omit targetProjectKey, pass null, or pass an empty string to create a broadcast message:
{
"currentProjectKey": "_mnt_d_workspace_backend",
"docKey": "release-note",
"title": "Backend Release",
"content": "Backend release is ready",
"tags": ["release"]
}
Supported formats are markdown, text, and json. The default format is markdown.
read_unread_messages
Read unread inbox messages for the current project and mark the returned latest versions as read.
{
"currentProjectKey": "_mnt_d_workspace_frontend",
"withBroadcast": true,
"limit": 20
}
list_messages
List latest inbox message summaries without changing read state.
{
"currentProjectKey": "_mnt_d_workspace_frontend",
"withBroadcast": true,
"query": "users",
"tags": ["api"],
"limit": 20
}
get_message_history
Read version history for a message without changing read state.
{
"currentProjectKey": "_mnt_d_workspace_frontend",
"messageId": 1,
"withBroadcast": true,
"limit": 10
}
Direct message history is visible to the sender and target project. Broadcast history is visible to the sender, and to other projects only when withBroadcast: true is passed.
Typical Workflow
- Derive or choose the project key for each workspace.
- Have the sender call
upsert_messagewith a stabledocKey. - Have the receiver call
read_unread_messages. - Use
list_messageswhen you need search or status without marking anything read. - Use
get_message_historywhen you need prior versions of a message.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。