Sandbox
@postmanlabs/postman-mcp-server

MCP server for Postman collections and environments

Postman MCP Server connects agent tools to Postman workspaces, collections, OpenAPI specs, and environments through MCP. It works in remote mode for supported hosts or as a local server started with `npx @postman/postman-mcp-server`. The server offers different tool sets for minimal, code, full, and learn use cases, so you can choose between basic Postman actions, API code generation, or docs lookup.

312 stars86 forksTypeScriptUpdated 8d ago
Who it's for

Builders who want their agent to read, update, and generate from Postman collections and API specs.

What it delivers

You can keep API work, testing, and client code generation inside your agent instead of switching to Postman by hand.

What it does

MCP access to Postman data

Connects agents to Postman workspaces, collections, specifications, and environments through MCP.

Multiple tool modes

Offers Minimal, Code, Full, and Learn configurations so you can choose the tool set you need.

Remote and local setups

Supports the hosted server at `https://mcp.postman.com/minimal` and a local server started with `npx @postman/postman-mcp-server`.

Agent and IDE support

Includes setup paths for Claude Code, Claude Desktop, Cursor, VS Code, Codex, GitHub Copilot CLI, Kiro, and Docker.

API testing and code generation

Lets agents test APIs, sync code with collections and specs, and generate client code from API definitions.

How to get it

  1. 1Add this URL to your MCP host's configuration
    https://mcp.postman.com/minimal
  2. 2Local
    npx @postman/postman-mcp-server

README

Postman MCP Server

The Postman MCP Server implements the Model Context Protocol (MCP) to connect AI agents and coding assistants — including Claude Code, Cursor, VS Code Copilot, GitHub Copilot CLI, and Gemini CLI — directly to your Postman workspaces, collections, specifications, and environments.

Postman also offers the server as an npm package.

For the full installation guide with agent-specific setup, see Postman's MCP Server product page.


Postman MCP Server collection

The Postman MCP Server collection is the quickest way to explore, test, and connect to the Postman MCP Server. Use it to:

  • Browse the complete list of available tools across all configurations.
  • Connect to and test the remote server — Full and Minimal.
  • Connect to and test the local server.

Tool configurations

  • Minimal — (Default) Only includes essential tools for basic Postman operations. Ideal for users who want to modify a single Postman element, such as collections, workspaces, or environments.
  • Code — Includes tools to generate high-quality, well-organized client code from public and internal API definitions. Ideal for users who need to consume APIs or get API context to their agents.
  • Full — Includes all available Postman API tools (100+ tools). Ideal for users who engage in advanced collaboration and Postman's Enterprise features.
  • Learn — Searches Postman Docs for guides, tutorials, and reference content. Ideal for agents who need to discover Postman features, look up API concepts, or find learning resources.

Authentication

For the best developer experience and fastest setup, use OAuth on the remote server (https://mcp.postman.com). OAuth is fully compliant with the MCP Authorization specification and requires no manual API key configuration.

The EU remote server and the local server support only Postman API key authentication.


Quick start

Remote (any OAuth-compatible MCP host):

Add this URL to your MCP host's configuration:

https://mcp.postman.com/minimal

Change /minimal to /code or /mcp for Code or Full mode. For EU or API key auth, pass Authorization: Bearer <POSTMAN_API_KEY> as a header.

Local:

npx @postman/postman-mcp-server

Add --code or --full for Code or Full mode. Set POSTMAN_API_KEY as an environment variable.

For IDE-specific setup instructions, see the following table. For more information, see the Postman MCP Server docs.


Supported agents and IDEs

Agent / IDERemoteLocal
Claude CodeDocsDocs
Claude DesktopDocsDocs
CursorDocsDocs
VS CodeDocsDocs
CodexDocsDocs
Antigravity CLIDocsDocs
GitHub Copilot CLIDocsDocs
KiroDocsDocs
DockerDocs

EU support

The Postman MCP Server supports the EU region for remote and local servers:

  • For streamable HTTP, the remote server is available at https://mcp.eu.postman.com/mcp (Full), https://mcp.eu.postman.com/code, and https://mcp.eu.postman.com/minimal.
  • For the STDIO public package, use the --region eu flag, or set the POSTMAN_API_BASE_URL environment variable directly.
  • OAuth isn't supported for the EU server. The EU remote server only supports API key authentication.

Use cases

  • API Testing — Continuously test your API using your Postman collection. Use the local server to test local APIs, as the remote server won't have network access to your workstation.
  • Code synchronization — Keep your code in sync with your Postman Collections and specs.
  • Collection management — Create and tag collections, update documentation, add comments, or perform actions across multiple collections without leaving your editor.
  • Workspace and environment management — Create workspaces and environments, plus manage environment variables.
  • Automatic spec creation — Create specs from your code and use them to generate collections.
  • Client code generation — Generate production-ready client code that consumes APIs following best practices and project conventions.

Docker

For Docker setup and installation, see DOCKER.md.


Contributing

Bug reports, tool requests, and documentation fixes are all welcome — see CONTRIBUTING.md.

The MCP tool definitions and the server implementation here are synced from Postman's internal source of truth, so changes to files under src/ can't be merged in this repository — but issues are how those changes get made, and we credit contributions that ship. Documentation and repository tooling accept pull requests directly.

Found a security issue? See SECURITY.md — please don't open a public issue.


Questions and support


Keywords

Model Context Protocol · MCP Server · Postman · AI Agents · Claude Code · Cursor · VS Code · Specifications · REST API · API Testing · TypeScript · OpenAPI

Files in the repo

Repository payload31 top-level entries
  • .github
  • dist
  • scripts
  • src
  • .dockerignore
  • .dxtignore
  • .gitattributes
  • .gitignore
  • .npmignore
  • .npmrc
  • .prettierrc.js
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • DOCKER.md
  • Dockerfile
  • eslint.config.mjs
  • icon.png
  • LICENSE
  • manifest-code.json
  • manifest-full.json
  • manifest-learn.json
  • manifest-minimal.json
  • package.json
  • pnpm-lock.yaml
  • README.md
  • RELEASE_NOTES_v2.9.0.md
  • SECURITY.md
  • server.json
  • SUPPORT.md
  • tsconfig.json
  • vitest.config.ts

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k