---
title: "POST /api/mcp/endpoints/"
method: POST
path: "/api/mcp/endpoints/"
tags: ["MCP endpoints"]
---

# POST /api/mcp/endpoints/

`POST /api/mcp/endpoints/`

Creates a new MCP endpoint for a given workspace. The endpoint can be used for an MCP integration.

## Request body

- CreateMCPEndpoint — Used for validating the creation of a new MCP endpoint.
  - `name` string, required — The human readable name of the MCP endpoint for the user.
  - `workspace_id` integer, required

## Response `200`

- MCPEndpoint — Serializes a complete MCP endpoint object.
  - `id` integer, required
  - `name` string, required — The human readable name of the MCP endpoint for the user.
  - `key` string, required — The unique endpoint key that can be used to authorize for the MCP service.
  - `workspace_id` integer, required
  - `workspace_name` string, required
  - `created` string, date-time, required

## Other responses

- `400`

---

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