Apache License 2.0

项目介绍

dodopayments/context-mcp 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 Apache License 2.0 许可证,目前获得 87 个 Star、23 次 Fork。

仓库全名
dodopayments/context-mcp
开源许可证
Apache License 2.0
Star 数
87
Fork 数
23
未关闭 Issue
21

README 摘要

ContextMCP 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. Quick Start What is ContextMCP? ContextMCP creates a searchable knowledge base from your documentation that AI assistants can query via the Model Context Protocol (MCP). Supported Content Types Parser | Content Types | Examples | mdx | MDX/JSX…

完整内容见 GitHub 原始 README 或本页 。

常见问题

context-mcp 用什么语言开发?

主要使用 TypeScript 编写,采用 Apache License 2.0 许可证,目前有 87 个 Star。

context-mcp 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 context-mcp 的源码?

可以直接克隆仓库:git clone https://github.com/dodopayments/context-mcp.git,默认分支为 main;安装与运行步骤见仓库 README。

context-mcp 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 21 个未关闭 Issue;Star 数为 87,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Self-hosted MCP server for your documentation

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
133
价值分
58
活跃状态
活跃

语言占比

CSS
JavaScript
MDX
TypeScript

Release

README

ContextMCP

Join Discord Twitter Follow

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.

Quick Start

# Scaffold a new project
npx contextmcp init my-docs-mcp

# Follow the prompts, then:
cd my-docs-mcp
npm install

# Configure your API keys
cp .env.example .env
# Edit .env with your PINECONE_API_KEY and an embedding provider key
# (OPENAI_API_KEY for provider: openai, or GEMINI_API_KEY for provider: gemini)

# Configure your documentation sources
# Edit config.yaml

# Index your documentation
npm run reindex

# Edit the cloudflare-worker
# Deploy the MCP server
cd cloudflare-worker
npm install
npm run deploy

What is ContextMCP?

ContextMCP creates a searchable knowledge base from your documentation that AI assistants can query via the Model Context Protocol (MCP).

Supported Content Types

Parser Content Types Examples
mdx MDX/JSX documentation Mintlify, Fumadocs, Docusaurus
markdown Plain Markdown files READMEs, CHANGELOGs
openapi OpenAPI/Swagger specs API reference docs

How It Works

  1. Parse - Extract content from your docs, APIs, and READMEs
  2. Chunk - Split into semantic chunks optimized for search
  3. Embed - Generate embeddings using OpenAI or Gemini
  4. Store - Upload to Pinecone vector database
  5. Search - Query via MCP from AI assistants

Ecosystem

Add a chat UI with ContextChat

ContextMCP serves retrieval; pair it with ContextChat to give your docs a drop-in, embeddable “Ask AI” widget. ContextChat is a single Cloudflare Worker that queries your ContextMCP /search endpoint and streams answers with inline citations — add it to any site or docs page with one <script> tag.

Repository Structure

contextmcp/
├── packages/
│   ├── cli/              # npx contextmcp (npm package)
│   ├── template/         # Project template (scaffolded to users)
│   └── website/          # contextmcp.ai documentation site
└── deployments/
    └── dodopayments/     # Dodo Payments specific deployment

Packages

Package Description Published
packages/cli CLI scaffolding tool ✅ npm: contextmcp
packages/template Project template (copied by CLI)
packages/website Documentation site (deployed to Vercel)

Development

Prerequisites

  • Node.js 18+

Setup

# Install all dependencies
npm install

# Development
npm run dev:website     # Run website locally
npm run dev:cli         # Watch CLI for changes

# Build
npm run build:website   # Build website
npm run build:cli       # Build CLI

# Type checking
npm run typecheck       # Check all packages

Documentation

Visit contextmcp.ai/docs for full documentation.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines on how to contribute to this project.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

评论

暂无评论