# Connect the MultitaskAI MCP server to OpenAI Responses API

The OpenAI Responses API can call remote MCP servers as tools. Add an mcp tool with the MultitaskAI URL as server_url and your key in authorization.

## Endpoint

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

## Steps

1. Create an API key in your MultitaskAI account.
2. Add an mcp tool to your Responses API request with the endpoint as server_url and your key in authorization.
3. Set require_approval to never, or answer the approval requests your app receives.
4. Send the request and check the output for mcp_list_tools and mcp_call items.

```shell
curl https://api.openai.com/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-6-astra",
    "tools": [
      {
        "type": "mcp",
        "server_label": "multitaskai",
        "server_url": "https://mcp.multitaskai.com",
        "authorization": "YOUR_API_KEY",
        "require_approval": "never"
      }
    ],
    "input": "List my MultitaskAI tools."
  }'
```

## Authentication

OpenAI Responses API 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

- authorization takes the bare key, without the Bearer prefix; OpenAI does not store it, so send it on every request.
- OpenAI calls the server from its own infrastructure, so the endpoint must be reachable from the internet.
- Approval is asked by default; set require_approval to never to skip it.
- allowed_tools limits which tools are imported.

## Official documentation

The [OpenAI MCP documentation](https://developers.openai.com/api/docs/guides/tools-connectors-mcp) covers OpenAI Responses API's own settings in detail. See the [overview](/docs.md) for the endpoint and authentication, and [pricing](/pricing/) for the daily free requests.
