postman
A Model Context Protocol (MCP) server that provides seamless integration with the Postman API. This package enables AI assistants and applications to interact with Postman workspaces, collections, requests, environments, and folders programmatically.
claude mcp add --transport stdio salehkhatri-postman-mcp npx postman-mcp \ --env POSTMAN_API_KEY="your_postman_api_key_here"
How to use
The Postman MCP server provides an API for managing Postman resources such as workspaces, collections, requests, environments, and folders. It exposes a suite of tools that let an AI assistant or an application list workspaces, inspect and modify collections, add or update HTTP requests, and manage environments with sensitive variables. Typical workflows include creating a workspace, building and updating a collection with requests, organizing items into folders, and configuring environments with default and secret variables. The tools are designed to cover the full lifecycle of Postman assets and enable automation scenarios that previously required manual Postman UI interactions.
To use the server, start it via MCP client configuration (for example using npx postman-mcp). Once running, call the available tools such as list_workspaces, get_workspace, create_collection, add_request, and create_environment through the MCP runtime. Each tool accepts a structured payload (e.g., IDs, names, URLs, headers, body, and environment values) and returns the resulting resource data or confirmation. This enables programmatic workflows like provisioning a new workspace with a collection, injecting environment variables, and adding requests to folders in an automated fashion.
How to install
Prerequisites:
- Node.js 18+ installed on your system
- npm or yarn
- A Postman API key with appropriate permissions
Setup and installation steps:
-
Clone the repository:
git clone https://github.com/SalehKhatri/postman-mcp.git cd postman-mcp -
Install dependencies:
npm install -
Configure environment:
cp .env.example .env # Edit .env and add your POSTMAN_API_KEY -
Build the project (if required by the setup):
npm run build -
Run in development mode:
npm run dev
Additional notes
Notes and tips:
- Environment variable: POSTMAN_API_KEY must be set with a valid Postman API key. Treat this key as sensitive data.
- If you encounter API rate limits, consider staggering requests or implementing retry/backoff logic in your application.
- The MCP server exposes operations for workspaces, collections, requests, environments, and folders; ensure you pass correct IDs and structure when calling tools.
- When running in production, consider securing the environment and restricting access to the MCP server to trusted clients.
- You can also run the MCP server via standard command: npx postman-mcp or node path/to/postman-mcp/dist/index.js depending on your setup.
Related MCP Servers
anytype
An MCP server enabling AI assistants to interact with Anytype - your encrypted, local and collaborative wiki - to organize objects, lists, and more through natural language.
postman
Connect your AI to your APIs on Postman
airtable
Airtable integration for AI-powered applications via Anthropic's Model Context Protocol (MCP)
apitap
The MCP server that turns any website into an API — no docs, no SDK, no browser. npm: @apitap/core
hackmd
A Model Context Protocol server for integrating HackMD's note-taking platform with AI assistants.
mcp-konnect
A Model Context Protocol (MCP) server for interacting with Kong Konnect APIs, allowing AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.