Self-hosted MCP server for your documentation. Index your documentation from across the sources and serve it via the Model Context Protocol (MCP) and REST API. ContextMCP creates a searchable knowledge base from your documentation that AI assistants can query via the Model Context Protocol (MCP). 1. Parse - Extract content from your docs, APIs, and READMEs 2. Chunk - Split into semantic chunks opt
Add this skill
npx mdskills install dodopayments/context-mcpWell-documented documentation indexing system with clear setup and multi-format support
1# ContextMCP23<p align="left">4 <a href="https://discord.gg/bYqAp4ayYh">5 <img src="https://img.shields.io/discord/1305511580854779984?label=Join%20Discord&logo=discord" alt="Join Discord" />6 </a>7 <a href="https://twitter.com/dodopayments">8 <img src="https://img.shields.io/twitter/follow/dodopayments?label=Follow&style=social" alt="Twitter Follow" />9 </a>10</p>1112**Self-hosted MCP server for your documentation.** Index your documentation from across the sources and serve it via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) and REST API.1314## Quick Start1516```bash17# Scaffold a new project18npx contextmcp init my-docs-mcp1920# Follow the prompts, then:21cd my-docs-mcp22npm install2324# Configure your API keys25cp .env.example .env26# Edit .env with your PINECONE_API_KEY and OPENAI_API_KEY2728# Configure your documentation sources29# Edit config.yaml3031# Index your documentation32npm run reindex3334# Edit the cloudflare-worker35# Deploy the MCP server36cd cloudflare-worker37npm install38npm run deploy39```4041## What is ContextMCP?4243ContextMCP creates a searchable knowledge base from your documentation that AI assistants can query via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/).4445### Supported Content Types4647| Parser | Content Types | Examples |48| ---------- | --------------------- | ------------------------------ |49| `mdx` | MDX/JSX documentation | Mintlify, Fumadocs, Docusaurus |50| `markdown` | Plain Markdown files | READMEs, CHANGELOGs |51| `openapi` | OpenAPI/Swagger specs | API reference docs |5253### How It Works54551. **Parse** - Extract content from your docs, APIs, and READMEs562. **Chunk** - Split into semantic chunks optimized for search573. **Embed** - Generate embeddings using OpenAI584. **Store** - Upload to Pinecone vector database595. **Search** - Query via MCP from AI assistants6061## Repository Structure6263```64contextmcp/65├── packages/66│ ├── cli/ # npx contextmcp (npm package)67│ ├── template/ # Project template (scaffolded to users)68│ └── website/ # contextmcp.ai documentation site69└── deployments/70 └── dodopayments/ # Dodo Payments specific deployment71```7273## Packages7475| Package | Description | Published |76| ------------------- | -------------------- | -------------------- |77| `packages/cli` | CLI scaffolding tool | ✅ npm: `contextmcp` |78| `packages/template` | Project template | (copied by CLI) |79| `packages/website` | Documentation site | (deployed to Vercel) |8081## Development8283### Prerequisites8485- Node.js 18+8687### Setup8889```bash90# Install all dependencies91npm install9293# Development94npm run dev:website # Run website locally95npm run dev:cli # Watch CLI for changes9697# Build98npm run build:website # Build website99npm run build:cli # Build CLI100101# Type checking102npm run typecheck # Check all packages103```104105## Documentation106107Visit [contextmcp.ai/docs](https://contextmcp.ai/docs) for full documentation.108109## Contributing110111We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on how to contribute to this project.112113## License114115This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.116
Full transparency — inspect the skill content before installing.