Postman MCP Server

Postman MCP Server

Provides seamless access to Postman.

delano

Content Fetching
AI Integration Systems
Git Management Tools
Visit Server

Tools

add_pan_element

Add element or folder to Private API Network

update_pan_element

Update element or folder in Private API Network

remove_pan_element

Remove element or folder from Private API Network

create_webhook

Creates webhook that triggers collection with custom payload

get_tagged_elements

Get elements by tag

get_workspace_tags

Get workspace tags

update_workspace_tags

Update workspace tags

list_workspaces

List all workspaces

get_workspace

Get details of a specific workspace

list_environments

List all environments in a workspace. If workspace not specified, lists environments in "My Workspace".

get_environment

Get details of a specific environment

create_environment

Create a new environment in a workspace. Creates in "My Workspace" if workspace not specified.

update_environment

Update an existing environment. Only include variables that need to be modified.

delete_environment

Delete an environment

fork_environment

Create a fork of an environment in a workspace

get_environment_forks

Get a list of environment forks

merge_environment_fork

Merge a forked environment back into its parent

pull_environment

Pull changes from parent environment into forked environment

list_collections

List all collections in a workspace. Supports filtering and pagination.

get_collection

Get details of a specific collection

create_collection

Create a new collection in a workspace. Supports Postman Collection v2.1.0 format.

update_collection

Update an existing collection. Full collection replacement with maximum size of 20 MB.

patch_collection

Partially update a collection. Only updates provided fields.

delete_collection

Delete a collection

create_collection_folder

Create a new folder in a collection

get_collection_folder

Get details of a specific folder in a collection

update_collection_folder

Update a folder in a collection. Acts like PATCH, only updates provided values.

delete_collection_folder

Delete a folder from a collection

create_collection_request

Create a new request in a collection

get_collection_request

Get details of a specific request in a collection

update_collection_request

Update a request in a collection. Cannot change request folder.

delete_collection_request

Delete a request from a collection

create_collection_response

Create a new response in a collection

get_collection_response

Get details of a specific response in a collection

update_collection_response

Update a response in a collection. Acts like PATCH, only updates provided values.

delete_collection_response

Delete a response from a collection

fork_collection

Fork a collection to a workspace

get_collection_forks

Get a list of collection forks

merge_collection_fork

Merge a forked collection back into its parent

pull_collection_changes

Pull changes from parent collection into forked collection

transfer_collection_items

Transfer items between collections

get_user_info

Get information about the authenticated user

list_apis

List all APIs in a workspace

get_api

Get details of a specific API

create_api

Create a new API

update_api

Update an existing API

delete_api

Delete an API

add_api_collection

Add a collection to an API

get_api_collection

Get a specific collection from an API

create_api_schema

Create a schema for an API

get_api_schema

Get a specific schema from an API

create_api_version

Create a new version of an API

get_api_versions

Get all versions of an API

get_api_version

Get a specific version of an API

update_api_version

Update an API version

delete_api_version

Delete an API version

get_api_comments

Get comments for an API

create_api_comment

Create a new comment on an API (max 10,000 characters)

update_api_comment

Update an existing API comment (max 10,000 characters)

delete_api_comment

Delete an API comment

get_api_tags

Get tags for an API

update_api_tags

Update tags for an API

get_api_schema_files

Get files in an API schema

get_schema_file_contents

Get contents of a schema file

create_update_schema_file

Create or update a schema file

delete_schema_file

Delete a schema file

sync_collection_with_schema

Sync a collection with its schema

get_task_status

Get status of an asynchronous task

list_collection_access_keys

List collection access keys with optional filtering by collection ID

delete_collection_access_key

Delete a collection access key

list_workspace_roles

Get all available workspace roles based on team's plan

get_workspace_roles

Get roles for a specific workspace

update_workspace_roles

Update workspace roles for users and groups (limited to 50 operations per call)

get_collection_roles

Get roles for a collection

update_collection_roles

Update collection roles (requires EDITOR role)

get_authenticated_user

Get authenticated user information

list_mocks

List all mock servers

create_mock

Create a new mock server. Creates in Personal workspace if workspace not specified.

get_mock

Get details of a specific mock server

update_mock

Update an existing mock server

delete_mock

Delete a mock server

get_mock_call_logs

Get mock call logs. Maximum 6.5MB or 100 call logs per API call. Retention period based on Postman plan.

publish_mock

Publish mock server (sets Access Control to public)

unpublish_mock

Unpublish mock server (sets Access Control to private)

list_server_responses

Get all server responses for a mock

create_server_response

Create a server response. Only one server response can be active at a time.

get_server_response

Get a specific server response

update_server_response

Update a server response

delete_server_response

Delete a server response

list_monitors

Get all monitors

get_monitor

Get details of a specific monitor

create_monitor

Create a new monitor. Cannot create monitors for collections added to an API definition.

update_monitor

Update an existing monitor

delete_monitor

Delete a monitor

run_monitor

Run a monitor. For async=true, response won't include stats, executions, and failures. Use GET /monitors/{id} to get this information for async runs.

get_accounts

Gets Postman billing account details for the given team

list_account_invoices

Gets all invoices for a Postman billing account filtered by status

resolve_comment_thread

Resolves a comment and any associated replies

list_pan_elements

Get all elements and folders in Private API Network

README

Postman MCP Server

smithery badge Version: v0.2.0

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, update, and delete Postman collections.
  • Folder Management: Organize requests into folders within collections.
  • Request Management: Add, update, and delete 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 Smithery

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

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

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/delano/postman-api-server.git
    cd postman-api-server
    
  2. Install dependencies:

    pnpm install
    
  3. Build the server:

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

    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

{
  "mcpServers": {
    "postman": {
      "command": "node",
      "args": [
        "/path/to/postman-api-server/build/index.js"
      ],
      "env": {
        "POSTMAN_API_KEY": "CHANGEME"
      }
    }
  }
}

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, mock servers, monitors, 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:

pnpm install

Build the server:

pnpm run build

For development with auto-rebuild:

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:

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.

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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

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
Mult Fetch MCP Server

Mult Fetch MCP Server

A versatile MCP-compliant web content fetching tool that supports multiple modes (browser/node), formats (HTML/JSON/Markdown/Text), and intelligent proxy detection, with bilingual interface (English/Chinese).

Featured
Local
AIO-MCP Server

AIO-MCP Server

🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from

Featured
Local
Persistent Knowledge Graph

Persistent Knowledge Graph

An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.

Featured
Local
Hyperbrowser MCP Server

Hyperbrowser MCP Server

Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to

Featured
Local
React MCP

React MCP

react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts

Featured
Local
Atlassian Integration

Atlassian Integration

Model Context Protocol (MCP) server for Atlassian Cloud products (Confluence and Jira). This integration is designed specifically for Atlassian Cloud instances and does not support Atlassian Server or Data Center deployments.

Featured
Any OpenAI Compatible API Integrations

Any OpenAI Compatible API Integrations

Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.

Featured