> 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.

# Add an MCP server to your MCP host

You can add an MCP server to Agent Mode to give it further context and extend its capabilities.

You can also export an MCP server configuration to set up an MCP host, such as [Claude Desktop](https://modelcontextprotocol.io/clients#claude-desktop-app), [VS Code](https://modelcontextprotocol.io/clients#vs-code-github-copilot), or [Cursor](https://modelcontextprotocol.io/clients#cursor). Once you set up your app, its AI models or agents can use the MCP server for the same added context and capabilities.

## Add the MCP server to Agent Mode

To add the MCP server to Agent Mode, do the following:

1. Choose an existing MCP request or [create a new one](/docs/use/send-requests/protocols/mcp-requests/create/).
2. In the right sidebar, click <img alt="Code icon" src="https://assets.postman.com/postman-docs/aether-icons/descriptive-code-stroke.svg#icon" width="16px" /> **Generate Config**.
3. Choose **Agent Mode**.
4. Click **Add to Agent Mode**.

Postman adds the MCP server to Agent Mode. To see the configuration, click **Agent Mode configuration**.

## Export the MCP server configuration

To export the MCP server configuration, do the following:

1. Choose an existing MCP request or [create a new one](/docs/use/send-requests/protocols/mcp-requests/create/).
2. In the right sidebar, click <img alt="Code icon" src="https://assets.postman.com/postman-docs/aether-icons/descriptive-code-stroke.svg#icon" width="16px" />.
3. Choose your **MCP host**. Postman tells you where to add the configuration.
4. Click **Copy snippet**.
5. Open your configuration file and add the configuration.

Your MCP host is ready to connect to the MCP server. You may need to restart your host. To learn more, see your MCP host's documentation.