ContextMCP
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., "@ContextMCPsearch the codebase for the payment retry logic"
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.
ContextMCP Dockerized Setup
This repository wraps the upstream dodopayments/context-mcp project and provides two Docker Compose entrypoints:
docker-compose.local.ymlfor fully local development with Ollama + Pinecone Localdocker-compose.cloud.ymlfor app/reindex flows backed by cloud services
With new changes being made most likely it will be moved to a fork of the upstream project.
Local mode
Copy the example environment file:
cp .env.example .envReview
config.yamland replace the placeholder source before indexing.Start Pinecone Local and Ollama:
docker compose -f docker-compose.local.yml up -d pinecone ollamaPull the default embedding model:
docker compose -f docker-compose.local.yml --profile bootstrap run --rm ollama-bootstrapAlternatively, if Ollama is running directly on the host:
ollama pull nomic-embed-textRun reindex:
docker compose -f docker-compose.local.yml --profile reindex run --rm reindexStart the app:
docker compose -f docker-compose.local.yml up -d appRelated MCP server: mcp-context
Local Pinecone backup and restore
Pinecone Local is in-memory and does not provide native backup/restore. This repository adds a repo-owned export/import workflow on top of the local API.
Because the local index is in memory, it is a good idea to create a backup right after a successful indexing run. That way you can restore the same local corpus after a reboot instead of rerunning a long reindex.
Before using the backup/restore scripts on a fresh clone, install the small host-side helper dependency:
npm installCreate a backup:
./scripts/backup-local-index.shThis writes a new folder under ./backups/, for example:
backups/contextmcp-docs-2026-07-31T12-00-00Z/Restore from the latest backup:
./scripts/restore-local-index.shRestore from a specific backup:
BACKUP_DIR=./backups/contextmcp-docs-2026-07-31T12-00-00Z ./scripts/restore-local-index.shUseful knobs:
BACKUP_ROOT- where backup folders are createdBACKUP_DIR- explicitly restore from a specific backup folderBACKUP_BATCH_SIZE- vectors per exported backup fileRESTORE_INDEX_NAME- restore into a different local index nameRESTORE_CLEAR_FIRST=false- keep existing vectors and upsert on topRESTORE_UPSERT_BATCH_SIZE- vectors per restore upsert request
Restore behavior notes:
the restore script will create the target index if it does not exist
if the target index already exists, restore validates dimension and metric compatibility before clearing anything
Local multi-repo indexing (optional)
Instead of editing config.yaml per repository, you can index an arbitrary
list of local repositories by setting two variables in .env:
LOCAL_DOCS_ROOT=/absolute/path/to/your/projects
LOCAL_DOCS_REPOS=repo-one=java,repo-two=typescript:sub/pathLOCAL_DOCS_ROOTis mounted read-only into thereindexcontainer at/workspace/repos.LOCAL_DOCS_REPOSis a comma-separated list ofrepo=languagepairs. Eachrepomust be a subdirectory name underLOCAL_DOCS_ROOT.languagemust be one ofjava,typescript, orjavascript. You can optionally append a repo-relative subpath after the language (repo=language:sub/path) when the actual source code lives below the repo root, for exampleHybris=java:hybris/bin/custom.Each repo is indexed as one mixed source set: the AST-aware
parser: codechunker extracts method/function/class chunks from code files and whole-file chunks from text-like config/infra files (for example yaml/yml/json/ properties/xml/toml/conf/cfg/ini, shell scripts, Dockerfiles, and common dot-config files such as.gitignore,.dockerignore,.editorconfig). Common build/tooling directories are still skipped (.git,node_modules,build,.gradle,.idea, etc.).When
LOCAL_DOCS_REPOSis unset, this feature does nothing and reindex falls back to the source configured inconfig.yaml, unchanged.
Run it the same way as the standard local flow:
docker compose -f docker-compose.local.yml --profile reindex run --rm reindex
docker compose -f docker-compose.local.yml up -d appCloud mode
Copy the example environment file:
cp .env.example .envChange
.envfor cloud usage:
set
PINECONE_MODE=cloudset
PINECONE_API_KEYto your real keyclear
PINECONE_CONTROLLER_HOSTset
OPENAI_API_KEY, or updateconfig.cloud.yamlto a different embedding provider before setting that provider's key
Review
config.cloud.yamland replace the placeholder source before indexing.Run the cloud reindex/app flow:
docker compose -f docker-compose.cloud.yml --profile reindex run --rm reindex
docker compose -f docker-compose.cloud.yml up -d appNotes
Pinecone Local is development-only.
Pinecone Local is in-memory and not production-safe.
Pinecone Local records do not persist after shutdown.
The Docker image vendors upstream ContextMCP
v0.5.0and applies a small local-support patch at build time.
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 Servers
- Alicense-qualityCmaintenanceAn MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context. Uses Ollama or OpenAI to generate embeddings. Docker files included1230MIT
- Flicense-qualityDmaintenanceLocal MCP server that provides semantic search (RAG) over code repositories, enabling AI clients like Claude and Gemini to access project context without manual re-upload.
- AlicenseAqualityBmaintenanceLocal-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.39MIT
- Alicense-qualityDmaintenanceAn MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).1536MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Cloud-hosted MCP server for durable AI memory
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
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/J3ys/ContextMCPDocker'
If you have feedback or need assistance with the MCP directory API, please join our Discord server