✍️Writing & Content35🎨Image Generation43🎬Video & Animation76🎵Audio & Music67💬Chatbots & Assistants58💻Coding & Development284📈Marketing & SEO87Productivity218🎯Design & UI/UX71📊Data & Analytics69📚Education & Research30💼Business & Finance75🏥Healthcare & Wellness18🔍Search & Knowledge17🤖AI Agent Infrastructure121🛡️AI Security & Testing17🧊3D & Spatial21🔎SEO Tools34🏡Real Estate4🗃️Data Extraction32🧠ADHD & Focus Tools9
Listed in Coding & Development with 287 other toolsPart of 1554+ curated AI tools on AISO
ContextMCP logo

ContextMCP

Open-source self-hosted Context7 alternative with scheduled reindexing and AST-aware chunking

0
freeOpen source and free — fork it, self-host it, own your data. No hosted paid tier is published on the site.View full pricing →

Visit ContextMCP

https://contextmcp.ai

About ContextMCP

ContextMCP is a self-hosted, open-source documentation-context engine for AI agents, built by the engineering team at Dodo Payments as an alternative to Context7. It exists because of a problem they hit internally: their own agent, Sentra, needed reliable access to documentation spread across multiple repositories, and Context7 could not keep that documentation in sync, so the agent worked from stale context and gave unreliable answers. ContextMCP reindexes on a schedule so the context an agent retrieves is current. The second design decision is AST-aware chunking. Standard RAG chunks text blindly and will happily split a function in half — breaking the code logic so the retrieved fragment is useless or actively misleading. ContextMCP's AST-based parsers understand code blocks, headers, and semantic boundaries and keep functions and classes intact, which is the difference between an agent that hallucinates from a truncated snippet and one that does not. Setup is zero-config: drop a config.yaml in the repo naming your sources and parsers, and it handles parsing, chunking, and indexing automatically, including indexing multiple repositories at once. It runs on Cloudflare Workers for low latency to agents, returns scored results with headings and source URLs, and because it is open source you can fork it, self-host it, and keep the data entirely on your own infrastructure. The companion chat UI, ContextChat, is also open source.

Key Features

Scheduled reindexing keeps agent context from going stale
AST-aware chunking preserves function and class boundaries
Zero-config setup via a config.yaml in your repo
Indexes multiple repositories at once
Scored results with heading, content, and source URL metadata
Edge-native, served from Cloudflare Workers
Open source — fork, self-host, and keep data in-house
Open-source companion chat UI (ContextChat)

ContextMCP Pros & Cons

Pros

  • +Built to fix a problem the authors hit in production, not a speculative gap
  • +AST chunking is a real technical differentiator over generic RAG
  • +Fully self-hostable, so private documentation never leaves your infrastructure
  • +Free and open source with no per-query billing

⚠️ Cons

  • You operate and pay for the infrastructure — there is no managed option
  • Cloudflare Workers deployment assumes a particular stack
  • Maintained as a side artifact of another company's product work
  • Setup still requires writing and maintaining source configuration

Who Is ContextMCP Best For?

👤Teams whose agents give stale answers because their doc index does not refresh
👤Anyone who cannot send private documentation to a hosted context service
👤Developers indexing several repositories of docs at once

Tags

mcpopen-sourceself-hostedragdocumentationcloudflare-workers
🏷️

Is this your tool?

Claim your listing to get a Featured badge, edit your description, and stand out from competitors. All plans include a permanent dofollow backlink to your site.

Claim Now →

ChatGPT already recommends ContextMCP. Does it recommend yours?

If you're building in Coding & Development, run a free AI-visibility scan on your own product — we ask ChatGPT across 5 prompt angles and score how often you get named. ~30 seconds, no signup, no card.

Stay updated on Coding & Development tools — join our weekly newsletter

One concise email with fresh launches, trending picks, and featured standouts.

Alternatives to ContextMCP

View all ContextMCP alternatives →

Agent connectivity: not yet verified