A Mintlify-style MCP server that enables AI models to search and browse the OpenCode documentation.
- 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
Just add a URL to your MCP config:
{
"mcpServers": {
"opencode-docs": {
"name": "opencode-docs",
"url": "https://tryinspector.com/api/opencode-docs/mcp",
"headers": {}
}
}
}{
"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"] } } }
npm install -g opencode-docs-mcp{
"mcpServers": {
"opencode-docs": {
"command": "opencode-docs-mcp"
}
}
}Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"opencode-docs": {
"name": "opencode-docs",
"url": "https://tryinspector.com/api/opencode-docs/mcp",
"headers": {}
}
}
}Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"opencode-docs": {
"url": "https://tryinspector.com/api/opencode-docs/mcp"
}
}
}Add to your opencode.json:
{
"mcp": {
"opencode-docs": {
"type": "remote",
"url": "https://tryinspector.com/api/opencode-docs/mcp"
}
}
}| Tool | Description |
|---|---|
SearchOpenCodeDocs |
Search docs by query, returns relevant pages with contextual snippets and links |
GetOpenCodeDocPage |
Get full content of a specific documentation page by path |
BrowseOpenCodeDocs |
Get complete table of contents with all categories and pages |
| 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 |
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...
The remote server endpoint can be added to any Next.js project. See the source for the API route implementation.
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# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Re-scrape docs
npm run scrape
# Run locally
npm start- 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
MIT - see LICENSE for details.