# Connect the MultitaskAI MCP server to Factory Droid

Droid is Factory's command line 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. Start droid and run /mcp to check that MultitaskAI is connected.

```shell
droid mcp add multitaskai https://mcp.multitaskai.com --type http --header "Authorization: Bearer YOUR_API_KEY" --no-oauth
```

## Authentication

Factory Droid 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

- --no-oauth skips the OAuth flow for a server that authenticates with a header.
- The server is saved in ~/.factory/mcp.json; .factory/mcp.json is the project file and gets committed, so keep the key in the user file.
- ${NAME} in headers expands from your shell environment.
- droid mcp list checks the server from a shell.

## Official documentation

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