Context portability MCP server for compressing, formatting, and resuming AI conversation handoffs.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"contextbridge": {
"env": {
"GROQ_API_KEY": "your_groq_api_key_here"
},
"args": [
"-y",
"@contextbridge_ai/mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
ContextBridge is a context portability tool for AI conversations. This package publishes the MCP server surface: it compresses an in-progress conversation into a structured context block that preserves the user's goal, confirmed decisions, current state, open threads, artifacts, constraints, recent pivots, and suggested next step, then formats that handoff so another AI can continue without forcing the user to restate everything.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
Autonomous spec-to-product coding-agent CLI with an MCP server exposing 34 tools over stdio.
97% token reduction for AI coding sessions — zero deps, 21 languages, MCP server
App framework, testing framework, and inspector for MCP Apps.
MCP Security Weekly
Get CVE alerts and security updates for io.github.prateekg7/context-bridge and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
ContextBridge is a context portability tool for AI conversations. This package publishes the MCP server surface: it compresses an in-progress conversation into a structured context block that preserves the user's goal, confirmed decisions, current state, open threads, artifacts, constraints, recent pivots, and suggested next step, then formats that handoff so another AI can continue without forcing the user to restate everything.
The published npm artifact is the stdio MCP server for Claude Desktop, agent runtimes, and other MCP-compatible hosts. The browser extension runtime is developed in the same repository, but it is not part of this MCP Registry publishing flow.
Add this to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"contextbridge": {
"command": "npx",
"args": ["-y", "@contextbridge_ai/mcp"],
"env": {
"GROQ_API_KEY": "your_groq_api_key_here"
}
}
}
}
Or with OpenAI:
{
"mcpServers": {
"contextbridge": {
"command": "npx",
"args": ["-y", "@contextbridge_ai/mcp"],
"env": {
"OPENAI_API_KEY": "your_openai_api_key_here",
"OPENAI_MODEL": "gpt-4.1-mini"
}
}
}
}
For a hosted no-key lane instead of BYOK:
{
"mcpServers": {
"contextbridge": {
"command": "npx",
"args": ["-y", "@contextbridge_ai/mcp"],
"env": {
"CONTEXTBRIDGE_HOSTED_URL": "https://your-hosted-endpoint.example/v1",
"CONTEXTBRIDGE_HOSTED_MODEL": "mistralai/Mistral-7B-Instruct-v0.2"
}
}
}
}
compress_contextCompresses a raw transcript into a structured context block.
Parameters:
transcript (string, required): the raw conversation transcript to compress.provider ("openai" | "openai-chat" | "google" | "groq" | "custom" | "hosted", optional): provider override.model (string, optional): model override for the selected lane.apiKey (string, optional): BYOK API key override.baseUrl (string, optional): API base URL override.hostedApiKey (string, optional): optional auth key for the hosted lane.format_for_targetFormats a compressed context block for a destination platform.
Parameters:
context_block (object, required): a validated ContextBridge compressed context block.target ("claude" | "chatgpt" | "gemini", required): destination AI platform.resume_contextBuilds a destination-ready landing package from a compressed context block.
Parameters:
context_block (object, required): a validated ContextBridge compressed context block.target ("claude" | "chatgpt" | "gemini", required): destination AI platform.ContextBridge auto-selects the OpenAI Responses lane when a BYOK key is present.
Environment variables:
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-4.1-mini
OPENAI_BASE_URL=https://api.openai.com/v1
Additional supported provider overrides:
GOOGLE_API_KEY=your_google_api_key_here
GOOGLE_MODEL=gemini-2.5-pro
GOOGLE_BASE_URL=https://generativel
... [View full README on GitHub](https://github.com/prateekg7/context-bridge#readme)