# Connect the MultitaskAI MCP server to Cursor CLI

The Cursor CLI runs Cursor's agent in your terminal and reads the same mcp.json as the editor. Add MultitaskAI there 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 ~/.cursor/mcp.json for every project, or .cursor/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 agent mcp list in your terminal to check that MultitaskAI is listed.

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

## Authentication

Cursor 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

- A server you added for the Cursor editor already works in the CLI, since both read the project, global and nested mcp.json files.
- agent mcp list-tools multitaskai shows its tools; /mcp list does the same inside a session.
- agent mcp enable and agent mcp disable switch the server on and off.
- In scripted runs, --approve-mcps skips the approval prompt.

## Official documentation

The [Anysphere MCP documentation](https://cursor.com/docs/cli/mcp) covers Cursor CLI's own settings in detail. See the [overview](/docs.md) for the endpoint and authentication, and [pricing](/pricing/) for the daily free requests.
