# opencode-raven MCP server

> Delegates noisy search and MCP retrieval to focused agents to provide compact evidence and reduce main session context usage.

- Repository: https://github.com/evilayman/opencode-raven
- Page: https://hostedmcp.org/servers/evilayman/opencode-raven
- Transport: stdio
- Stars: 36
- License: MIT

## Install

### Claude Code

```sh
claude mcp add opencode-raven -- npx -y opencode-raven
```

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

```json
{
  "mcpServers": {
    "opencode-raven": {
      "command": "npx",
      "args": [
        "-y",
        "opencode-raven"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "opencode-raven": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "opencode-raven"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"opencode-raven","type":"stdio","command":"npx","args":["-y","opencode-raven"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "opencode-raven": {
      "command": "npx",
      "args": [
        "-y",
        "opencode-raven"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add opencode-raven -- npx -y opencode-raven
```

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

```toml
[mcp_servers.opencode-raven]
command = "npx"
args = ["-y", "opencode-raven"]
```

### Gemini CLI

```sh
gemini mcp add -s user opencode-raven npx -- -y opencode-raven
```

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

```json
{
  "mcpServers": {
    "opencode-raven": {
      "command": "npx",
      "args": [
        "-y",
        "opencode-raven"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `API_KEY` | no | no |  |

## FAQ

### How does Raven help with context management?

Raven delegates search and MCP retrieval to separate focused agents, returning only compact evidence to the calling session instead of raw, noisy results.

### Does Raven work with OpenCode V1 and V2?

Yes, Raven supports both OpenCode V2 (2.0.26+) and OpenCode V1 (1.18.29+) in a single package.

### How do I manually configure the models used by Raven?

You can use the commands /raven seek model <provider/model> and /raven mcp model <provider/model> to manually set the models for the search and MCP agents.
