---
title: "Create And Deploy Mcp"
method: POST
path: "/api/mcp/create-and-deploy"
tags: ["MCP Servers"]
---

# Create And Deploy Mcp

`POST /api/mcp/create-and-deploy`

## Request

- Base URL: `https://api.apitomcp.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apitomcp.ai/api/mcp/create-and-deploy`
- Auth: none declared

Single endpoint to atomically create MCP server, API integration, tools, and deploy.
This ensures data consistency and eliminates the multi-step failure issue.

## Request body

- CreateAndDeployRequest
  - `source_locale` 'en' | 'vi', nullable
  - `localizations` object
  - `server_name` string, required
  - `server_description` string, nullable
  - `subdomain_prefix` string, nullable
  - `subdomain` string, nullable
  - `custom_domain` string, nullable
  - `access_policy` 'public' | 'client_token' | 'oauth'
  - `access_mode` 'open' | 'authenticated', nullable
  - `allowed_auth_methods` string[], nullable
  - `directory_visibility` 'unlisted' | 'listed', nullable
  - `directory_mode` 'live' | 'fork' | 'live_and_fork', nullable
  - `fork_instructions` string, nullable
  - `logo_url` string, nullable
  - `logo_color` string, nullable
  - `integration_name` string, required
  - `base_url` string, required
  - `api_type` 'rest' | 'graphql'
  - `auth_type` string
  - `auth_config` object
  - `headers` object, nullable
  - `tools` InitialToolContent[]
    - `source_locale` 'en' | 'vi', nullable
    - `localizations` object
    - `name` string, required
    - `description` string, nullable
    - `tool_type` 'api' | 'workflow'
    - `tool_intent` 'read' | 'write' | 'delete' | 'admin'
    - `required_provider_permissions` string[], nullable
    - `api_endpoint` string
    - `http_method` string
    - `headers` object, nullable
    - `query_params` object, nullable
    - `body_template` string, nullable
    - `input_schema` object
    - `output_schema` object, nullable
    - `response_mapping` object, nullable
    - `error_handling` object, nullable
    - `graphql_config` object, nullable
    - `workflow_config` object, nullable
    - `source_title` string, nullable
  - `force_redeploy` boolean
  - `deploy_now` boolean
  - `idempotency_key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/apitomcp/apis/api-to-mcp-platform.md) - [All operations](https://skmtc.dev/apitomcp/apis/api-to-mcp-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/apitomcp/apis/api-to-mcp-platform/revisions/32569c7a994c?raw)
