# doc2mcp MCP server

> Converts any documentation URL into a hosted, ready-to-use MCP server for AI agents and IDEs like Cursor.

- Repository: https://github.com/doc2mcp/doc2mcp
- Page: https://hostedmcp.org/servers/doc2mcp/opencode
- Transport: remote
- Stars: 6
- License: MIT
- Latest version: 1.0.1782367812

## Install

### Claude Code

```sh
claude mcp add --transport http opencode https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "opencode": {
      "url": "https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "opencode": {
      "type": "http",
      "url": "https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"opencode","type":"http","url":"https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp"}'
```

### Codex

```sh
codex mcp add opencode --url https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.opencode]
url = "https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http opencode https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "opencode": {
      "url": "https://doc2mcp.site/api/mcp/3f20f9f1-6c33-4679-8d37-613e07293a1d/mcp",
      "type": "http"
    }
  }
}
```

## Tools (6)

- `list_documentation_pages`
- `get_documentation_page`
- `search_documentation`
- `get_documentation_overview`
- `read_full_documentation`
- `ask_documentation`

## FAQ

### Where do I get API keys for the SDK?

API keys are obtained from doc2mcp.site using a User PAT and project token; the SDK does not have its own separate login.
