---
title: "Deploy Mcp"
method: POST
path: "/v1/mcp"
tags: ["MCP"]
---

# Deploy Mcp

`POST /v1/mcp`

Deploy an MCP server for an agent.

## Headers

- `authorization` string, nullable

## Request body

- MCPDeploy — Schema for deploying an MCP server.
  - `agentSlug` string, required — Agent slug
  - `mcpApiKey` string, required — MCP API key to encrypt and store

## Response `201`

Successful Response

- MCPDeployResponse — Schema for MCP deployment response.
  - `message` string — Success message
  - `mcp` MCPResponse, required — Schema for MCP server response.
    - `id` string, required — MCP server ID
    - `agentSlug` string, required — Agent slug
    - `agentId` string, required — Agent ID
    - `organizationSlug` string, required — Organization slug
    - `domain` string, required — Domain for the MCP server
    - `invocationCount` integer — Number of invocations
    - `status` string, required — MCP server status
    - `public` boolean, required — Whether the MCP server is publicly accessible
    - `createdAt` string, date-time, required — Creation timestamp
    - `updatedAt` string, date-time, nullable — Last update timestamp

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chonkie/apis/chonkie-api.md) · [All operations](https://skmtc.dev/chonkie/apis/chonkie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chonkie/apis/chonkie-api/revisions/f40f036f941c?raw)
