CollabMCP
Provides shared real-time context for Claude Code agents, including scope awareness, prior decisions, and anti-overlap, using only files in the repo.
README
CollabMCP
Shared, real-time context for every Claude Code on your team — scope awareness, prior decisions, and anti-overlap. No database, no server to host. Just files in your repo.
When two people point Claude Code at the same repo, the agents have no idea the other exists. CollabMCP fixes that: it's a local MCP server that gives each agent a shared view of who's working on what, what's already been decided, and whether a file is "owned" by someone else right now.
Everything lives in a .collab/ directory in your repo — plain JSON and a JSONL log. No Postgres, no Redis, no embeddings.
What you get
Five tools, available to Claude Code automatically:
| Tool | When Claude uses it |
|---|---|
get_session |
At the start of a session — who's active, recent decisions, your scope, unread messages |
who_owns(path) |
Before editing a file that might belong to a teammate |
recall(query) |
Before a big decision — has this already been settled? |
remember(content, scope) |
After an architectural decision or non-obvious fix |
broadcast(message, urgency) |
To warn the team about a breaking change |
Plus a dynamic CLAUDE.md: a <!-- COLLAB --> block at the top of your CLAUDE.md that regenerates automatically as the team's state changes, so every agent reads the latest context.
Install
CollabMCP is distributed from source (not on npm). Install it once, globally:
git clone https://github.com/BautistaPessagno/collab-mcp.git
cd collab-mcp
npm install
npm run build
npm link # makes the `collab-mcp` command available everywhere
After npm link, collab-mcp and npx collab-mcp both resolve to your local build.
Quickstart (5 steps)
Prerequisite: do the Install step once on your machine (clone + build +
npm link). That's what makes thecollab-mcp/npx collab-mcpcommand resolve — the package is not on npm.
# 1. In your project repo, initialize CollabMCP
npx collab-mcp init
# 2. Set your identity and scope
# Edit .claude/collab.json: set "dev_id" and the "scope" globs you own
# e.g. "dev_id": "bautista", "scope": ["/auth/**", "/middleware/**"]
# 3. Restart Claude Code so it loads the MCP server from .claude/mcp.json
# 4. Commit the shared state so teammates get it
git add .collab/state.json .collab/decisions.jsonl .claude/ CLAUDE.md
git commit -m "Add CollabMCP"
# 5. Each teammate does the Install step once (clone + build + npm link),
# then in this repo runs `npx collab-mcp init`, sets their own
# dev_id/scope, and restarts Claude Code. Done.
Check the team state from the terminal any time:
npx collab-mcp status
How it works
.collab/
├── state.json # active devs, their scope, current task (committed)
├── decisions.jsonl # append-only log of decisions (committed)
├── locks/ # short-lived path locks (gitignored)
└── inbox/ # per-dev broadcast messages (gitignored)
who_ownsmatches a path against each dev'sscopeglobs (viaminimatch) and any active lock.recallis keyword-overlap search overdecisions.jsonl— simple, fast, no embeddings.- A file watcher regenerates the
CLAUDE.mdblock within ~150ms of any state change. - Writes to
state.jsonare atomic (temp file + rename), so concurrent devs don't corrupt it.
Config (.claude/collab.json)
{
"server": "local",
"collab_dir": ".collab",
"dev_id": "bautista",
"scope": ["/auth/**", "/middleware/**"],
"lock_ttl_minutes": 30
}
Not in the MVP
Vector search, web dashboard, auth, Postgres/Redis, multi-repo. The data model is intentionally just files — see the roadmap in collab_mvp_plan.md.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.