***

title: The MCP block
topictype: reference
slug: docs/postman-flows/reference/blocks/mcp
max-toc-depth: 2
ux: v12
---------------------

For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt. For full content including API reference and SDK examples, see https://learning.postman.com/llms-full.txt.

With an **MCP** block, you can create a flow that acts as an [MCP server](/docs/postman-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](/docs/postman-flows/reference/flows-actions-overview/) that runs in the Postman cloud.

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

## 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**](/docs/postman-flows/reference/blocks/start/), [**Request**](/docs/postman-flows/reference/blocks/request/), or [**Schedule**](/docs/postman-flows/reference/blocks/schedule/) block and select <img alt="MCP icon" src="https://assets.postman.com/postman-docs/aether-icons/v12/icon-entity-mcp-stroke.svg#icon" width="20px" /> **MCP**.

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