claude-sync
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-syncpush decision: use PostgreSQL for persistence"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
claude-sync
Cross-machine context sharing MCP server for Claude Code. Share decisions, patterns, and knowledge across multiple Claude Code instances running on different machines.
What it does
When you use Claude Code on multiple machines (backend server, frontend laptop, ideas tablet), each instance is isolated. claude-sync gives them a shared memory — push a decision on one machine, search for it on another.
Related MCP server: mcp-server-claude
Quick Start
1. Clone and configure
git clone https://github.com/YOUR_USERNAME/claude-sync.git
cd claude-sync
cp .env.example .envEdit .env and set:
API_KEY_HASH— see below for generating
2. Generate an API key
# Generate a random key
KEY=$(node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
echo "Your API key: $KEY"
# Hash it for .env
HASH=$(echo -n "$KEY" | shasum -a 256 | cut -d' ' -f1)
echo "API_KEY_HASH=$HASH"Add the hash to your .env file.
3. Start with Docker Compose
docker compose up -dThe server will be available at http://localhost:3001.
4. Connect Claude Code
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"claude-sync": {
"type": "streamable-http",
"url": "http://localhost:3001/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}For remote access (e.g., deployed on Railway), replace localhost:3001 with your server URL.
Deploy on Railway
Fork this repo
Create a new project on Railway
Add a PostgreSQL database (select the pgvector template)
Add a new service from your forked repo
Set environment variables:
API_KEY_HASH,DATABASE_URL(auto-set by Railway)Deploy
MCP Tools
Tool | Description |
| Store a new context entry (decision, discovery, pattern, etc.) |
| Semantic search across all shared entries |
| List recent entries, optionally filtered by machine or type |
| Get full details of a specific entry |
| Soft-delete an entry |
| See which machines have contributed and their activity |
Entry Types
context— general contextdecision— architectural or design decisionsdiscovery— learning about existing systemsbugfix— something broken, now fixedpattern— reusable approachesarchitecture— structural decisionsgotcha— traps and edge casestrade-off— pros/cons analysis
Multi-Key Mode (Teams)
For teams, use database-backed API keys instead of API_KEY_HASH:
Remove
API_KEY_HASHfrom.envRun migrations:
docker compose up -dGenerate keys:
npm run create-key -- --project my-project --label "Alice's laptop"
npm run create-key -- --project my-project --label "Bob's desktop"Each key is scoped to a project. Team members using the same project see shared context.
Development
npm install
cp .env.example .env # configure your env
# Start Postgres with pgvector
docker compose up db -d
# Run in development mode
npm run devArchitecture
TypeScript + Express + MCP SDK
PostgreSQL + pgvector for storage and vector similarity search
Local embeddings via
all-MiniLM-L6-v2(runs in-process, no external API calls)Stateless MCP transport — each request is independent
Bearer token auth — single-key or multi-key modes
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThomasMortell/Claude-sync-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server