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

## Changes

> 20 revisions in range; 1 not diffed, 4 could not be searched.

- **2026-07-08** `8940d7f77282` — 2 breaking
  - the `created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `201`
  - the `updated_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `201`

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/mcp-auth-configs/post.md)

---

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