Offers a support channel (#mcp-lab) in the Postman Discord for sharing builds and getting help with the MCP server.
Supports deployment of the MCP server in Docker containers for production environments, with configuration options for environment variables and Claude Desktop integration.
Supports configuration of API keys and other sensitive information through environment variables loaded from a .env file.
Powers the MCP server runtime, with specific support for Node.js v18+ to ensure compatibility with the fetch API used by the generated tools.
Used for managing dependencies of the MCP server and installed tools.
Provides integration with Postman APIs through automatically generated JavaScript tools, allowing AI agents to make API requests to services configured in Postman workspaces.
Postman MCP Generator
Welcome to your generated MCP server! 🚀 This project was created with the Postman MCP Generator, configured to Model Context Provider (MCP) Server output mode. It provides you with:
- ✅ An MCP-compatible server (
mcpServer.js
) - ✅ Automatically generated JavaScript tools for each selected Postman API request
Let's set things up!
🚦 Getting Started
⚙️ Prerequisites
Before starting, please ensure you have:
- Node.js (v18+ required, v20+ recommended)
- npm (included with Node)
Warning: if you run with a lower version of Node, fetch
won't be present. Tools use fetch
to make HTTP calls. To work around this, you can modify the tools to use node-fetch
instead. Make sure that node-fetch
is installed as a dependency and then import it as fetch
into each tool file.
📥 Installation & Setup
1. Install dependencies
Run from your project's root directory:
🔐 Set tool environment variables
In the .env
file, you'll see environment variable placeholders, one for each workspace that the selected tools are from. For example, if you selected requests from 2 workspaces, e.g. Acme and Widgets, you'll see two placeholders:
Update the values with actual API keys for each API. These environment variables are used inside of the generated tools to set the API key for each request. You can inspect a file in the tools
directory to see how it works.
Caveat: This may not be correct for every API. The generation logic is relatively simple - for each workspace, we create an environment variable with the same name as the workspace slug, and then use that environment variable in each tool file that belongs to that workspace. If this isn't the right behavior for your chosen API, no problem! You can manually update anything in the .env
file or tool files to accurately reflect the API's method of authentication.
🌐 Test the MCP Server with Postman
The MCP Server (mcpServer.js
) exposes your automated API tools to MCP-compatible clients, such as Claude Desktop or the Postman Desktop Application. We recommend that you test the server with Postman first and then move on to using it with an LLM.
The Postman Desktop Application is the easiest way to run and test MCP servers. Testing the downloaded server first is optional but recommended.
Step 1: Download the latest Postman Desktop Application from https://www.postman.com/downloads/.
Step 2: Read out the documentation article here and see how to create an MCP request inside the Postman app.
Step 3: Set the type of the MCP request to STDIO
and set the command to node </absolute/path/to/mcpServer.js>
. If you have issues with using only node
(e.g. an old version is used), supply an absolute path instead to a node version 18+. You can get the full path to node by running:
To check the node version, run:
To get the absolute path to mcpServer.js
, run:
Use the node command followed by the full path to mcpServer.js
as the command for your new Postman MCP Request. Then click the Connect button. You should see a list of tools that you selected before generating the server. You can test that each tool works here before connecting the MCP server to an LLM.
👩💻 Connect the MCP Server to Claude
You can connect your MCP server to any MCP client. Here we provide instructions for connecting it to Claude Desktop.
Step 1: Note the full path to node and the mcpServer.js
from the previous step.
Step 2. Open Claude Desktop → Settings → Developers → Edit Config and add a new MCP server:
Restart Claude Desktop to activate this change. Make sure the new MCP is turned on and has a green circle next to it. If so, you're ready to begin a chat session that can use the tools you've connected.
Warning: If you don't supply an absolute path to a node
version that is v18+, Claude (and other MCP clients) may fall back to another node
version on the system of a previous version. In this case, the fetch
API won't be present and tool calls will not work. If that happens, you can a) install a newer version of node and point to it in the command, or b) import node-fetch
into each tool as fetch
, making sure to also add the node-fetch
dependency to your package.json.
Additional Options
🐳 Docker Deployment (Production)
For production deployments, you can use Docker:
1. Build Docker image
2. Claude Desktop Integration
Add Docker server configuration to Claude Desktop (Settings → Developers → Edit Config):
Add your environment variables (API keys, etc.) inside the
.env
file.
The project comes bundled with the following minimal Docker setup:
🌐 Server-Sent Events (SSE)
To run the server with Server-Sent Events (SSE) support, use the --sse
flag:
🛠️ Additional CLI commands
List tools
List descriptions and parameters from all generated tools with:
Example:
➕ Adding New Tools
Extend your MCP server with more tools easily:
- Visit Postman MCP Generator.
- Pick new API request(s), generate a new MCP server, and download it.
- Copy new generated tool(s) into your existing project's
tools/
folder. - Update your
tools/paths.js
file to include new tool references.
💬 Questions & Support
Visit the Postman MCP Generator page for updates and new capabilities.
Join the #mcp-lab
channel in the Postman Discord to share what you've built and get help.
This server cannot be installed
A server that implements the Model Context Protocol (MCP) standard, enabling LLMs like Claude to interact with selected Postman API requests through generated JavaScript tools.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases. Query collections, inspect schemas, and manage data seamlessly through natural language.Last updated -34075TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for web research. Bring real-time info into Claude and easily research any topic.Last updated -3854189JavaScriptMIT License
- AsecurityAlicenseAqualityAn educational implementation of a Model Context Protocol server that demonstrates how to build a functional MCP server for integrating with various LLM clients like Claude Desktop.Last updated -188PythonMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that enables Claude or other LLMs to fetch content from URLs, supporting HTML, JSON, text, and images with configurable request parameters.Last updated -PythonMIT License