Set up a local Postman MCP server

View as Markdown

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

Use cases

Consider using the local Postman MCP server if:

  • You want to power local use cases, such as local API testing.
  • You have specific security and network requirements.
  • You prefer to build the MCP server from the source code in this repo.

Supported configurations

The local server supports the following tool configurations:

  • Minimal — (Default) Only includes essential tools for basic Postman operations.
  • Code — Includes tools for searching public and internal API definitions and generating client code.
  • Full — Includes all available Postman API tools (100+ tools).

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.

To run the server as a Node application, install Node.js before getting started.

Visual Studio Code

Click the button to install the local Postman MCP server in VS Code:

Install the local Postman MCP server in VS Code

By default, the server uses Full mode. To access Minimal mode, remove the --full flag from the mcp.json configuration file. To access Code mode, replace the --full flag with the --code flag.

Manual configuration

You can manually integrate your MCP server with Cursor or VS Code to use it with extensions that support MCP. To do this, create a mcp.json file in your project and add the following JSON block to it:

1{
2 "servers": {
3 "postman": {
4 "type": "stdio",
5 "command": "npx",
6 "args": [
7 "@postman/postman-mcp-server",
8 "--full", // (optional) Use this flag to enable full mode...
9 "--code", // (optional) ...or this flag to enable code mode.
10 "--region us" // (optional) Use this flag to specify the Postman API region (us or eu). Defaults to us.
11 ],
12 "env": {
13 "POSTMAN_API_KEY": "${input:postman-api-key}"
14 }
15 }
16 },
17 "inputs": [
18 {
19 "id": "postman-api-key",
20 "type": "promptString",
21 "description": "Enter your Postman API key"
22 }
23 ]
24}

Cursor

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

Install the local Postman MCP server in Cursor

By default, the server uses Full mode. To access Minimal mode, remove the --full flag from the mcp.json configuration file. To access Code mode, replace the --full flag with the --code flag.

Manual installation

You can manually integrate your MCP server with VS Code to use it with extensions that support MCP. To do so, create a .vscode/mcp.json file in your project and add the following JSON block to it:

1{
2 "servers": {
3 "postman-api-mcp": {
4 "type": "stdio",
5 "command": "npx",
6 "args": [
7 "@postman/postman-mcp-server",
8 "--full" // (optional) Use this flag to enable full mode.
9 "--code" // (optional) Use this flag to enable code mode.
10 "--region us" // (optional) Use this flag to specify the Postman API region (us or eu). Defaults to us.
11 ],
12 "env": {
13 "POSTMAN_API_KEY": "${input:postman-api-key}"
14 }
15 }
16 },
17 "inputs": [
18 {
19 "id": "postman-api-key",
20 "type": "promptString",
21 "description": "Enter your Postman API key"
22 }
23 ]
24}

Claude

To integrate the local Postman MCP server with Claude, check the latest Postman MCP server release and get the .mcpb file:

  • Minimalpostman-api-mcp-minimal.mcpb
  • Codepostman-mcp-server-code.mcpb
  • Fullpostman-api-mcp-full.mcpb

For more information, see the Claude Desktop Extensions documentation.

Claude Code

To install the MCP server in Claude Code, run the following command in your terminal:

Minimal

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

Code

$claude mcp add postman --env POSTMAN_API_KEY=<POSTMAN_API_KEY> -- npx @postman/postman-mcp-server@latest --code

Full

$claude mcp add postman --env POSTMAN_API_KEY=<POSTMAN_API_KEY> -- npx @postman/postman-mcp-server@latest --full

Codex

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.

Minimal

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

Code

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

Full

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

Windsurf

To manually install the MCP server in Windsurf, do the following:

  1. Click Open MCP Marketplace in Windsurf.
  2. Enter “Postman” in the search text box to filter the marketplace results.
  3. Click Install.
  4. When prompted, enter a valid Postman API key.
  5. Select the tools that you want to enable, or click All Tools to select all available tools.
  6. Turn on Enabled to enable the Postman MCP server.

Manual installation

Copy the following JSON config into the .codeium/windsurf/mcp_config.json file:

1{
2 "mcpServers": {
3 "postman": {
4 "args": [
5 "@postman/postman-mcp-server"
6 ],
7 "command": "npx",
8 "disabled": false,
9 "disabledTools": [],
10 "env": {
11 "POSTMAN_API_KEY": "<POSTMAN_API_KEY>"
12 }
13 }
14 }
15}

Antigravity

To install the MCP server in Antigravity, click Manage MCP servers > View raw config. Then, copy the following JSON config into the mcp_config.json file:

1{
2 "mcpServers": {
3 "postman": {
4 "args": [
5 "@postman/postman-mcp-server"
6 ],
7 "command": "npx",
8 "disabled": false,
9 "disabledTools": [],
10 "env": {
11 "POSTMAN_API_KEY": "<POSTMAN_API_KEY>"
12 }
13 }
14 }
15}

GitHub Copilot CLI

Use the Copilot CLI to interactively add the MCP server:

$/mcp add

Manual installation

Copy the following JSON config into the ~/.copilot/mcp-config.json file:

1{
2 "mcpServers": {
3 "postman": {
4 "command": "npx",
5 "args": [
6 "@postman/postman-mcp-server"
7 ],
8 "env": {
9 "POSTMAN_API_KEY": "<POSTMAN_API_KEY>"
10 }
11 }
12 }
13}

Gemini CLI extension

To install the MCP server as a Gemini CLI extension, run the following command in your terminal:

$gemini extensions install https://github.com/postmanlabs/postman-mcp-server

Kiro

To set up the Postman MCP server with one-click, go to Kiro Powers and click API Testing with Postman. Then, click Add to Kiro.

Manual installation

To manually install the Postman MCP server in Kiro, do the following:

  1. Launch the Kiro app, then click the Kiro ghost icon in the left navigation.

  2. Add an MCP Server, then select User Config or Workspace Config to install the Postman MCP server.

  3. Add the following JSON block to the mcp.json configuration file:

    1{
    2 "mcpServers": {
    3 "postman": {
    4 "command": "npx",
    5 "args": [
    6 "@postman/postman-mcp-server"
    7 ],
    8 "env": {
    9 "POSTMAN_API_KEY": "<POSTMAN_API_KEY>"
    10 },
    11 "disabled": false,
    12 "autoApprove": [
    13 "getAuthenticatedUser"
    14 ]
    15 }
    16 }
    17}

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:

$docker run -i -e POSTMAN_API_KEY="<POSTMAN_API_KEY>" mcp/postman

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

$docker run -i -e POSTMAN_API_KEY="<POSTMAN_API_KEY>" postman-api-mcp-stdio

Full

$docker run -i -e POSTMAN_API_KEY="<POSTMAN_API_KEY>" postman-api-mcp-stdio --full