Set up a local Postman MCP server
The local server is based on STDIO transport and is hosted locally on an environment of your choice. STDIO is a lightweight solution that’s ideal for integration with editors and tools like Visual Studio Code. Install an MCP-compatible VS Code extension, such as GitHub Copilot, Claude for VS Code, or other AI assistants that support MCP. The local server only supports API key authentication (with a Postman API key or Bearer token).
The local server only supports API key authentication (with a Postman API key or Bearer token).
Before you begin
Local servers only support API key authentication, so you’ll need to 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.
Supported configurations
The local server supports the same tool configurations as the remote server, enabled with a command-line flag:
Use the --region flag to specify the Postman API region (us or eu), or set the POSTMAN_API_BASE_URL environment variable directly. By default, the server uses the us option.
Use the --quiet flag to suppress the server’s startup logging. This is useful with hosts that treat anything the server writes to output as an error.
To run the server as a Node application, install Node.js before getting started.
Claude Code
To install the MCP server in Claude Code, run one of the following commands in your terminal:
Minimal
Code
Full
Learn
Cursor
Click the button to install the local Postman MCP server in Cursor:
Manual installation
To manually integrate your MCP server with Cursor and VS Code, create a .vscode/mcp.json file in your project and add one of the following JSON blocks to it. You can optionally include the --region flag to specify the Postman API region (us or eu). Defaults to us (in the args array, specify it as "--region", "eu").
Minimal
Code
Full
Learn
Visual Studio Code
Click the button to install the local Postman MCP server in VS Code:
Manual configuration
You can manually integrate your MCP server with VS Code to use it with extensions that support MCP. Add the optional --region flag to specify the Postman API region (us or eu). Defaults to us (in the args array, specify it as "--region", "eu").
To create a manual configuration, create a mcp.json file in your project and add one of the following JSON blocks to it:
Minimal
Code
Full
Learn
Claude
To integrate the local Postman MCP server with Claude, check the latest Postman MCP server release and get the .mcpb file for the tool configuration you want:
- Minimal —
postman-mcp-server-minimal.mcpb - Code —
postman-mcp-server-code.mcpb - Full —
postman-mcp-server-full.mcpb - Learn —
postman-mcp-server-learn.mcpb
For more information, see the Claude Desktop Extensions documentation.
Codex CLI
To install the local server, use the API key installation method. Set the POSTMAN_API_KEY environment variable and invoke the MCP server using npx. To send traffic to the Postman API EU region, add --region eu after @postman/postman-mcp-server (for example, -- npx @postman/postman-mcp-server --region eu --full).
Minimal
Code
Full
Learn
Antigravity CLI
To install the MCP server in Antigravity CLI, do the following:
- Run the
agy plugin install https://github.com/postmanlabs/postman-antigravity-cli-extensioncommand. - Run the
agycommand. - Run the
/postman:use-localcommand. - Restart your Antigravity CLI session.
GitHub Copilot CLI
Use the Copilot CLI to interactively add the MCP server:
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:
Minimal
Code
Full
Learn
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 local Postman MCP Server in Kiro, click the install button for the version that you want to use:
To install the Postman MCP server with Kiro powers, go to Kiro Powers and navigate to API Testing with Postman in the Browse powers section. Then, click Add to Kiro.
Manual installation
To install the Postman MCP Server manually, do the following:
-
Launch Kiro and click the Kiro ghost icon in the left sidebar.
-
Add an MCP Server and select either User Config or Workspace Config to install the Postman MCP server.
-
Add the following JSON block to the
mcp.jsonconfiguration file:Add the flag for the tool configuration you want to the
argsarray —"--code","--full", or"--learn". Omit it for Minimal.
Docker
To install the Postman MCP server in Docker, see the Postman MCP server at Docker MCP Hub. Click + Add to Docker Desktop to automatically install it.
To run the Postman MCP server image in Docker, run the following command in your terminal. Docker automatically discovers, downloads, and runs the Postman MCP server image:
Manual installation
To build and run the server in Docker manually, run the docker build -t postman-api-mcp-stdio . command. Then, run one of the following commands:
Minimal
Code
Full
Learn
Telemetry
By default, local servers don’t gather telemetry data and require that you opt in to share usage data with Postman. Sharing this data helps Postman improve the MCP server. You can opt in at any time with one of the following methods:
- Use the
--env POSTMAN_MCP_TELEMETRY=trueoption when starting the server. - Add
"POSTMAN_MCP_TELEMETRY": "true"to theenvobject in your JSON configuration file (for example,.vscode/mcp.json).