Opencode MCP Server

MCP server for opencode documentation, generated by doc2mcp.

Remote serverstreamable-httpTypeScript

What is the Opencode MCP server?

Opencode MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. MCP server for opencode documentation, generated by doc2mcp.

What you get

Star this repo — it helps developers discover doc2mcp on GitHub and the MCP Registry.

What the assistant can call

Once Opencode is connected, these are the calls the assistant has available:

  • list_documentation_pages — Every crawled page
  • get_documentation_page — Full markdown of one page
  • search_documentation — Heading-aware search
  • get_documentation_overview — Summary + index
  • read_full_documentation — All pages combined
  • ask_documentation — Q&A with citations

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration and credentials

You will need one environment variable: DOC2MCP_API_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Choosing this one

Among the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Opencode's toolset — list_documentation_pages, get_documentation_page, search_documentation and 3 more — is a fair guide to whether it matches your workflow. It is maintained by doc2mcp; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the opencode mcp server does with a few real requests.

Available tools

ToolWhat it does
list_documentation_pagesEvery crawled page
get_documentation_pageFull markdown of one page
search_documentationHeading-aware search
get_documentation_overviewSummary + index
read_full_documentationAll pages combined
ask_documentationQ&A with citations

How to install the Opencode MCP server

{
  "mcpServers": {
    "my-docs": {
      "url": "https://doc2mcp.site/api/mcp/{project_id}/mcp",
      "headers": { "Authorization": "Bearer <project-token>" }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DOC2MCP_API_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Opencode to list documentation pages.
  • Use Opencode to get documentation page.
  • Use Opencode to search documentation.

Frequently asked questions

It connects Opencode to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (list_documentation_pages, get_documentation_page, search_documentation, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Opencode directly.