# Connect the MultitaskAI MCP server to Junie CLI

Junie CLI runs the JetBrains Junie agent in your terminal. Add MultitaskAI to ~/.junie/mcp/mcp.json 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 ~/.junie/mcp/mcp.json for every project, or .junie/mcp/mcp.json in one project.
3. Add the server below, with your key in place of YOUR_API_KEY, and save the file.
4. Run /mcp in Junie and check that MultitaskAI shows as Active.

```json
{
  "mcpServers": {
    "multitaskai": {
      "url": "https://mcp.multitaskai.com",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

## Authentication

Junie CLI 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

- Junie CLI and the Junie plugin in JetBrains IDEs share this file, so the server shows in both.
- The project file can be committed, so keep the key in the user file.
- Servers you add by hand are enabled by default; if the status is Failed or Inactive, use Reconnect.

## Official documentation

The [JetBrains MCP documentation](https://junie.jetbrains.com/docs/junie-cli-mcp-configuration.html) covers Junie CLI's own settings in detail. See the [overview](/docs.md) for the endpoint and authentication, and [pricing](/pricing/) for the daily free requests.
