@context-sync/server
Version:
MCP server for AI context sync with persistent memory, workspace file access, and intelligent code operations
1,070 lines (761 loc) ⢠24.8 kB
Markdown
# Context Sync š§
<div align="center">
<!-- HERO BANNER -->
<img src=".github/assets/context-sync-banner-bidirectional.svg" alt="Context Sync - AI Context Management" width="100%">
<br><br>
### **Build in Cursor. Continue in Claude Desktop. Code in VS Code. Your AI remembers everything.**
<br>
<!-- PLATFORM BADGES - PROMINENT -->
<p>
<img src="https://img.shields.io/badge/Cursor-Supported-00D4AA?style=for-the-badge&logo=cursor&logoColor=white" alt="Cursor">
<img src="https://img.shields.io/badge/Claude%20Desktop-Supported-6366f1?style=for-the-badge&logo=anthropic&logoColor=white" alt="Claude Desktop">
<img src="https://img.shields.io/badge/VS%20Code-Supported-007ACC?style=for-the-badge&logo=visualstudiocode&logoColor=white" alt="VS Code">
<img src="https://img.shields.io/badge/GitHub%20Copilot-Supported-24292e?style=for-the-badge&logo=github&logoColor=white" alt="GitHub Copilot">
</p>
<!-- VERSION BADGES -->
<p>
<a href="https://www.npmjs.com/package/@context-sync/server">
<img src="https://img.shields.io/npm/v/@context-sync/server?color=cb3837&style=flat-square&logo=npm" alt="npm">
</a>
<a href="https://github.com/Intina47/context-sync/stargazers">
<img src="https://img.shields.io/github/stars/Intina47/context-sync?color=yellow&style=flat-square&logo=github" alt="stars">
</a>
<a href="https://www.npmjs.com/package/@context-sync/server">
<img src="https://img.shields.io/npm/dm/@context-sync/server?color=blue&style=flat-square" alt="downloads">
</a>
<img src="https://img.shields.io/badge/setup-2%20minutes-green?style=flat-square" alt="Setup time">
<img src="https://img.shields.io/badge/tokens-1--3K%20only-orange?style=flat-square" alt="Token usage">
</p>
<!-- SOCIAL PROOF -->
<p>
<strong>20+ GitHub stars in 24 hours</strong> ⢠<strong>400+ downloads Launch Week</strong> ⢠<strong>#17 Product Hunt</strong>
</p>
<!-- PRODUCT HUNT -->
<a href="https://www.producthunt.com/products/context-sync-local-mcp-server?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-context-sync" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1029707&theme=dark&t=1761387366666" alt="Context Sync - Persistent AI memory across Claude Desktop & Cursor IDE | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
<br>
---
**Stop re-explaining your projects to AI. Build seamlessly across Cursor and Claude Desktop.**
<sub>Local-first ⢠2-minute setup ⢠Works with your existing workflow</sub>
</div>
<br>
---
<br>
## š¤ You Know This Pain
You're building with AI. You've explained your project architecture, tech stack, and design decisions.
**Then you hit a limit. New chat. Claude forgot everything.**
<table>
<tr>
<td width="50%" valign="top">
### ā Without Context Sync
**Monday in Cursor:**
```
You: "Building TaskFlow - Next.js app with Supabase"
AI: "Great! Let's start..."
*3 hours of coding*
```
**Tuesday in Claude Desktop:**
```
You: "Continue TaskFlow"
AI: "What's TaskFlow? Please explain your project"
```
**š” You spend 30 minutes re-explaining. Every. Single. Day.**
</td>
<td width="50%" valign="top">
### ā
With Context Sync
**Monday in Cursor:**
```
You: "Building TaskFlow - Next.js app with Supabase"
AI: "Great! Let's start..."
*3 hours of coding*
```
**Tuesday in Claude Desktop:**
```
You: "Continue TaskFlow"
AI: "Continuing your Next.js app with Supabase.
What feature should we add next?"
```
**š AI just remembers. Works everywhere.**
</td>
</tr>
</table>
**Context Sync syncs your AI context between Cursor, Claude Desktop, and VS Code automatically.**
<br>
---
<br>
## šÆ Who This Is For
<table>
<tr>
<td width="50%">
### ā
Perfect For You If:
- You use **Cursor, Claude Desktop, or VS Code**
- Building **long-term projects** (weeks/months)
- Tired of **re-explaining context**
- Switch between AI tools frequently
- Freelancer juggling multiple projects
- Want AI that **actually remembers**
</td>
<td width="50%">
### ā Not For You If:
- Only use AI for one-off questions
- Don't use Cursor, Claude Desktop, or VS Code
- Happy manually copying context
- Casual AI user (not building projects)
- Prefer cloud-based solutions
</td>
</tr>
</table>
<br>
---
<br>
## š 2-Minute Setup
**No configuration files. No API keys. No complexity.**
<table>
<tr>
<td align="center" width="33%">
### 1ļøā£ Install
ā±ļø 30 seconds
```bash
npm install -g @context-sync/server
```
One command. Global install.
</td>
<td align="center" width="33%">
### 2ļøā£ Restart
ā±ļø 30 seconds
**Claude Desktop:**
- Mac: `ā + Q`
- Windows: Right-click tray
**Cursor:**
- Refresh MCP servers
</td>
<td align="center" width="33%">
### 3ļøā£ Done! āØ
ā±ļø 1 minute
```
You: "help context-sync"
```
Context Sync is running!
Follow the guided setup!
</td>
</tr>
</table>
<div align="center">
**Total time: 2 minutes ⢠Zero configuration ⢠Works immediately**
</div>
### š First Time? Start Here!
**Complete beginner setup:**
1. **Install:** `npm install -g @context-sync/server`
2. **Choose your platform:**
- **Claude Desktop:** Restart app ā type `"help context-sync"`
- **VS Code + Copilot:** Restart VS Code ā open Copilot Chat ā look for context-sync tools
- **Cursor:** Refresh MCP ā test with `"help context-sync"`
3. **Follow the guided setup!** ā
You're done!
<br>
### š§ Setup for VS Code + GitHub Copilot
<details>
<summary><b>Quick Setup for VS Code (30 seconds)</b></summary>
<br>
After installing Context Sync globally:
1. **Restart VS Code** completely
2. **Open Copilot Chat** (Ctrl+Shift+I / Cmd+Shift+I)
3. **Switch to Agent mode** (if available)
4. **Look for context-sync** in the Tools list
5. **Test:** Ask Copilot `"help me get started with context-sync"`
Context Sync should appear in available tools! āØ
</details>
### š§ Setup for Cursor
<details>
<summary><b>Quick Setup for Cursor (30 seconds)</b></summary>
<br>
After installing Context Sync, in Claude Desktop type:
```
setup cursor
```
Claude will give you OS-specific instructions! āØ
</details>
<details>
<summary><b>Manual Cursor Setup</b></summary>
<br>
1. Open Cursor: `Settings ā MCP`
2. Add this configuration:
```json
{
"mcpServers": {
"context-sync": {
"command": "npx",
"args": ["-y", "@context-sync/server"]
}
}
}
```
3. Refresh MCP servers
4. Test: `"Help me get started with context-sync"`
Done! ā
</details>
<br>
---
<br>
## š How It Works
<div align="center">
```
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāā
ā Cursor ā āāāāāāāāāāāāāāāā> ā Context Sync ā <āāāāāāāāāāāāāāāā ā Claude ā
ā IDE ā Saves context ā (Your Machine) ā Loads context ā Desktop ā
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāā
ā
ā SQLite Database
ā ~/.context-sync/
ā¼
āāāāāāāāāāāāāāāāāāāā
ā ⢠Projects ā
ā ⢠Decisions ā
ā ⢠Architecture ā
ā ⢠TODOs ā
ā ⢠Code Context ā
āāāāāāāāāāāāāāāāāāāā
```
</div>
**100% Local ⢠You Own Your Data ⢠No Cloud ⢠Open Source**
<br>
---
<br>
## ā” Key Features
<table>
<tr>
<td align="center" width="25%">
<h2>š</h2>
<h3>Cross-Platform Sync</h3>
<p>Cursor ā Claude Desktop ā VS Code. Context follows you everywhere.</p>
<sub><strong>Works across all platforms</strong></sub>
</td>
<td align="center" width="25%">
<h2>š§ </h2>
<h3>Perfect Memory</h3>
<p>Close everything. Come back next week. AI remembers your entire project.</p>
<sub><strong>Never re-explain again</strong></sub>
</td>
<td align="center" width="25%">
<h2>ā”</h2>
<h3>Fast & Safe</h3>
<p>Async operations, file size limits, cache invalidation. Built for performance.</p>
<sub><strong>v0.6.0 optimizations</strong></sub>
</td>
<td align="center" width="25%">
<h2>š</h2>
<h3>Local & Private</h3>
<p>SQLite database on your machine. No cloud. No tracking. You own everything.</p>
<sub><strong>100% under your control</strong></sub>
</td>
</tr>
</table>
### š¦ What Gets Synced:
- ā
Project name, description, tech stack
- ā
Architecture decisions and reasoning
- ā
TODOs and task lists
- ā
Code context (files, dependencies, types)
- ā
Conversation summaries
- ā
Git status and branches
### š” Smart Token Usage:
**Uses only 1-3K tokens** (not full conversation dumps)
Think of it like:
- ā Loading your entire codebase into RAM
- ā
An IDE that loads files as you need them
Context Sync stores **structured summaries**. AI queries for details on-demand. You never saturate the context window.
### ā” Performance Optimizations (v0.6.0):
**Faster, safer, more reliable:**
- š **File size limits** - Prevents crashes with 5MB max file size
- š **Real-time cache invalidation** - File watchers automatically update caches
- ā” **Async operations** - All file I/O is non-blocking
- šļø **Database query optimization** - Prepared statements (2-5x faster)
- šÆ **Smart file handling** - Skips large files, warns on potential issues
<br>
---
<br>
## š How Is This Different?
### vs Claude's `/compact` command
<table>
<tr>
<td width="50%">
**`/compact` command:**
- Compresses ONE conversation
- Saves tokens in current chat
- Stays in same conversation
- Temporary solution
</td>
<td width="50%">
**Context Sync:**
- Works across ALL conversations
- Permanent memory forever
- Works across platforms (Cursor ā Claude)
- Complete solution
</td>
</tr>
</table>
**They're complementary!** Use `/compact` for long chats, Context Sync for project memory.
---
### vs Claude Pro subscription
<table>
<tr>
<td width="50%">
**Claude Pro ($20/month):**
- ā
More messages per day
- ā
Longer context window
- ā
Priority access
- ā Still forgets between chats
</td>
<td width="50%">
**Context Sync (Free):**
- ā
Permanent memory across chats
- ā
Cross-platform sync
- ā
Local storage (you own it)
- ā
Works with Pro or Free tier
</td>
</tr>
</table>
**You need both:** Claude Pro for more messages, Context Sync for memory.
---
### vs basic-memory
<table>
<tr>
<td width="50%">
**basic-memory:**
- Simple context storage
- Claude Desktop only
- Basic features
</td>
<td width="50%">
**Context Sync:**
- ā
Cross-platform (Cursor ā Claude)
- ā
Advanced code analysis
- ā
TODO management
- ā
Git integration
- ā
File operations
- ā
Active development
</td>
</tr>
</table>
**Different needs:** basic-memory for simple storage, Context Sync for full dev workflow.
---
### vs Traycer
<table>
<tr>
<td width="50%">
**Traycer:**
- Web wrapper around Claude
- Cloud-based
- Self-contained app
</td>
<td width="50%">
**Context Sync:**
- ā
Works with native tools (Cursor + Claude Desktop)
- ā
Local-first (your machine)
- ā
Cross-platform sync
- ā
Open source
</td>
</tr>
</table>
**Different approach:** Traycer = new interface, Context Sync = enhance existing tools.
<br>
---
<br>
## š¬ Common Questions
<details>
<summary><b>Why isn't this built into Claude already?</b></summary>
<br>
**Honest answer:** Business incentives.
If Claude remembered everything perfectly:
- You'd have shorter conversations
- Use fewer messages
- Hit rate limits slower
Persistent memory makes AI more useful but potentially less profitable for AI companies.
**That's why Context Sync is:**
- Open source (no profit motive)
- Local-first (you own your data)
- Community-driven (built by developers, for developers)
</details>
<details>
<summary><b>Won't this fill up my context window?</b></summary>
<br>
**No!** Context Sync uses only **1-3K tokens per project**.
**How it works:**
1. Stores structured summaries (not full conversations)
2. AI queries for details on-demand via MCP
3. Never dumps everything into a new chat
**Analogy:**
- ā Bad: Loading 10GB codebase into RAM
- ā
Good: IDE that loads files as needed
**Example:**
- Your 10K line project with 50 decisions
- Context Sync summary: ~1.5K tokens
- AI queries for specific details when needed
You never saturate because you're not copying conversations - you're giving AI access to a queryable database.
</details>
<details>
<summary><b>Is my data safe and private?</b></summary>
<br>
**100% local. 100% yours.**
- ā
SQLite database on YOUR machine
- ā
No cloud sync (unless you configure it)
- ā
No data sent to our servers (we don't have servers!)
- ā
Open source - audit the code yourself
- ā
Delete anytime - just remove `~/.context-sync/`
**Database location:**
- Mac/Linux: `~/.context-sync/data.db`
- Windows: `%USERPROFILE%\.context-sync\data.db`
**You control everything.**
</details>
<details>
<summary><b>Does this work with VS Code?</b></summary>
<br>
**Yes! Available in v0.6.0!** š
VS Code with GitHub Copilot is now fully supported through MCP integration.
**Setup instructions:**
1. Install Context Sync: `npm install -g @context-sync/server`
2. Restart VS Code
3. Open Copilot Chat
4. Switch to Agent mode
5. Look for context-sync in Tools list
**Currently works with:**
- ā
VS Code + GitHub Copilot (new!)
- ā
Cursor IDE (full support)
- ā
Claude Desktop (full support)
</details>
<details>
<summary><b>Does this work with Claude Code CLI?</b></summary>
<br>
**Also coming in v0.6.0!**
Claude Code just launched and supports MCP, so integration should be straightforward.
We're prioritizing:
1. VS Code extension
2. Claude Code CLI
3. Better onboarding
**Want it sooner?** Let us know in [GitHub Discussions](https://github.com/Intina47/context-sync/discussions)!
</details>
<details>
<summary><b>Can I use this on mobile?</b></summary>
<br>
**Not yet.** Mobile requires:
- Claude mobile app to support MCP (not available yet)
- OR a custom mobile app (planned for future)
**Current workaround:**
- Use Claude.ai web on mobile (read-only)
- Full features on desktop only
Mobile support depends on Anthropic adding MCP to their mobile app.
</details>
<details>
<summary><b>How much does this cost?</b></summary>
<br>
**Context Sync is 100% free and open source** (MIT License).
**Why free?**
- Built by developers, for developers
- Solves a problem we personally had
- Community-driven development
- No profit motive = no business incentives to limit features
**You might pay for:**
- Claude Pro subscription (recommended but not required)
- Your time (2 minutes to set up)
That's it!
</details>
<details>
<summary><b>What if I have multiple projects?</b></summary>
<br>
**Context Sync handles multiple projects beautifully!**
```bash
You: "Switch to my blog project"
AI: [loads blog context instantly]
You: "List my projects"
AI:
1. TaskFlow (Next.js + Supabase)
2. Personal Blog (Astro)
3. Client Website (WordPress)
You: "Switch to TaskFlow"
AI: [back to TaskFlow context]
```
Each project maintains its own:
- Architecture decisions
- Tech stack
- TODOs
- Code context
- Conversation history
</details>
<br>
---
<br>
## š¬ Real-World Example
### Freelance Developer Workflow
**Monday Morning (Cursor):**
```
You: "Initialize project 'EcommerceClient' - Next.js 14, Stripe, PostgreSQL"
AI: "Project created! ā"
*Build product catalog for 3 hours*
```
**Tuesday Afternoon (Claude Desktop):**
```
You: "Continue EcommerceClient - add shopping cart"
AI: "Adding cart to your Next.js app with Stripe integration.
Using the product schema we defined yesterday..."
```
**Wednesday (Cursor):**
```
You: "Switch back to Cursor. Review cart implementation"
AI: "Analyzing cart code... found 2 potential improvements..."
```
**No re-explaining. No context loss. Just continuous progress across tools.**
<br>
---
<br>
## šŗļø Roadmap
<table>
<tr>
<td align="center" width="33%">
<h3>ā
v0.6.0 - Current</h3>
<sub>Released October 2025</sub>
<br><br>
ā VS Code & GitHub Copilot support<br>
ā Performance optimizations<br>
ā Async file operations<br>
ā File size limits & safety<br>
ā Real-time cache invalidation
</td>
<td align="center" width="33%">
<h3>š v0.7.0 - Next</h3>
<sub>6-8 weeks</sub>
<br><br>
⢠Claude Code CLI support<br>
⢠Enhanced VS Code integration<br>
⢠Better onboarding flow<br>
⢠Improved documentation<br>
⢠Additional performance optimizations
</td>
<td align="center" width="33%">
<h3>š® Future</h3>
<sub>Coming later</sub>
<br><br>
⢠Mobile support<br>
⢠Team collaboration<br>
⢠Analytics dashboard<br>
⢠More AI platforms<br>
⢠Advanced features
</td>
</tr>
</table>
**See detailed roadmap:** [ROADMAP.md](ROADMAP.md)
<br>
---
<br>
## š Stats
<div align="center">
<img src="https://img.shields.io/npm/dt/@context-sync/server?label=Total%20Downloads&style=flat-square&color=cb3837">
<img src="https://img.shields.io/github/stars/Intina47/context-sync?label=Stars&style=flat-square&color=yellow">
<img src="https://img.shields.io/github/forks/Intina47/context-sync?label=Forks&style=flat-square&color=blue">
<img src="https://img.shields.io/github/issues/Intina47/context-sync?label=Issues&style=flat-square&color=green">
<br><br>
**Recent milestones:**
- š 26 stars in first 24 hours
- š¦ 400+ npm downloads in launch week
- š #17 on Product Hunt
- š¬ 20K+ Reddit impressions
</div>
<br>
---
<br>
## š ļø Advanced Features
<details>
<summary><b>Full Feature List</b></summary>
<br>
### Project Management
- Initialize and switch between projects
- Track architecture and tech stack
- Store design decisions with reasoning
- Manage TODOs and priorities
### Code Analysis
- Dependency graph analysis
- Function call traces
- Type definition lookup
- Find all references
- Impact analysis
### File Operations
- Read project structure
- Search files and content
- Modify files (with approval)
- Preview changes before applying
### Git Integration
- Status and diff viewing
- Branch information
- Commit message suggestions
- Change tracking
### Cross-Platform
- Seamless Cursor ā Claude sync
- Platform-specific optimizations
- Context handoff automation
### Developer Tools
- 50+ MCP tools
- Extensible architecture
- TypeScript + SQLite
- Open source
</details>
<br>
---
<br>
## š¤ Contributing
We love contributions! Here's how to help:
<table>
<tr>
<td align="center" width="25%">
<h3>š</h3>
<strong>Report Bugs</strong>
<br><br>
<a href="https://github.com/Intina47/context-sync/issues">Create Issue</a>
</td>
<td align="center" width="25%">
<h3>š”</h3>
<strong>Request Features</strong>
<br><br>
<a href="https://github.com/Intina47/context-sync/discussions">Start Discussion</a>
</td>
<td align="center" width="25%">
<h3>š ļø</h3>
<strong>Submit Code</strong>
<br><br>
<a href="CONTRIBUTING.md">See Guide</a>
</td>
<td align="center" width="25%">
<h3>š</h3>
<strong>Improve Docs</strong>
<br><br>
<a href="https://github.com/Intina47/context-sync/tree/main/documentation">Help Here</a>
</td>
</tr>
</table>
**See:** [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.
<br>
---
<br>
## š Community
<div align="center">
<a href="https://github.com/Intina47/context-sync/discussions">
<img src="https://img.shields.io/badge/GitHub-Discussions-181717?style=for-the-badge&logo=github" alt="Discussions">
</a>
<a href="https://www.producthunt.com/posts/context-sync">
<img src="https://img.shields.io/badge/Product%20Hunt-Vote-orange?style=for-the-badge&logo=producthunt" alt="Product Hunt">
</a>
<a href="https://twitter.com/intent/tweet?text=Check%20out%20Context%20Sync%20-%20AI%20context%20sync%20for%20Cursor%20and%20Claude!&url=https://github.com/Intina47/context-sync">
<img src="https://img.shields.io/badge/Twitter-Share-1DA1F2?style=for-the-badge&logo=twitter" alt="Twitter">
</a>
<br><br>
**Show your support:** Give us a ā on GitHub!
<br>
<a href="https://github.com/Intina47/context-sync/stargazers">
<img src="https://img.shields.io/github/stars/Intina47/context-sync?style=social" alt="Star">
</a>
</div>
<br>
---
<br>
## š§ Troubleshooting
<details>
<summary><b>Claude Desktop doesn't see Context Sync</b></summary>
<br>
1. Verify installation:
```bash
context-sync --version
```
2. Check config file:
```bash
# Mac/Linux
cat ~/.config/Claude/claude_desktop_config.json
# Windows
type %APPDATA%\Claude\claude_desktop_config.json
```
3. Restart Claude completely:
- Mac: `ā + Q` (force quit)
- Windows: Right-click tray icon ā Exit
4. Check MCP servers in Claude: Look for Context Sync in settings
Still stuck? [Create an issue](https://github.com/Intina47/context-sync/issues)
</details>
<details>
<summary><b>Cursor doesn't see Context Sync</b></summary>
<br>
1. Open Cursor settings: `Settings ā MCP`
2. Verify configuration exists:
```json
{
"mcpServers": {
"context-sync": {
"command": "npx",
"args": ["-y", "@context-sync/server"]
}
}
}
```
3. Refresh MCP servers in Cursor
4. Test: Ask AI "What's my current project?"
</details>
<details>
<summary><b>"No active project" error</b></summary>
<br>
Initialize a project first:
```bash
You: "Initialize project 'test-app'"
```
Or switch to existing:
```bash
You: "What projects do I have?"
You: "Switch to [project-name]"
```
</details>
<details>
<summary><b>Context not syncing between platforms</b></summary>
<br>
1. Check platform status:
```bash
You: "Check platform status"
```
2. Verify both platforms are configured
3. Try manual sync:
```bash
You: "Sync context to Cursor"
```
</details>
**More help:** [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
<br>
---
<br>
## š License
MIT License - see [LICENSE](LICENSE) file for details.
**TL;DR:** Use it however you want. Commercial, personal, modify, distribute. Just keep the license.
<br>
---
<br>
## š Acknowledgments
**Built with:**
- [Model Context Protocol](https://modelcontextprotocol.io/) by Anthropic
- [TypeScript](https://www.typescriptlang.org/)
- [SQLite](https://www.sqlite.org/)
**Special thanks:**
- Every developer who gave feedback on launch day
- Early adopters who believed in the vision
- The Claude AI community
- Contributors who helped build this
**Built by developers tired of explaining the same thing 47 times.**
<br>
---
<br>
<div align="center">
## š Support the Project
**If Context Sync saves you time:**
- ā Star the repo
- š¦ Share on Twitter
- š Upvote on Product Hunt
- š¬ Tell other developers
- š ļø Contribute code or docs
**Every bit helps more developers discover this tool!**
<br>
---
<br>
**Made with ā¤ļø by developers who were tired of re-explaining their projects**
<br>
[⬠Back to Top](#context-sync-)
<br>
<sub>© 2025 Context Sync ⢠Open Source ⢠MIT License</sub>
</div>