npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-context-sync-mcp

v1.0.3

Published

Model Context Protocol Server for AI-Context-Sync-MCP

Readme

AI-Context-Sync-MCP — Model Context Protocol Server

This is the Model Context Protocol (MCP) server for AI-Context-Sync-MCP. It runs as an MCP tool provider inside compatible IDE clients (like Claude Desktop, Cursor, and Windsurf) enabling your AI agents to seamlessly push (save) and pull (semantically retrieve) development context, explanations, and codebase summaries.


🔑 How to Get an API Key & Subscription

🚀 Official Hosted Cloud Server Coming in a Few Days! The public cloud registration portal and official hosted API key manager are launching very soon. In the meantime, you can obtain your API key by running the project locally on your machine or self-hosting the backend.

The MCP server requires a valid user API key to authorize sync requests with the backend.

  1. Run the Dashboard Console locally:
    • Clone the project repository and run the run-local.bat script in the root directory. This automatically compiles the MCP server and starts the backend (port 8000) and the web dashboard (port 5173).
    • If you have self-hosted the backend on a server (e.g. Railway, Render, etc.), navigate to your custom dashboard URL.
  2. Register/Login:
    • Open your browser to http://localhost:5173 (or your hosted dashboard URL), go to the Sign Up tab, and register a new user account.
  3. Copy Your API Key:
    • Once logged in, open the Dashboard Console -> Settings / API Key Manager tab.
    • Copy your unique API Key (starts with ctx_).
  4. Subscription Tier Management:
    • By default, new accounts are created on the FREE tier (limited to 2 projects, 3 contexts per project, and 20KB context size).
    • In the Subscription Settings section of the Settings tab, you can click the Upgrade to PRO button to simulate upgrading your account to the PRO tier, which unlocks unlimited sync projects and context limits. (Stripe self-checkout registration is coming in a few days along with the hosted portal).

🚀 Installation & Configuration

1. Claude Desktop

Add the following configuration to your claude_desktop_config.json settings file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ai-context-sync-mcp": {
      "command": "npx",
      "args": ["-y", "ai-context-sync-mcp"],
      "env": {
        "CONTEXT_SYNC_API_KEY": "YOUR_API_KEY_HERE",
        "CONTEXT_SYNC_BACKEND_URL": "http://127.0.0.1:8000"
      }
    }
  }
}

💡 Replace YOUR_API_KEY_HERE with your ctx_... API key. If your FastAPI backend is running on a custom port or hosted domain (e.g. on Railway), update CONTEXT_SYNC_BACKEND_URL accordingly.


2. Cursor IDE

  1. Navigate to Cursor Settings -> Features -> MCP.
  2. Click + Add New MCP Server.
  3. Fill in the following details:
    • Name: ai-context-sync-mcp
    • Type: command
    • Command:
      • Windows:
        cmd /c "set CONTEXT_SYNC_API_KEY=YOUR_API_KEY_HERE&& set CONTEXT_SYNC_BACKEND_URL=http://localhost:8000&& npx -y ai-context-sync-mcp"
      • macOS / Linux:
        CONTEXT_SYNC_API_KEY=YOUR_API_KEY_HERE CONTEXT_SYNC_BACKEND_URL=http://localhost:8000 npx -y ai-context-sync-mcp

3. Windsurf IDE

  1. Open your Windsurf MCP Configuration file located at:
    • Windows/macOS/Linux: ~/.codeium/windsurf/mcp_config.json
  2. Add the server entry into the mcpServers object:
    {
      "mcpServers": {
        "ai-context-sync-mcp": {
          "command": "npx",
          "args": ["-y", "ai-context-sync-mcp"],
          "env": {
            "CONTEXT_SYNC_API_KEY": "YOUR_API_KEY_HERE",
            "CONTEXT_SYNC_BACKEND_URL": "http://127.0.0.1:8000"
          }
        }
      }
    }
  3. Alternatively, you can configure it via the Windsurf UI panel.

4. VS Code (Cline, Roo Code, and Custom Extension Agents)

For VS Code extensions that support standard MCP servers:

  1. Open the global MCP settings configuration file:
    • Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
    • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  2. Add the configuration entry:
    {
      "mcpServers": {
        "ai-context-sync-mcp": {
          "command": "npx",
          "args": ["-y", "ai-context-sync-mcp"],
          "env": {
            "CONTEXT_SYNC_API_KEY": "YOUR_API_KEY_HERE",
            "CONTEXT_SYNC_BACKEND_URL": "http://127.0.0.1:8000"
          }
        }
      }
    }

5. Antigravity & Agentic Frameworks

Because ai-context-sync-mcp adheres to the open Model Context Protocol spec over stdio transport, it is natively supported by agent platforms (like Antigravity and other dev agents). You can run it dynamically with:

  • Command: npx -y ai-context-sync-mcp
  • Environment:
    • CONTEXT_SYNC_API_KEY: YOUR_API_KEY_HERE
    • CONTEXT_SYNC_BACKEND_URL: http://127.0.0.1:8000

🛠️ Provided Tools

Once configured, your LLM agent will have access to the following tools:

1. push_context

Saves your current chat summaries, file snippets, or codebase structures directly to the cloud backend.

  • Parameters:
    • contextData (required): The actual code context, chat history, or serialized message transcripts to save.
    • projectName (optional): The name of the project this context belongs to (defaults to your active workspace folder name).
    • contextName (optional): A short descriptive name for this context block (e.g., auth-logic).
    • contextDescription (optional): A detailed explanation helping semantic search find this block later.
    • contextType (optional): full, summary, or feature.

2. pull_context

Performs an AI semantic search (powered by Google Gemini 1.5 Flash) on your saved contexts to pull relevant information back into the LLM's active memory context.

  • Parameters:
    • searchQuery (required): What you need to retrieve (e.g., "how did we setup JWT authentication?").
    • projectName (optional): Restricts the query to a specific project.