postman-mcp-server
Provides integration with Postman API for managing workspaces, collections, environments, requests, folders, and mock servers, enabling AI agents to interact with Postman programmatically.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@postman-mcp-serverlist all workspaces"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ Postman MCP Server
Transform your AI conversations into powerful API workflows with seamless Postman integration
Stop switching between your AI assistant and Postman! This Model Context Protocol (MCP) server brings the full power of Postman directly into your AI conversations with Cline, Claude Desktop, Cursor, and other MCP-compatible clients.
๐ฏ Why You Need This
The Problem
Context Switching Nightmare: Constantly jumping between AI chats and Postman to manage APIs
Manual API Documentation: Tediously explaining API structures to your AI assistant
Workflow Interruption: Breaking your flow to test, update, or create API requests
Team Collaboration Gaps: Difficulty sharing API workflows between AI-assisted development and team tools
The Solution
One command. Infinite possibilities. Connect your AI assistant directly to Postman and unlock:
โจ Instant API Management - Create, update, and organize API collections without leaving your AI conversation
๐ Real-time Sync - Changes made through AI are immediately available in Postman
๐ฏ Context-Aware Assistance - Your AI understands your entire API ecosystem
๐ Accelerated Development - Build and test APIs 10x faster with AI-powered workflows
๐ฅ Seamless Team Integration - AI-generated APIs automatically sync with your team's Postman workspace
๐ What You Can Do
๐ข Smart Workspace Management
"Create a new workspace for our mobile app project" - Done in seconds
"List all my team workspaces" - Instant overview of your organization
"Switch to the production workspace" - Seamless environment management
๐ Intelligent Collection Building
"Build a REST API collection for user authentication" - AI creates the entire structure
"Add CRUD operations for the products endpoint" - Complete API sets generated instantly
"Import my OpenAPI spec into a new collection" - Automated API documentation
๐ Dynamic Environment Control
"Set up dev, staging, and prod environments" - Multi-environment setup in one command
"Update the API key for production" - Secure credential management
"Switch all requests to use the staging server" - Bulk environment changes
๐ง Effortless Request Management
"Create a POST request for user registration with validation" - Complete request with headers, body, and tests
"Add authentication to all requests in this collection" - Bulk security implementation
"Generate test data for the user creation endpoint" - Realistic test scenarios
๐ Organized Folder Structures
"Organize these requests by feature" - Automatic logical grouping
"Create a folder structure for microservices" - Enterprise-ready organization
"Move all authentication requests to a separate folder" - Instant reorganization
๐ญ AI-Powered Mock Server Creation
"Create a mock server for my user API with realistic data" - Instant mock endpoints with intelligent responses
"Generate mock responses with error scenarios for testing" - Complete testing scenarios including 400, 401, 404, 500 responses
"Set up a mock server with dynamic data and response delays" - Production-like mock behavior for realistic testing
๐ Quick Start (60 seconds to API mastery)
1. Install Globally
npm install -g postman-mcp-server2. Get Your Postman API Key
Visit Postman API Keys
Click "Generate API Key"
Copy your key
3. Configure Your AI Agent
For Cline (VSCode Extension)
Add to your Cline MCP settings:
{
"mcpServers": {
"postman": {
"command": "postman-mcp-server",
"env": {
"POSTMAN_API_KEY": "your-postman-api-key-here"
}
}
}
}For Claude Desktop
Add to your configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"postman": {
"command": "postman-mcp-server",
"env": {
"POSTMAN_API_KEY": "your-postman-api-key-here"
}
}
}
}For Cursor
Add to your Cursor MCP configuration:
{
"mcpServers": {
"postman": {
"command": "postman-mcp-server",
"env": {
"POSTMAN_API_KEY": "your-postman-api-key-here"
}
}
}
}4. Start Building!
Restart your AI agent and start with:
"Show me all my Postman workspaces and help me create a new API collection for my e-commerce project"
๐ก Real-World Use Cases
๐ฏ API-First Development
You: "I'm building a social media app. Create a complete API collection with user management, posts, and comments."
AI: *Creates workspace, sets up collections with proper folder structure, adds CRUD operations for users/posts/comments, configures authentication, and sets up test environments*๐ Rapid Prototyping
You: "Convert this OpenAPI spec into a Postman collection and add realistic test data."
AI: *Imports spec, creates organized collection, generates sample requests with proper headers and realistic JSON payloads*๐ Team Onboarding
You: "Set up a development environment for our new team member with all our microservice endpoints."
AI: *Creates workspace, imports all collections, sets up environment variables, organizes by service, adds documentation*๐ง API Testing Automation
You: "Add comprehensive tests to all endpoints in my user management collection."
AI: *Adds status code checks, response validation, authentication tests, and error handling to every request*๐ ๏ธ Powerful Features
๐ข Workspace Management
List & Browse: Instantly see all your workspaces
Create & Configure: Set up new team or personal workspaces
Update & Organize: Modify workspace settings and descriptions
Smart Switching: Context-aware workspace management
๐ Collection Operations
Intelligent Creation: AI-powered collection structure generation
Bulk Operations: Manage multiple collections simultaneously
Version Control: Track and manage collection changes
Import/Export: Seamless data migration
๐ Environment Control
Multi-Environment Setup: Dev, staging, production configurations
Variable Management: Secure handling of API keys and endpoints
Bulk Updates: Change environments across collections
Environment Cloning: Duplicate setups for new projects
๐ง Request Engineering
Smart Generation: AI creates complete requests with proper structure
Bulk Modifications: Update multiple requests simultaneously
Authentication Integration: Automatic auth setup across requests
Test Generation: Comprehensive test suites for all endpoints
๐ Organization Tools
Folder Hierarchies: Create logical API groupings
Auto-Organization: AI suggests optimal folder structures
Bulk Moving: Reorganize requests efficiently
Search & Filter: Find requests across large collections
๐ Security & Best Practices
๐ก๏ธ Supply Chain Security
โ Zero Known Vulnerabilities: Regular security audits with npm audit
๐ Dependency Monitoring: Automated vulnerability scanning via Socket.dev
๐ฆ Minimal Dependencies: Only 3 production dependencies to reduce attack surface
๐ Regular Updates: Automated dependency updates and security patches
๐ท๏ธ Signed Releases: All releases are signed and verified
๐ API Security
๐ Secure API Key Handling: Environment variable storage only
๐ก๏ธ Rate Limit Respect: Built-in Postman API rate limiting
โ Input Validation: Comprehensive request validation using Zod schemas
๐ Error Handling: Graceful failure management without data leakage
๐ Audit Logging: Track all API operations for security monitoring
๐จ Security Reporting
Found a security vulnerability? Please see our Security Policy for responsible disclosure guidelines.
๐ง Security Configuration
# Recommended: Use environment variables for API keys
export POSTMAN_API_KEY="your-secure-api-key"
# Never commit API keys to version control
echo "POSTMAN_API_KEY=*" >> .gitignore๐ Security Monitoring
Automated Security Audits: Daily vulnerability scans
Dependency Health Checks: Weekly dependency reviews
Socket.dev Integration: Real-time supply chain monitoring
GitHub Security Advisories: Automatic security notifications
๐จ Advanced Configuration
Environment Variable Setup
export POSTMAN_API_KEY="your-postman-api-key-here"Alternative Configuration (if global install doesn't work)
{
"mcpServers": {
"postman": {
"command": "node",
"args": ["$(npm root -g)/postman-mcp-server/build/index.js"],
"env": {
"POSTMAN_API_KEY": "your-postman-api-key-here"
}
}
}
}๐งช Verification
Test your installation:
# Check if the command is available
postman-mcp-server --help
# Verify global installation
npm list -g postman-mcp-server๐ Available Tools
list_workspaces
Get all your Postman workspaces instantly
{ "name": "list_workspaces", "arguments": {} }get_workspace
Detailed workspace information and metadata
{ "name": "get_workspace", "arguments": { "workspaceId": "workspace-id" } }create_workspace
Create new team or personal workspaces
{
"name": "create_workspace",
"arguments": {
"name": "My New Workspace",
"type": "team",
"description": "Workspace for our new project"
}
}update_workspace
Modify workspace settings and descriptions
{
"name": "update_workspace",
"arguments": {
"workspaceId": "workspace-id",
"name": "Updated Name",
"description": "New description"
}
}delete_workspace
Remove workspaces (use with caution!)
{ "name": "delete_workspace", "arguments": { "workspaceId": "workspace-id" } }list_collections
Browse all collections or filter by workspace
{ "name": "list_collections", "arguments": { "workspaceId": "optional-workspace-id" } }get_collection
Complete collection structure and metadata
{ "name": "get_collection", "arguments": { "collectionId": "collection-id" } }create_collection
Build new API collections
{
"name": "create_collection",
"arguments": {
"name": "User Management API",
"description": "Complete user CRUD operations",
"workspaceId": "workspace-id"
}
}update_collection
Modify collection metadata and settings
{
"name": "update_collection",
"arguments": {
"collectionId": "collection-id",
"name": "Updated API Collection",
"description": "Enhanced description"
}
}delete_collection
Remove collections permanently
{ "name": "delete_collection", "arguments": { "collectionId": "collection-id" } }list_environments
View all environments or filter by workspace
{ "name": "list_environments", "arguments": { "workspaceId": "optional-workspace-id" } }get_environment
Environment details with all variables
{ "name": "get_environment", "arguments": { "environmentId": "environment-id" } }create_environment
Set up new environments with variables
{
"name": "create_environment",
"arguments": {
"name": "Production",
"values": [
{ "key": "baseUrl", "value": "https://api.production.com", "type": "default" },
{ "key": "apiKey", "value": "secret-key", "type": "secret" }
],
"workspaceId": "workspace-id"
}
}update_environment
Modify environment variables and settings
{
"name": "update_environment",
"arguments": {
"environmentId": "environment-id",
"name": "Updated Environment",
"values": [
{ "key": "newVariable", "value": "newValue", "type": "default" }
]
}
}delete_environment
Remove environments
{ "name": "delete_environment", "arguments": { "environmentId": "environment-id" } }create_request
Create new API requests with complete configuration
{
"name": "create_request",
"arguments": {
"collectionId": "collection-id",
"name": "Create User",
"url": "https://api.example.com/users",
"method": "POST",
"description": "Create a new user account",
"headers": [
{ "key": "Content-Type", "value": "application/json" },
{ "key": "Authorization", "value": "Bearer {{token}}" }
],
"body": {
"mode": "raw",
"raw": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}"
},
"folderId": "optional-folder-id"
}
}get_request
Retrieve detailed request information
{
"name": "get_request",
"arguments": {
"collectionId": "collection-id",
"requestId": "request-id"
}
}update_request
Modify existing requests
{
"name": "update_request",
"arguments": {
"collectionId": "collection-id",
"requestId": "request-id",
"name": "Updated Request Name",
"url": "https://api.example.com/v2/users",
"method": "PUT",
"headers": [
{ "key": "Content-Type", "value": "application/json" }
]
}
}delete_request
Remove requests from collections
{
"name": "delete_request",
"arguments": {
"collectionId": "collection-id",
"requestId": "request-id"
}
}create_folder
Organize requests with folder structures
{
"name": "create_folder",
"arguments": {
"collectionId": "collection-id",
"name": "User Management",
"description": "All user-related API endpoints",
"parentFolderId": "optional-parent-folder-id"
}
}update_folder
Modify folder properties
{
"name": "update_folder",
"arguments": {
"collectionId": "collection-id",
"folderId": "folder-id",
"name": "Updated Folder Name",
"description": "Updated description"
}
}delete_folder
Remove folders and their contents
{
"name": "delete_folder",
"arguments": {
"collectionId": "collection-id",
"folderId": "folder-id"
}
}move_request
Reorganize requests between folders
{
"name": "move_request",
"arguments": {
"collectionId": "collection-id",
"requestId": "request-id",
"targetFolderId": "target-folder-id"
}
}list_mock_servers
Get all your mock servers instantly
{ "name": "list_mock_servers", "arguments": {} }get_mock_server
Detailed mock server information and configuration
{ "name": "get_mock_server", "arguments": { "mockId": "mock-server-id" } }create_mock_server
Create new mock servers from collections
{
"name": "create_mock_server",
"arguments": {
"name": "User API Mock",
"collectionId": "collection-id",
"environmentId": "environment-id",
"private": false,
"config": {
"headers": [
{ "key": "Content-Type", "value": "application/json" }
],
"matchBody": true,
"matchQueryParams": true,
"delay": {
"type": "fixed",
"preset": "medium"
}
}
}
}create_ai_mock_server
Create AI-powered mock servers with intelligent data generation
{
"name": "create_ai_mock_server",
"arguments": {
"name": "Smart User API Mock",
"collectionId": "collection-id",
"generateRealisticData": true,
"includeErrorResponses": true,
"responseDelay": "medium",
"private": false
}
}update_mock_server
Modify mock server settings and configuration
{
"name": "update_mock_server",
"arguments": {
"mockId": "mock-server-id",
"name": "Updated Mock Server",
"private": true,
"config": {
"matchBody": false,
"delay": {
"type": "random",
"preset": "low"
}
}
}
}delete_mock_server
Remove mock servers
{ "name": "delete_mock_server", "arguments": { "mockId": "mock-server-id" } }get_mock_server_call_logs
View mock server usage and call history
{
"name": "get_mock_server_call_logs",
"arguments": {
"mockId": "mock-server-id",
"limit": 50
}
}๐ ๏ธ Development
Setup Development Environment
git clone https://github.com/ankit-roy-0602/postman-mcp-server.git
cd postman-mcp-server
npm install
npm run buildAvailable Scripts
npm run build- Build TypeScript codenpm run dev- Development mode with watchnpm test- Run comprehensive test suitenpm run lint- Code quality checksnpm run format- Code formatting
๐ค Contributing
We welcome contributions! Whether it's:
๐ Bug Reports: Found an issue? Let us know!
โจ Feature Requests: Have an idea? We'd love to hear it!
๐ Documentation: Help make our docs even better
๐ง Code Contributions: Submit PRs for new features or fixes
See our Contributing Guide for details.
๐ Roadmap
๐ Recently Added
Request & Folder Management: Complete CRUD operations for requests and folders
Advanced Request Creation: AI-powered request generation with headers, body, and authentication
Folder Organization: Hierarchical folder structures for better API organization
Request Movement: Move requests between folders and collections seamlessly
Mock Server Integration: AI-powered mock server creation with realistic data generation
๐ Coming Soon
Collection Import/Export: Seamless data migration tools
Advanced Search: Find anything across your Postman workspace
๐ฎ Future Vision
Monitor Management: Automated API monitoring setup
Team Collaboration: Enhanced team workflow integration
WebSocket Support: Real-time updates and notifications
Bulk Operations: Mass operations across collections
AI-Powered Testing: Intelligent test generation and validation
๐ Why Choose Postman MCP Server?
โก Speed
Transform hours of manual API work into seconds of AI conversation
๐ฏ Precision
AI understands your exact API structure and requirements
๐ Integration
Seamless sync between AI workflows and team collaboration
๐ก๏ธ Reliability
Enterprise-grade error handling and security practices
๐ Scalability
From prototype to production, scales with your needs
๐ Support & Community
๐ Issues: GitHub Issues
๐ฌ Discussions: GitHub Discussions
๐ง Email: Support
๐ฆ Twitter: @PostmanMCP
๐ License
MIT License - see LICENSE file for details.
๐ Acknowledgments
Postman Team - For the incredible API platform
Model Context Protocol - For the revolutionary AI integration standard
Open Source Community - For continuous inspiration and contributions
Ready to revolutionize your API workflow?
npm install -g postman-mcp-serverโญ Star this repo if it helps you build better APIs faster!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ankit-roy-0602/postman-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server