Description
ContextMCP is a self-hosted MCP server that indexes documentation from different sources and makes it searchable for AI agents. You describe your documentation sources in a config file, such as GitHub repositories with MDX files, and the server parses, chunks and indexes them on a schedule. Each search returns the most relevant section with its heading, text and source link, so an agent can answer with current information. Chunking is aware of code and headers, so code blocks stay whole rather than being split across chunks. The server is open source and can be run on your own infrastructure, and it is served from Cloudflare Workers when deployed that way. It is positioned as a self-hosted alternative to Context7 for teams that want to keep their documentation under their own control. A case study on the site describes its use with an AI agent for documentation spread over several repositories.…
Highlights
- Self-hosted MCP server for documentation search
- Indexes GitHub repositories and other doc sources
- Code- and header-aware chunking
- Scheduled re-indexing to keep answers current
- Open source, can be forked and self-hosted
Ratings & Reviews
No ratings yet
Be the first to rate ContextMCP.
People also visit
ContextMCP FAQ
What is ContextMCP?
A self-hosted MCP server that indexes your documentation so AI agents can run semantic search over it. The site presents it as an alternative to Context7.
How do I start?
Run npx contextmcp init, then add a config.yaml file that lists your documentation sources, such as a GitHub repository with MDX files and the folders to skip.
What does a search return?
Each result includes a relevance score, the heading, the content of the section and the source URL of the file, so an agent can quote where the answer came from.
Is it open source?
Yes. The code is on GitHub, and the site says you can fork it and self-host it, so your documentation stays under your control.
How does it split documents?
The chunking is AST-aware, so it keeps code blocks and headers intact instead of cutting them at fixed sizes.
What are the best ContextMCP alternatives?
Popular alternatives to ContextMCP include Crawldesk, MCP Documentation Server and DocumentationAI. See all ContextMCP alternatives






