# Connect the MultitaskAI MCP server to Grok Build

Grok Build is xAI's command line coding agent. Add MultitaskAI as a remote MCP server with one command that passes its URL and your API key.

## Endpoint

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

## Steps

1. Create an API key in your MultitaskAI account.
2. Run the command below in your terminal, with your key in place of YOUR_API_KEY.
3. Run grok mcp doctor multitaskai to check the configuration and connection.

```shell
grok mcp add --transport http multitaskai https://mcp.multitaskai.com --header "Authorization: Bearer YOUR_API_KEY"
```

## Authentication

Grok Build 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

- The command writes to ~/.grok/config.toml; --scope project writes .grok/config.toml instead.
- Grok Build also reads servers from ~/.claude.json, .cursor/mcp.json and a project .mcp.json, so MultitaskAI may already appear; grok inspect shows where each came from.
- In the TUI, /mcps opens the MCP tab, where Space toggles a server and r refreshes.
- Tools are named multitaskai__<tool>, and ${VAR} expands in headers.

## Official documentation

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