---
title: "Create Mcp Auth Config"
method: POST
path: "/v1/mcp-auth-configs/"
tags: ["v1", "protected", "mcp-auth-configs"]
---

# Create Mcp Auth Config

`POST /v1/mcp-auth-configs/`

Create a new MCP authentication configuration.

## Request body

- MCPAuthConfigCreateRequest
  - `auth_type` string, required — One of: api_key, bearer, oauth2
  - `config` object — Non-sensitive config (header_name, token_url, client_id, scopes, …)
  - `credentials` object — Sensitive credentials encrypted at rest (header_value, token, client_secret, …)
  - `description` string, nullable
  - `name` string, required — Human-readable name for this auth config

## Response `201`

Successful Response

- MCPAuthConfigResponse
  - `auth_type` string, required
  - `config` object, required
  - `created_at` string, required
  - `description` string, nullable, required
  - `id` string, uuid, required
  - `name` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.net/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/e3650e48373b/schema)
