# opencode MCP server

> Query GitHub Copilot and other configured models through a persistent opencode server without needing provider API keys in your AI client.

- Repository: https://github.com/kud/mcp-opencode
- Page: https://hostedmcp.org/servers/kud/mcp-opencode
- Transport: —
- Stars: 3
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MCP_OPENCODE_MODEL_ALLOW` | no | no |  |
| `MCP_OPENCODE_MODEL_BLOCK` | no | no |  |
| `OPENCODE_PASSWORD` | no | no |  |

## Tools (10)

- `query`
- `list_models`
- `list_sessions`
- `send`
- `read`
- `start_instance`
- `task`
- `wait`
- `list_instances`
- `stop_instance`

## FAQ

### Do I need API keys for my AI client?

No, the server routes prompts through a locally running opencode server, so no provider credentials are needed in your AI client.

### What models can I use?

Any model configured in opencode is available, including GPT-4.1, Claude, Gemini, or other supported providers.
