| name | postman-mcp-server |
| description | Connect AI agents to Postman APIs for workspace management, collection operations, environment handling, and code generation |
| triggers | ["help me manage my Postman collections","generate client code from my API definition","create a new Postman workspace","test my API using Postman","update my Postman environment variables","sync my code with Postman collections","create a spec from my API","search for public APIs in Postman"] |
Postman MCP Server
Skill by ara.so — MCP Skills collection.
The Postman MCP Server connects AI tools to Postman, enabling agents to access workspaces, manage collections and environments, evaluate APIs, and automate workflows through natural language. It supports three configurations: Minimal (essential operations), Full (100+ tools), and Code (API definition search and client code generation).
Installation
Remote Server (Recommended)
The remote server is hosted by Postman and requires no local setup. It supports OAuth (US region) or API key authentication.
US Server: https://mcp.postman.com
EU Server: https://mcp.eu.postman.com (API key only)
Claude Code Installation
OAuth (US only):
claude mcp add --transport http postman https://mcp.postman.com/minimal
claude mcp add --transport http postman https://mcp.postman.com/code
claude mcp add --transport http postman https://mcp.postman.com/mcp
API Key (required for EU):
claude mcp add --transport http postman https://mcp.postman.com/minimal \
--header "Authorization: Bearer ${POSTMAN_API_KEY}"
VS Code Installation
Add to .vscode/mcp.json:
OAuth:
{
"servers": {
"postman": {
"type": "http",
"url": "https://mcp.postman.com/minimal"
}
}
}
API Key:
{
"servers": {
"postman": {
"type": "http",
"url": "https://mcp.postman.com/minimal",
"headers": {
"Authorization": "Bearer ${input:postman-api-key}"
}
}
},
"inputs": [
{
"id": "postman-api-key",
"type": "promptString",
"description": "Enter your Postman API key"
}
]
}
Cursor Installation
Click the install button or manually configure mcp.json:
{
"url": "https://mcp.postman.com/minimal",
"headers": {
"Authorization": "Bearer ${POSTMAN_API_KEY}"
}
}
Local Server
The local server runs on your machine, enabling access to local APIs and providing more control.
NPM Installation
npm install -g @postman/postman-mcp-server
npx @postman/postman-mcp-server
Claude Code (Local)
claude mcp add postman npx @postman/postman-mcp-server \
--apiKey ${POSTMAN_API_KEY} \
--toolset minimal
Toolset options: minimal, code, full
Region flag (EU):
claude mcp add postman npx @postman/postman-mcp-server \
--apiKey ${POSTMAN_API_KEY} \
--region eu
VS Code (Local)
Add to .vscode/mcp.json:
{
"servers": {
"postman": {
"type": "stdio",
"command": "npx",
"args": [
"@postman/postman-mcp-server",
"--apiKey",
"${env:POSTMAN_API_KEY}",
"--toolset",
"minimal"
]
}
}
}
Docker
docker run -e POSTMAN_API_KEY=${POSTMAN_API_KEY} \
postman/postman-mcp-server:latest \
--toolset minimal
Authentication
Getting a Postman API Key
- Navigate to Postman API Keys
- Click "Generate API Key"
- Copy the key and store it securely
- Set environment variable:
export POSTMAN_API_KEY=your_key_here
OAuth Setup (US Remote Server Only)
OAuth is automatically configured when using the US remote server without headers. The MCP host will handle authentication flow when tools are first accessed.
Core Capabilities
1. Workspace Management
Create a workspace:
{
"tool": "create_workspace",
"arguments": {
"name": "Mobile API",
"type": "team",
"description": "APIs for mobile app"
}
}
List workspaces:
{
"tool": "get_all_workspaces",
"arguments": {}
}
Get workspace details:
{
"tool": "get_workspace",
"arguments": {
"workspaceId": "12345"
}
}
2. Collection Operations
Create a collection:
{
"tool": "create_collection",
"arguments": {
"workspaceId": "workspace-123",
"name": "User API",
"description": "User management endpoints"
}
}
Add a request to collection:
{
"tool": "create_request",
"arguments": {
"collectionId": "collection-456",
"name": "Get Users",
"method": "GET",
"url": "https://api.example.com/users",
"description": "Retrieve all users"
}
}
Update collection documentation:
{
"tool": "update_collection",
"arguments": {
"collectionId": "collection-456",
"collection": {
"info": {
"description": "# User API\n\nComplete user management API with CRUD operations."
}
}
}
}
Tag a collection:
{
"tool": "tag_collection",
"arguments": {
"collectionId": "collection-456",
"tags": ["production", "v2"]
}
}
3. Environment Management
Create environment:
{
"tool": "create_environment",
"arguments": {
"workspaceId": "workspace-123",
"name": "Development",
"values": [
{
"key": "baseUrl",
"value": "https://dev.api.example.com",
"type": "default"
},
{
"key": "apiKey",
"value": "",
"type": "secret"
}
]
}
}
Update environment variables:
{
"tool": "update_environment",
"arguments": {
"environmentId": "env-789",
"environment": {
"values": [
{
"key": "baseUrl",
"value": "https://api.example.com",
"type": "default"
}
]
}
}
}
4. API Testing
Run a collection:
{
"tool": "run_collection",
"arguments": {
"collectionId": "collection-456",
"environmentId": "env-789"
}
}
Send a single request:
{
"tool": "send_request",
"arguments": {
"method": "POST",
"url": "{{baseUrl}}/users",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer {{apiKey}}"
},
"body": {
"mode": "raw",
"raw": JSON.stringify({
"name": "John Doe",
"email": "john@example.com"
})
}
}
}
5. Code Generation
The Code toolset enables searching API definitions and generating production-ready client code.
Search public APIs:
{
"tool": "search_public_apis",
"arguments": {
"query": "payment processing",
"limit": 10
}
}
Generate client code from API definition:
{
"tool": "generate_client_code",
"arguments": {
"apiId": "stripe-api-123",
"language": "typescript",
"framework": "axios",
"options": {
"includeTypes": true,
"includeExamples": true
}
}
}
Generate code from collection:
{
"tool": "generate_code_from_collection",
"arguments": {
"collectionId": "collection-456",
"language": "python",
"variant": "requests"
}
}
6. API Specifications
Create spec from OpenAPI:
{
"tool": "create_api_spec",
"arguments": {
"workspaceId": "workspace-123",
"name": "User API Spec",
"schema": {
"type": "openapi",
"content": "... OpenAPI YAML/JSON ..."
}
}
}
Generate collection from spec:
{
"tool": "generate_collection_from_spec",
"arguments": {
"apiId": "api-spec-123",
"name": "Generated User API Collection"
}
}
Common Patterns
Pattern 1: API-First Development Workflow
Pattern 2: Environment Variable Management
{
"tool": "create_environment",
"arguments": {
"workspaceId": "${WORKSPACE_ID}",
"name": "Production",
"values": [
{ "key": "baseUrl", "value": "https://api.example.com", "type": "default" },
{ "key": "apiKey", "value": "", "type": "secret" },
{ "key": "timeout", "value": "30000", "type": "default" }
]
}
}
Pattern 3: Automated Testing Pipeline
Pattern 4: Multi-Collection Code Sync
Pattern 5: Local API Testing
{
"tool": "send_request",
"arguments": {
"method": "GET",
"url": "http://localhost:3000/api/health"
}
}
Configuration
Toolset Selection
Choose the appropriate toolset for your use case:
- minimal: Fast, essential operations (collections, workspaces, environments)
- code: API search and client code generation
- full: All 100+ Postman API tools (enterprise features, collaboration)
Region Configuration
For EU data residency:
Remote server:
https://mcp.eu.postman.com/minimal
https://mcp.eu.postman.com/code
https://mcp.eu.postman.com/mcp
Local server:
npx @postman/postman-mcp-server \
--apiKey ${POSTMAN_API_KEY} \
--region eu
Or set environment variable:
export POSTMAN_API_BASE_URL=https://api.eu.postman.com
Troubleshooting
Authentication Issues
OAuth not working:
- OAuth only supported on US remote server (
mcp.postman.com)
- EU server requires API key authentication
- Ensure MCP host supports OAuth specification
API key errors:
echo ${POSTMAN_API_KEY}
"Authorization": "Bearer ${POSTMAN_API_KEY}"
"Authorization": "${POSTMAN_API_KEY}"
Local Server Issues
Server not starting:
node --version
npm install -g @postman/postman-mcp-server
npx @postman/postman-mcp-server --apiKey ${POSTMAN_API_KEY} --verbose
Cannot access local APIs:
- Remote server cannot reach localhost/private networks
- Use local server for testing local APIs
- Ensure firewall allows localhost connections
Tool Execution Errors
"Tool not found" errors:
- Verify correct toolset is configured (minimal/code/full)
- Minimal toolset doesn't include all 100+ tools
- Switch to full toolset if needed:
--toolset full
Collection/workspace not found:
Rate limiting:
- Postman API has rate limits
- Batch operations when possible
- Add delays between requests for large operations
Environment Variable Issues
Variables not resolving:
- Use double curly braces:
{{variableName}}
- Ensure environment is selected when running requests
- Check variable scope (environment vs. global vs. collection)
Secret variables not accessible:
- Secret-type variables are write-only via API
- Cannot retrieve secret values programmatically
- Set secrets manually in Postman UI if needed
Code Generation Issues
Generated code doesn't match API:
- Ensure API definition is up-to-date
- Regenerate collection from spec if needed
- Verify example responses are included in spec
Import errors in generated code:
- Check language/framework compatibility
- Verify project structure matches generated organization
- Update package dependencies for generated code
Migration from v1.x to v2.x
Breaking changes:
-
Configuration format changed:
{ "apiKey": "...", "workspace": "..." }
{ "apiKey": "...", "toolset": "minimal" }
-
Tool names updated:
-
OAuth support added:
- US remote server now supports OAuth
- Recommended over API key for better security
-
Toolset concept introduced:
- Choose minimal/code/full based on needs
- Default is minimal (was full in v1.x)
Advanced Usage
Custom Request Execution
{
"tool": "send_request",
"arguments": {
"method": "POST",
"url": "{{baseUrl}}/auth/token",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"body": {
"mode": "urlencoded",
"urlencoded": [
{ "key": "grant_type", "value": "client_credentials" },
{ "key": "client_id", "value": "{{clientId}}" },
{ "key": "client_secret", "value": "{{clientSecret}}" }
]
}
}
}
Bulk Operations
Collaboration Features (Full Toolset)
Resources