# Connect the MultitaskAI MCP server to OpenCode

OpenCode is an open source coding agent for the terminal. Add MultitaskAI as a remote MCP server in opencode.jsonc with its URL and your API key.

## Endpoint

```text
https://mcp.multitaskai.com
```

## Steps

1. Create an API key in your MultitaskAI account.
2. Open ~/.config/opencode/opencode.jsonc for every project, or opencode.jsonc in one project.
3. Add the server below, with your key in place of YOUR_API_KEY, and save the file.
4. Run opencode mcp list in your terminal and check that multitaskai shows as connected.

```jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "multitaskai": {
        "type": "remote",
        "url": "https://mcp.multitaskai.com",
        "oauth": false,
        "headers": {
          "Authorization": "Bearer YOUR_API_KEY"
        }
      }
    }
  }
}
```

## Authentication

OpenCode sends your MultitaskAI API key in the Authorization header. Create a key in your account and use it in place of YOUR_API_KEY. Keep the key out of files you share or commit.

```text
Authorization: Bearer YOUR_API_KEY
```

## Good to know

- In the current config format servers sit under mcp.servers, not directly under mcp as older guides show.
- oauth: false stops OpenCode from trying OAuth, which is on by default for remote servers.
- You can also run opencode mcp add with --url and --header 'Authorization=Bearer YOUR_API_KEY'; the header format is NAME=VALUE.
- {env:NAME} can reference an environment variable instead of the literal key.

## Official documentation

The [Anomaly MCP documentation](https://opencode.ai/docs/mcp-servers/) covers OpenCode's own settings in detail. See the [overview](/docs.md) for the endpoint and authentication, and [pricing](/pricing/) for the daily free requests.
