Set up a remote Postman MCP server

View as Markdown

The remote Postman MCP server is hosted by Postman over streamable HTTP and provides the easiest method for getting started.

Use the region toggle to view endpoints, commands, and configuration for your Postman region.

Region:

The US remote server supports OAuth for the best developer experience and fastest setup, and doesn’t require an API key. OAuth provides stronger security and access control compared to a static API key. It’s MCP specification-compliant, including Dynamic Client Registration (DCR), OAuth metadata, and PKCE.

MCP hosts that support OAuth can discover and use it automatically for all tools. The US remote server also accepts a Postman API key (Bearer token in the Authorization header).

Before you begin

The US remote server supports OAuth and doesn’t require a key. To use API key authentication instead, generate a Postman API key.

For an overview of the server, remote versus local, and when to use each configuration, see Use AI agents with the Postman API.

Endpoints

Use the endpoint that matches the tool configuration you want:

ConfigurationUS endpoint
Minimal (default)https://mcp.postman.com/minimal
Codehttps://mcp.postman.com/code
Fullhttps://mcp.postman.com/mcp
Learnhttps://mcp.postman.com/learn

Claude

To integrate the remote Postman MCP server with Claude using connectors, follow the setup instructions for the Postman MCP connector for Claude.

Claude Code

Claude Code automatically uses OAuth for the best installation experience. To use an API key instead, add the --header flag.

OAuth

Run one of the following commands in your terminal:

$claude mcp add --transport http postman https://mcp.postman.com/minimal

API key

Run one of the following commands in your terminal:

$claude mcp add --transport http postman https://mcp.postman.com/minimal --header "Authorization: Bearer <POSTMAN_API_KEY>"

Cursor

Click the button to install the remote Postman MCP server in Cursor:

Install the remote Postman MCP server

Manual installation

To configure the server by hand, add one of the following JSON blocks to your .cursor/mcp.json file.

OAuth

Omit the headers object entirely and Cursor completes the OAuth flow for you. This is the fastest setup:

1{
2 "mcpServers": {
3 "postman": {
4 "url": "https://mcp.postman.com/minimal"
5 }
6 }
7}

API key

To use API key authentication, add an Authorization header in Bearer <POSTMAN_API_KEY> format:

1{
2 "mcpServers": {
3 "postman": {
4 "url": "https://mcp.postman.com/minimal",
5 "headers": { "Authorization": "Bearer <POSTMAN_API_KEY>" }
6 }
7 }
8}

Visual Studio Code

To install the remote Postman MCP server in VS Code, click the install button or use the Postman VS Code Extension:

Install the remote Postman MCP server in VS Code

To access Full mode, change the url value to https://mcp.postman.com/mcp in the mcp.json file. To access Code mode, change the value to https://mcp.postman.com/code in this file.

Manual installation

You can use the Postman MCP server with MCP-compatible extensions in VS Code, such as GitHub Copilot, Claude for VS Code, or other AI assistants that support MCP.

OAuth

Add one of the following JSON blocks to the .vscode/mcp.json configuration file:

1{
2 "servers": {
3 "postman": {
4 "type": "http",
5 "url": "https://mcp.postman.com/minimal"
6 }
7 }
8}

Start the server. When prompted, complete the OAuth sign-in flow.

API key

Use one of the following JSON blocks in the .vscode/mcp.json configuration file:

1{
2 "servers": {
3 "postman": {
4 "type": "http",
5 "url": "https://mcp.postman.com/minimal",
6 "headers": {
7 "Authorization": "Bearer ${input:postman-api-key}"
8 }
9 }
10 },
11 "inputs": [
12 {
13 "id": "postman-api-key",
14 "type": "promptString",
15 "description": "Enter your Postman API key"
16 }
17 ]
18}

Start the server. When prompted, enter your Postman API key.

Codex CLI

Streamable HTTP support was experimental in older Codex CLI releases. If codex mcp add --url isn’t recognized, or the server is added but never connects, update Codex CLI. On releases that only pick up STDIO servers, add experimental_use_rmcp_client = true to ~/.codex/config.toml instead of updating.

OAuth

Use OAuth for the best installation experience. It requires no manual API key setup:

$codex mcp add postman --url https://mcp.postman.com/minimal

API key

Codex CLI reads the key from an environment variable rather than taking it inline, so export it first:

$export POSTMAN_API_KEY=<POSTMAN_API_KEY>

Then add the remote server with --bearer-token-env-var, naming the variable to read:

$codex mcp add postman --url https://mcp.postman.com/minimal --bearer-token-env-var POSTMAN_API_KEY

To run the server locally instead of connecting to the remote server, invoke the local server with npx:

$codex mcp add postman --env POSTMAN_API_KEY=<POSTMAN_API_KEY> -- npx @postman/postman-mcp-server

Manual installation

To configure the remote server by hand, create a ~/.codex/config.toml file and add the following, using the same server name (postman) as the earlier commands:

1[mcp_servers.postman]
2url = "https://mcp.postman.com/minimal"
3bearer_token_env_var = "POSTMAN_API_KEY"

Change the url value to select a different tool configuration. Omit bearer_token_env_var to use OAuth. If you need to send a header other than Authorization, use the http_headers or env_http_headers keys instead.

To configure the local STDIO server by hand, see Set up a local server.

Antigravity CLI

To install the MCP server in Antigravity CLI, run the following command:

$agy plugin install https://github.com/postmanlabs/postman-antigravity-cli-extension

The extension connects to the remote server with OAuth using the Minimal tool configuration by default. To switch configurations, run /postman:use-remote with the minimal, code, full, or learn configuration:

$/postman:use-remote full

For more information, see the Postman Antigravity CLI extension.

API key

If you prefer API key authentication to OAuth, edit the mcp_config.json file in the installed extension directory and add an Authorization header to the server entry. Note that this file uses serverUrl rather than url:

1{
2 "mcpServers": {
3 "postman": {
4 "serverUrl": "https://mcp.postman.com/minimal",
5 "headers": {
6 "Authorization": "Bearer <POSTMAN_API_KEY>"
7 }
8 }
9 }
10}

Change the serverUrl path to use a different tool configuration: /minimal, /code, /mcp (Full), or /learn.

GitHub Copilot CLI

You can add the MCP server to Copilot CLI with OAuth (recommended) or an API key.

To add it interactively, start copilot and enter the following, then fill out the form:

$/mcp add

To add it non-interactively, run one of the following commands in your terminal. Copilot CLI completes the OAuth flow for you:

$copilot mcp add --transport http postman https://mcp.postman.com/minimal

To use an API key instead, add the --header flag:

$copilot mcp add --transport http postman https://mcp.postman.com/minimal --header "Authorization: Bearer <POSTMAN_API_KEY>"

For more information, see the Copilot CLI documentation.

Manual installation

Copy one of the following JSON configurations into the ~/.copilot/mcp-config.json file. The tools field enables the server’s tools for the agent:

1{
2 "mcpServers": {
3 "postman": {
4 "type": "http",
5 "url": "https://mcp.postman.com/minimal",
6 "tools": [
7 "*"
8 ]
9 }
10 }
11}

API key

To use API key authentication, add an Authorization header in Bearer <POSTMAN_API_KEY> format:

1{
2 "mcpServers": {
3 "postman": {
4 "type": "http",
5 "url": "https://mcp.postman.com/minimal",
6 "headers": {
7 "Authorization": "Bearer <POSTMAN_API_KEY>"
8 },
9 "tools": [
10 "*"
11 ]
12 }
13 }
14}

Copilot CLI’s mcp-config.json doesn’t support the ${input:...} placeholders or the inputs array used by .vscode/mcp.json. It stores the value you enter verbatim. Keep your API key out of shared or committed files.

Kiro

To install the remote Postman MCP server in Kiro, click the install button for the tool configuration that you want to use:

MinimalCodeFullLearn
Add Postman MCP Minimal server to KiroAdd Postman MCP Code server to KiroAdd Postman MCP Full server to KiroAdd Postman MCP Learn server to Kiro

Manual installation

To configure the server by hand, add the following to Kiro’s mcp.json file. Omit the headers object and Kiro completes the OAuth flow for you:

1{
2 "mcpServers": {
3 "postman": {
4 "url": "https://mcp.postman.com/minimal",
5 "disabled": false,
6 "autoApprove": []
7 }
8 }
9}

Change the url path to select a different tool configuration: /minimal, /code, /mcp (Full), or /learn.

API key

To use API key authentication, add an Authorization header in Bearer <POSTMAN_API_KEY> format:

1{
2 "mcpServers": {
3 "postman": {
4 "url": "https://mcp.postman.com/minimal",
5 "headers": { "Authorization": "Bearer <POSTMAN_API_KEY>" },
6 "disabled": false,
7 "autoApprove": []
8 }
9 }
10}

Verify your connection

After installing, restart or reload your MCP host so it picks up the new server. To confirm the connection works, check that your host lists the Postman server and its tools, then ask your agent to perform a simple read-only action, such as “List my Postman workspaces.” If it returns your workspaces, you’re connected.

Telemetry

Remote servers gather telemetry data anonymously to help Postman improve the MCP server.

Product telemetry is enabled by default for the remote Postman MCP server and turned off by default for the local Postman MCP server.

Next steps

For best practices and tips for getting the most out of the server, see Get the most out of the Postman MCP server.