# Connect the MultitaskAI MCP server to Kimi Code CLI

Kimi Code CLI is Moonshot AI's terminal coding agent. Add MultitaskAI to its mcp.json with the server URL and your API key.

## Endpoint

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

## Steps

1. Create an API key in your MultitaskAI account.
2. Open ~/.kimi-code/mcp.json for every project, or .kimi-code/mcp.json in one project.
3. Add the server below, with your key in place of YOUR_API_KEY, and save the file.
4. Start Kimi Code CLI and run /mcp to check that MultitaskAI is connected.

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

## Authentication

Kimi Code 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

- An entry with a url and no transport is Streamable HTTP; set transport to sse only for legacy servers.
- $KIMI_CODE_HOME overrides the user folder.
- /mcp-config in the TUI adds or edits servers without editing the JSON.
- Older guides show ~/.kimi/mcp.json; current releases use ~/.kimi-code/mcp.json.

## Official documentation

The [Moonshot AI MCP documentation](https://www.kimi.com/code/docs/en/kimi-code-cli/customization/mcp) covers Kimi Code CLI's own settings in detail. See the [overview](/docs.md) for the endpoint and authentication, and [pricing](/pricing/) for the daily free requests.
