---
title: "Create MCP Server"
method: POST
path: "/ai/mcp_servers"
tags: ["MCP Servers"]
---

# Create MCP Server

`POST /ai/mcp_servers`

Create a new MCP server.

## Request body

- CreateMCPServerRequest
  - `name` string, required
  - `type` string, required
  - `url` string, required
  - `api_key_ref` string, nullable
  - `allowed_tools` string[], nullable

## Response `200`

Successful Response

- MCPServer
  - `id` string, required
  - `name` string, required
  - `type` string, required
  - `url` string, required
  - `api_key_ref` string, nullable
  - `allowed_tools` string[], nullable
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/versions/8f5f4e537994/schema)
