OpenClaw Docs MCP
Enables hybrid semantic and full-text search over OpenClaw documentation, with tools for chunk navigation, page outlines, and index statistics.
README
<div align="center"> <img src="./assets/architecture_banner.png" width="100%" alt="OpenClaw Docs MCP Architecture Banner" style="border-radius: 10px;" />
<br /> <br />
📖 OpenClaw Docs MCP
An MCP RAG server providing powerful hybrid search over OpenClaw documentation
<p align="center"> <img src="https://img.shields.io/badge/Python-3.11+-3776AB?style=for-the-badge&logo=python&logoColor=white" alt="Python" /> <img src="https://img.shields.io/badge/PostgreSQL-15+-4169E1?style=for-the-badge&logo=postgresql&logoColor=white" alt="PostgreSQL" /> <img src="https://img.shields.io/badge/pgvector-Enabled-8B0000?style=for-the-badge" alt="pgvector" /> <img src="https://img.shields.io/badge/FastMCP-Supported-00E5FF?style=for-the-badge&logo=fastapi&logoColor=black" alt="FastMCP" /> </p> </div>
OpenClaw Docs MCP indexes the OpenClaw documentation into PostgreSQL using pgvector and exposes powerful hybrid search tools via HTTP using FastMCP.
✨ Key Features
- 🧠 Hybrid Search: Combines semantic (pgvector) and full-text search across ~721 English documentation pages.
- 🛠️ 13 MCP Tools: Fully equipped with search,
get_chunk, navigation (next/prev), page outlines, and index statistics. - ⚡ HTTP Transport: Exposed securely over HTTP with API key authentication.
- 🔄 Incremental Sync: Smart content-hash syncing to avoid redundant updates.
- ⚙️ Production Ready: Includes
systemdservice files and an optional daily sync timer.
📋 Requirements
- Python:
3.11+ - Database:
PostgreSQL 15+with the pgvector extension. - AI: OpenAI API key (for embedding generation using
text-embedding-3-small).
🚀 Setup & Installation
1. Environment Setup
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
2. Configuration
cp config.env.example config.env
# Edit config.env with: DATABASE_URL, OPENAI_API_KEY, API_KEY
3. Database & Ingestion
# Run migrations (ensure your database exists)
alembic upgrade head
# Crawl sitemap and index content (~5-15 min)
openclaw-docs-mcp ingest --full
4. Run the Server
openclaw-docs-mcp serve
📍 Server runs at
http://0.0.0.0:8000/mcp(configurable viaMCP_PORT).
🧰 MCP Tools Available
⚠️ Note: Write all queries in English for the best results (docs are indexed in English only).
| Tool | Description |
|---|---|
search |
Hybrid semantic + full-text search |
search_in_page |
Search within a single document |
lexical_search |
Full-text search only |
get_chunk |
Full chunk by ID |
get_chunks |
Batch retrieve chunks |
get_chunk_next / get_chunk_prev |
Navigate document order |
get_chunk_neighbors |
Previous + current + next |
get_context_window |
Symmetric context around a chunk |
get_document_chunks |
Paginate chunks in a document |
list_pages |
List indexed pages |
get_page_outline |
Headings + chunk IDs |
get_stats |
Index statistics |
🔌 Cursor Configuration
🏠 Localhost (same machine)
{
"mcpServers": {
"openclaw-docs": {
"url": "http://127.0.0.1:8000/mcp",
"headers": {
"Authorization": "***"
}
}
}
}
🌍 Remote (e.g., Cloudflare tunnel)
{
"mcpServers": {
"openclaw-docs": {
"command": "npx",
"args": [
"-y", "mcp-remote@latest",
"https://your-tunnel.example.com/mcp",
"--header", "Authorization: Bearer ${OPENCLAW_DOCS_API_KEY}"
],
"env": {
"OPENCLAW_DOCS_API_KEY": "YOUR_API_KEY"
}
}
}
}
⚙️ systemd Deployment
For automated management and background syncing:
sudo cp deploy/openclaw-docs-mcp.service /etc/systemd/system/
sudo cp deploy/openclaw-docs-mcp-sync.service deploy/openclaw-docs-mcp-sync.timer /etc/systemd/system/
sudo cp deploy/sync-wrapper.sh /home/miguelcc06/openclaw-docs-mcp/deploy/
chmod +x deploy/sync-wrapper.sh
sudo systemctl daemon-reload
sudo systemctl enable --now openclaw-docs-mcp
sudo systemctl enable --now openclaw-docs-mcp-sync.timer
💡 Tip: Set
SYNC_ENABLED=trueandSYNC_SCHEDULE=dailyinconfig.env.
💻 CLI Commands Quick Reference
openclaw-docs-mcp serve # Start HTTP MCP server
openclaw-docs-mcp ingest --full # Full re-index
openclaw-docs-mcp sync # Incremental sync
openclaw-docs-mcp stats # Index statistics
alembic upgrade head # Apply DB migrations
<div align="center"> <i>Built to make AI smarter about its own documentation.</i><br> <b>License: MIT</b> </div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。