# Connect the MultitaskAI MCP server to Qwen Code

Qwen Code is Alibaba'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. Start Qwen Code and run /mcp to check that MultitaskAI is connected.

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

## Authentication

Qwen Code 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 saves the server in ~/.qwen/settings.json; .qwen/settings.json holds project servers.
- In settings.json, httpUrl means Streamable HTTP and url means legacy SSE, so use httpUrl if you edit it by hand.
- If Qwen Code was already running, restart it before you run /mcp.
- qwen mcp list checks the server from a shell.

## Official documentation

The [Alibaba Qwen MCP documentation](https://qwenlm.github.io/qwen-code-docs/en/users/features/mcp/) covers Qwen Code's own settings in detail. See the [overview](/docs.md) for the endpoint and authentication, and [pricing](/pricing/) for the daily free requests.
