Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI models to search, browse, and retrieve full content of OpenCode documentation pages.

README.md

<img width="7856" height="1888" alt="logo-tshirt (6)" src="https://github.com/user-attachments/assets/1b39d3b0-dc0d-4f2a-9e82-ecc28232e906" />

OpenCode Docs MCP Server

![npm version](https://www.npmjs.com/package/opencode-docs-mcp) ![License: MIT](https://opensource.org/licenses/MIT)

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

---

🚀 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: ``bash # Find your npx path which npx # Example: /Users/you/.nvm/versions/node/v20.19.5/bin/npx ` Then use the full path in your config: `json { "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 | |------|-------------| | 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 |

---

📚 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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

---

📄 License

MIT - see LICENSE for details.

---

🔗 Links

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.