> This page is for Postman Flows, version Latest (v12) (default).
> For other versions, use one of these documentation indexes:
> - Latest (v12) (default): https://learning.postman.com/flows/latest-v-12/llms.txt
> - v11: https://learning.postman.com/flows/v11/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# The MCP block

With an **MCP** block, you can create a flow that acts as an [MCP server](/flows/build-flows/ai/mcp-server-flows/mcp-server-flows/). In the **MCP** block, you define a schema that describes the MCP tools the flow will expose as an MCP server. The **MCP** block is one type of trigger block required to create a [deployable flow](/flows/reference/flows-actions-overview/) that runs in the Postman cloud.

> **Info**
>
> The **MCP** block can't be deleted.

## Outputs

* **Headers** - Sends the request headers.
* **Params** - Sends the request's query parameters.
* **Body** - Sends the request body.

## Setup

To add an **MCP** block to a flow, click **Change trigger** on the [**Start**](/flows/reference/blocks/start/), [**Request**](/flows/reference/blocks/request/), or [**Schedule**](/flows/reference/blocks/schedule/) block and select ![MCP icon](https://assets.postman.com/postman-docs/aether-icons/v12/icon-entity-mcp-stroke.svg#icon) **MCP**.

To define the MCP server's tools, click ![Edit icon](https://assets.postman.com/postman-docs/aether-icons/v12/icon-action-edit-stroke.svg#icon) **Define custom schema** and enter the schema according to the MCP [tool definition structure](https://modelcontextprotocol.io/docs/concepts/tools/). You can also click ![Magic icon](https://assets.postman.com/postman-docs/aether-icons/v12/icon-descriptive-magic-stroke.svg#icon) **Generate with AI** to open Agent Mode, where you can create the schema with AI assistance.