postman-mcp

postman-mcp

mcp-PostmanV3

Category
Visit Server

README

Postman MCP Server

Version: v0.2.0

<a href="https://cursor.com/en-US/install-mcp?name=postman&config=eyJjb21tYW5kIjoibnBtIGkgQHBvc3RtYW52My9wb3N0bWFuLW1jcC1zZXJ2ZXIifQ%3D%3D"><img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Add postman MCP server to Cursor" height="32" /></a>

An MCP server that provides access to the Postman API. Functionality is based on the official OpenAPI specification. For more information, see the Postman API documentation.

This project is part of the Model Context Protocol (MCP) initiative from Anthropic. For more information, visit the MCP GitHub repository and the announcement on the Anthropic blog.

Skip ahead to install instructions

postman-mcp-server - Cover Image

[!WARNING] This project is currently under active development. Please use with caution and expect breaking changes.

[!NOTE] AI Generated Code. I used Cline v2.2.2 with Claude 3.5 Sonnet (2024-10-22). See docs/README.md for prompts and details about how this code was generated.

<a href="https://glama.ai/mcp/servers/zoig549xfd"><img width="380" height="200" src="https://glama.ai/mcp/servers/zoig549xfd/badge" alt="postman-mcp-server MCP server" /></a>


Overview

Postman MCP Server is a TypeScript-based MCP server that integrates with the Postman API, providing comprehensive management of Postman collections, environments, and APIs.

Features

Collections

  • CRUD Operations: Create, retrieve, and update Postman collections.
  • Folder Management: Organize requests into folders within collections.
  • Request Management: Add and update requests within collections.
  • Response Management: Manage responses associated with requests.
  • Version Control: Fork, merge, and pull changes for collections.
  • Comments: Add and manage comments on collections.

Environments

  • Manage Environments: Create and retrieve environments for different setups.
  • CRUD Operations: Full support for creating, updating, and deleting environments.

APIs

  • API Management: Create, retrieve, update, and delete APIs.
  • Schema Support: Manage API schemas with multi-file support.
  • Tagging: Add and manage tags for APIs.
  • Comments: Add and manage comments on APIs.

Authentication & Authorization

  • API Key Authentication: Secure access using API keys.
  • Role-Based Access Control: Manage permissions at workspace and collection levels.
  • Workspace Permissions: Define permissions specific to workspaces.

Additional Features

  • Private API Network: Manage elements and folders within a private API network.
  • Webhooks: Create webhooks to trigger collections with custom payloads.
  • Enterprise Features: Advanced role controls and SCIM support for enterprise environments.

Installation

Installing via npm (Recommended)

Install the package globally:

npm install -g @postmanv3/postman-mcp-server

Or install locally in your project:

npm install @postmanv3/postman-mcp-server

Installing via Smithery

To install Postman MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install postman-api-server --client claude

Installing from Source

If you prefer to build from source:

  1. Clone the repository:

    git clone https://github.com/PostmanV3/postman-mcp-server.git
    cd postman-mcp-server
    
  2. Install dependencies:

    npm install
    # or
    pnpm install
    
  3. Build the server:

    npm run build
    # or
    pnpm run build
    
  4. Run in development mode with auto-rebuild:

    npm run watch
    # or
    pnpm run watch
    

Usage

Setting up API Keys

  1. Generate your API Key

  2. Configure the API Key

    • Add the key to your environment as POSTMAN_API_KEY
    • For Claude Desktop or Cline, include it in your config file (see configuration examples below)
    • Never commit API keys to version control
  3. Verify Access

    • The API key provides access to all Postman resources you have permissions for
    • Test access by running a simple query (e.g., list workspaces)

[!NOTE] If you're using the Postman API collection directly, store your API key as a postman-api-key collection variable.

Using Claude Desktop

To use with Claude Desktop, add the server config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

[!IMPORTANT] If you're updating this provider, Claude must be restarted to pick up API changes from the input schema (i.e. When the MCP server's ToolDefinition elements have changed). This is because Claude caches the tool definitions when it starts up.

<img width="480" alt="claude-desktop-settings" src="https://github.com/user-attachments/assets/7ea7cba2-e27e-413a-a50a-590054d51344" />

Example configuration

Recommended: Using npx (works with both global and local installations):

{
  "mcpServers": {
    "postman": {
      "command": "npx",
      "args": [
        "-y",
        "@postmanv3/postman-mcp-server"
      ],
      "env": {
        "POSTMAN_API_KEY": "CHANGEME"
      }
    }
  }
}

Alternative: Direct path (if installed locally):

{
  "mcpServers": {
    "postman": {
      "command": "node",
      "args": [
        "./node_modules/@postmanv3/postman-mcp-server/build/index.js"
      ],
      "env": {
        "POSTMAN_API_KEY": "CHANGEME"
      }
    }
  }
}

Alternative: Global installation path (typical paths - find yours with npm root -g):

{
  "mcpServers": {
    "postman": {
      "command": "node",
      "args": [
        "/usr/local/lib/node_modules/@postmanv3/postman-mcp-server/build/index.js"
      ],
      "env": {
        "POSTMAN_API_KEY": "CHANGEME"
      }
    }
  }
}

[!NOTE] To find your global node_modules path, run npm root -g and replace the path above accordingly.

[!TIP] The npx approach is recommended as it automatically finds the package whether it's installed globally or locally, and handles updates automatically.

Using Cline

Using the same example configuration, add the server config to your Cline MCP Servers configuration:

<img width="480" alt="cline-settings" src="https://github.com/user-attachments/assets/651ec517-9aa2-4314-84f5-bee716aa8889" />

Example configuration

Same as Claude above.

Using Zed

I'm still trying to get this to work. From the Zed docs it looks like it needs to be an extension (also this issue #21455).


Documentation

The official Postman API documentation is available in the Postman Public Workspace.

Project Overview

Postman API References & Summaries

This project leverages the Claude model and Cline extension to convert the OpenAPI specification into TypeScript code, enhancing type safety and integration within the MCP server.

This GitHub project includes API References documentation that provides detailed guidance on utilizing the Postman platform programmatically. It covers both the Collection SDK for local development and the Postman API for cloud platform integration. Key topics include authentication mechanisms, rate limits, and in-depth documentation of all API endpoints, including workspaces, collections, environments, and more. Additionally, the guide offers prerequisites and quick-start instructions to facilitate seamless API interactions.

The docs/api/summaries directory contains comprehensive Markdown summaries of the Postman API. These documents outline API endpoints, request/response formats, and implementation details essential for validating and ensuring the functionality of the MCP server. Refer to the API Summaries README for an overview of the documentation structure and implementation strategies.

Converting OpenAPI Spec to TypeScript Code with Claude

Building the MCP Server

Refer to the Handlers Documentation for detailed specifications on implementing MCP server handlers. This includes URI formats, prompt requirements, and resource handling patterns. This guide is crucial for developers working on integrating and enhancing the Postman API functionalities within the MCP server.


Rationale

The MCP wrapper for Postman tools makes sense primarily as an AI interaction layer for complex, multi-step operations where structure and safety are paramount. However, it may be overengineered for simple operations where direct CLI or API usage would suffice. The MCP wrapper provides most value when:

  1. Complex Operations
  • Managing multiple collections
  • Coordinating environments
  • Generating comprehensive reports
  1. AI-Driven Automation
  • Automated testing workflows
  • API documentation maintenance
  • Environment management
  1. Error-Sensitive Operations
  • Critical API testing
  • Production deployments
  • Compliance checking

It provides less value for:

  1. Simple Operations
  • Basic collection runs
  • Single API calls
  • Quick environment checks
  1. Direct CLI Usage
  • Developer-driven operations
  • Local testing
  • Quick iterations

Development

Install dependencies:

npm install
# or
pnpm install

Build the server:

npm run build
# or
pnpm run build

For development with auto-rebuild:

npm run watch
# or
pnpm run watch

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, available as a package script:

npm run inspector
# or
pnpm run inspector

Docs

The Inspector will provide a URL to access debugging tools in your browser: http://localhost:5173. You will need to add the POSTMAN_API_KEY before connecting. Navigate to "Tools" to get started.

Other MCP Servers

License

This project is licensed under the MIT License. See the LICENSE file for details.


This MCP server is for research purposes only. Any data collection or monitoring will be conducted solely for security research purposes.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured