context-repo-mcp
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., "@context-repo-mcpsearch my documents for 'project plan'"
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.
Context Repo MCP stdio Bridge
context-repo-mcp is a network-dependent stdio bridge to the hosted
Context Repo MCP. It lets stdio-only and
API-key-oriented MCP clients use the hosted service without duplicating its
tools or business logic in this npm package.
stdio MCP client
-> context-repo-mcp
-> HTTPS POST https://contextrepo.com/mcp
-> hosted Context Repo MCPThe hosted MCP defines all tools, prompts, resources, errors, and output
shapes. The bridge forwards newline-delimited JSON-RPC messages and relays
hosted JSON-RPC responses without reconstructing them. Result fields including
both content and structuredContent pass through unchanged.
Choose the right connection
Remote MCP with OAuth
OAuth-capable clients should connect directly to the hosted MCP:
{
"mcpServers": {
"context-repo": {
"url": "https://contextrepo.com/mcp"
}
}
}The npm bridge does not implement OAuth, open a browser, store OAuth tokens, or expose a callback port.
stdio with an API key
Clients that require a local command or API-key setup can launch the bridge:
{
"mcpServers": {
"context-repo": {
"command": "npx",
"args": ["-y", "context-repo-mcp"],
"env": {
"CONTEXTREPO_API_KEY": "gm_your_api_key"
}
}
}
}Generate an API key from
Context Repo settings. The
canonical environment variable is CONTEXTREPO_API_KEY.
CONTEXT_REPO_API_KEY is accepted only as a deprecated compatibility alias
and emits one warning to stderr.
Related MCP server: AI Context Memory
Requirements
Node.js 18 or later
Network access to
https://contextrepo.com/mcpA Context Repo API key for the stdio bridge path
Installation
Run without installing:
npx -y context-repo-mcpOr install globally:
npm install --global context-repo-mcp
context-repo-mcpRuntime behavior
Reads one JSON-RPC payload per non-empty stdin line.
Posts the original payload to the hosted MCP with
Authorization: API-Key gm_....Writes each hosted JSON-RPC response as one stdout line.
Allows concurrent requests to finish out of order using JSON-RPC IDs.
Writes diagnostics only to stderr and never logs keys or payloads.
Uses a 30-second timeout, does not follow redirects, and does not retry.
Requires JSON responses. SSE or malformed upstream responses fail closed.
Because the hosted MCP owns its protocol surface, use tools/list,
prompts/list, and resources/list to discover the current capabilities
rather than relying on a package-side inventory.
Development endpoint override
CONTEXTREPO_MCP_URL overrides the hosted endpoint for development and tests.
It must be an absolute HTTPS URL. Plain HTTP is allowed only for localhost,
127.0.0.1, or [::1].
The removed v2 variable CONTEXTREPO_API_URL points at the REST API and is not
supported by the bridge.
Troubleshooting
Configuration failure
Confirm that the key begins with gm_ and that only the canonical variable is
configured:
CONTEXTREPO_API_KEY=gm_your_api_key npx -y context-repo-mcpIf both API-key variables are configured, their values must match.
Remote clients
Do not launch this package for a client that supports remote MCP and OAuth.
Configure https://contextrepo.com/mcp directly instead.
Service availability
The bridge has no local or offline implementation. Check Context Repo status if hosted calls fail.
Development
npm install
npm test
npm pack --dry-runTests use loopback HTTP servers and do not require a real API key.
Rollback
The documented v2 rollback version is 2.2.4. Release operators can restore
that version to the npm latest dist-tag without unpublishing v3.
Links
License
MIT, see LICENSE.
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.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
An MCP memory server. One memory your agents share — across models, devices and apps.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.19MIT
- -licenseNot gradedqualityNot gradedmaintenanceAn MCP server enabling AI assistants to store, retrieve, and manage contextual information across conversations with features like persistent memory, advanced search, tagging, and privacy controls.
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to perform semantic searches over local document collections using multi-context organization and automatic OCR. It supports various file formats including PDF, DOCX, and images, ensuring all data processing remains local and private.7MIT
- AlicenseAqualityDmaintenanceMCP server for ContextKeeper that enables AI assistants to read and modify context items through natural language commands.925MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Gitmaxd/context-repo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server