---
title: "Connect With Api Key"
method: POST
path: "/api/py/mcp/connect-with-key"
---

# Connect With Api Key

`POST /api/py/mcp/connect-with-key`

Create an MCP connection using a static API key instead of OAuth.

Stores the key, validates it by running MCP discovery, and returns
the connection info with tool count on success.

## Request body

- ConnectWithKeyRequest
  - `server_url` string, required
  - `api_key` string, nullable
  - `header_name` string, nullable
  - `headers` HeaderEntry[], nullable
    - `name` string, required
    - `value` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getauctor/apis/fastapi.md) · [All operations](https://skmtc.dev/getauctor/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getauctor/fastapi/revisions/aeb6faa3b8f0/schema)
