opencode-docs-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@opencode-docs-mcp How do I set up MCP servers in OpenCode?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenCode Docs MCP Server
A Mintlify-style MCP server that enables AI models to search and browse the OpenCode documentation.
✨ Features
Full-text search across 33+ documentation pages
Category browsing (Getting Started, Usage, Configure, Develop)
Page retrieval with full markdown content
Auto-discovery of documentation pages from navigation
Auto-updating index that refreshes every 24 hours
Mintlify-style tool descriptions and responses
Related MCP server: DocumentSearch MCP
🚀 Quick Start
Option 1: Remote Server (Recommended - No Installation)
Just add a URL to your MCP config:
{
"mcpServers": {
"opencode-docs": {
"name": "opencode-docs",
"url": "https://tryinspector.com/api/opencode-docs/mcp",
"headers": {}
}
}
}Option 2: NPX (Local)
{
"mcpServers": {
"opencode-docs": {
"command": "npx",
"args": ["-y", "opencode-docs-mcp"]
}
}
}⚠️ Using nvm, fnm, or volta? You need the full path to npx:
# Find your npx path which npx # Example: /Users/you/.nvm/versions/node/v20.19.5/bin/npxThen use the full path in your config:
{ "mcpServers": { "opencode-docs": { "command": "/Users/you/.nvm/versions/node/v20.19.5/bin/npx", "args": ["-y", "opencode-docs-mcp"] } } }
Option 3: Global Install
npm install -g opencode-docs-mcp{
"mcpServers": {
"opencode-docs": {
"command": "opencode-docs-mcp"
}
}
}📦 MCP Client Configuration
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"opencode-docs": {
"name": "opencode-docs",
"url": "https://tryinspector.com/api/opencode-docs/mcp",
"headers": {}
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"opencode-docs": {
"url": "https://tryinspector.com/api/opencode-docs/mcp"
}
}
}OpenCode
Add to your opencode.json:
{
"mcp": {
"opencode-docs": {
"type": "remote",
"url": "https://tryinspector.com/api/opencode-docs/mcp"
}
}
}🛠 Available Tools
Tool | Description |
| Search docs by query, returns relevant pages with contextual snippets and links |
| Get full content of a specific documentation page by path |
| Get complete table of contents with all categories and pages |
📚 Documentation Categories
Category | Pages | Topics |
Getting Started | 7 | Intro, Config, Providers, Network, Enterprise, Troubleshooting, Migration |
Usage | 8 | TUI, CLI, Web, IDE, Zen, Share, GitHub, GitLab |
Configure | 14 | Tools, Rules, Agents, Models, Themes, Keybinds, MCP Servers, etc. |
Develop | 4 | SDK, Server, Plugins, Ecosystem |
📝 Example Usage
Once connected, AI models can use the tools like:
User: "How do I configure MCP servers in OpenCode?"
AI calls: SearchOpenCodeDocs({ query: "configure MCP servers" })
Returns:
### 1. [MCP servers](https://opencode.ai/docs/mcp-servers/)
**Category:** Configure
Add external tools to OpenCode using the Model Context Protocol...🌐 Self-Hosting
Deploy to Vercel
The remote server endpoint can be added to any Next.js project. See the source for the API route implementation.
Run Locally
git clone https://github.com/anthropics/opencode-docs-mcp
cd opencode-docs-mcp
npm install
npm run build
npm run scrape # Pre-populate the docs index
npm start🔧 Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Re-scrape docs
npm run scrape
# Run locally
npm start🤝 Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
MIT - see LICENSE for details.
🔗 Links
Available Tools
3 toolsBrowseOpenCodeDocsA
Get a complete overview of the OpenCode documentation structure including all categories and pages. Use this to understand what documentation is available or to help users navigate to the right section.
Inputs: no named parameters.
GetOpenCodeDocPageA
Retrieve the full content of a specific OpenCode documentation page by its path. Use this when you need complete information from a known documentation page, such as /docs/mcp-servers/ for MCP configuration or /docs/agents/ for agent setup.
Inputs: path (required).
SearchOpenCodeDocsA
Search across the OpenCode knowledge base to find relevant information, configuration examples, CLI commands, and guides. Use this tool when you need to answer questions about OpenCode, find specific documentation, understand how features work, or locate implementation details for MCP servers, agents, tools, themes, and more. The search returns contextual content with titles and direct links to the documentation pages.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool serves a clearly distinct purpose: search for query-based discovery, get for retrieving a specific page by path, and browse for exploring the docs structure. There is no meaningful overlap between them.
All tool names follow a consistent Verb+Object pattern: SearchOpenCodeDocs, GetOpenCodeDocPage, BrowseOpenCodeDocs. The naming is uniform and predictable.
With only 3 tools, the set is on the smaller side but well-suited for a documentation-focused server. The tools cover the core needs of searching, retrieving, and navigating docs without excess.
The tool set provides complete coverage for a read-only documentation server: discover information, access full content, and understand site structure. There are no obvious gaps or dead ends.
Maintenance
Related MCP Connectors
Read-only search and Markdown pages from the OpenPlanr docs, for coding agents.
Search and read Vector Panda docs: API operations, pricing, storage tiers, measured benchmarks.
Access and search Branch's official API documentation directly within any AI agent or client.
Find, write, publish and check pages and API references in your DeveloperHub docs from an AI client
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to search and retrieve Holochain documentation, including developer guides, HDK functions, and HDI API references.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables searching and fetching documentation pages from a wide range of programming languages, frameworks, game engines, and tools. Supports multiple sources and returns relevant documentation snippets.1-
- AlicenseNot gradedqualityBmaintenanceEnables coding assistants to query Resemble AI documentation, search pages, and access OpenAPI schemas for code generation.3MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI models to search and retrieve up-to-date technical documentation for supported agent frameworks such as LangChain, LlamaIndex, AutoGen, Agno, OpenAI Agents SDK, MCP, Camel-AI, and CrewAI, returning extracted web page text over stdio or SSE.-