Skip to main content

postman-mcp-server

Connect AI agents to Postman APIs for workspace management, collection operations, environment handling, and code generation

跳到安装

来源信息

仓库
reason-machines/mcp-skills
最近来源活动
2026年5月18日 21:30
检测到的 SKILL.md 语言
英语
星标
7
分支
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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](https://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):** ```bash # Minimal (default) claude mcp add --transport http postman https://mcp.postman.com/minimal # Code generation claude mcp add --transport http postman https://mcp.postman.com/code # Full (100+ tools) claude mcp add --transport http postman https://mcp.postman.com/mcp ``` **API Key (required for EU):** ```bash 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:** ```json { "servers": { "postman": { "type": "http", "url": "https://mcp.postman.com/minimal" } } } ``` **API Key:** ```json { "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](https://cursor.com/en/install-mcp?name=postman_mcp_server&config=eyJ1cmwiOiJodHRwczovL21jcC5wb3N0bWFuLmNvbS9taW5pbWFsIiwiaGVhZGVycyI6eyJBdXRob3JpemF0aW9uIjoiQmVhcmVyIFlPVVJfQVBJX0tFWSJ9fQ%3D%3D) or manually configure `mcp.json`: ```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 ```bash # Install globally npm install -g @postman/postman-mcp-server # Or use with npx npx @postman/postman-mcp-server ``` #### Claude Code (Local) ```bash claude mcp add postman npx @postman/postman-mcp-server \ --apiKey ${POSTMAN_API_KEY} \ --toolset minimal ``` **Toolset options:** `minimal`, `code`, `full` **Region flag (EU):** ```bash claude mcp add postman npx @postman/postman-mcp-server \ --apiKey ${POSTMAN_API_KEY} \ --region eu ``` #### VS Code (Local) Add to `.vscode/mcp.json`: ```json { "servers": { "postman": { "type": "stdio", "command": "npx", "args": [ "@postman/postman-mcp-server", "--apiKey", "${env:POSTMAN_API_KEY}", "--toolset", "minimal" ] } } } ``` #### Docker ```bash docker run -e POSTMAN_API_KEY=${POSTMAN_API_KEY} \ postman/postman-mcp-server:latest \ --toolset minimal ``` ## Authentication ### Getting a Postman API Key 1. Navigate to [Postman API Keys](https://postman.postman.co/settings/me/api-keys) 2. Click "Generate API Key" 3. Copy the key and store it securely 4. 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:** ```typescript // Via natural language to AI agent: // "Create a new team workspace called 'Mobile API' with description 'APIs for mobile app'" // The agent calls: { "tool": "create_workspace", "arguments": { "name": "Mobile API", "type": "team", "description": "APIs for mobile app" } } ``` **List workspaces:** ```typescript // "Show me all my workspaces" { "tool": "get_all_workspaces", "arguments": {} } ``` **Get workspace details:** ```typescript // "Get details about workspace 12345" { "tool": "get_workspace", "arguments": { "workspaceId": "12345" } } ``` ### 2. Collection Operations **Create a collection:** ```typescript // "Create a new collection named 'User API' in my workspace" { "tool": "create_collection", "arguments": { "workspaceId": "workspace-123", "name": "User API", "description": "User management endpoints" } } ``` **Add a request to collection:** ```typescript // "Add a GET request to /users endpoint in my User API 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:** ```typescript // "Update the documentation for my User API collection" { "tool": "update_collection", "arguments": { "collectionId": "collection-456", "collection": { "info": { "description": "# User API\n\nComplete user management API with CRUD operations." } } } } ``` **Tag a collection:** ```typescript // "Tag my collection with 'production' and 'v2'" { "tool": "tag_collection", "arguments": { "collectionId": "collection-456", "tags": ["production", "v2"] } } ``` ### 3. Environment Management **Create environment:** ```typescript // "Create a development environment with base URL" { "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:** ```typescript // "Update the baseUrl in my production environment" { "tool": "update_environment", "arguments": { "environmentId": "env-789", "environment": { "values": [ { "key": "baseUrl", "value": "https://api.example.com", "type": "default" } ] } } } ``` ### 4. API Testing **Run a collection:** ```typescript // "Test my User API collection in the development environment" { "tool": "run_collection", "arguments": { "collectionId": "collection-456", "environmentId": "env-789" } } ``` **Send a single request:** ```typescript // "Send a POST request to create a user" { "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:** ```typescript // "Find payment processing APIs" { "tool": "search_public_apis", "arguments": { "query": "payment processing", "limit": 10 } } ``` **Generate client code from API definition:** ```typescript // "Generate TypeScript client code for the Stripe API" { "tool": "generate_client_code", "arguments": { "apiId": "stripe-api-123", "language": "typescript", "framework": "axios", "options": { "includeTypes": true, "includeExamples": true } } } ``` **Generate code from collection:** ```typescript // "Create a Python client from my User API collection" { "tool": "generate_code_from_collection", "arguments": { "collectionId": "collection-456", "language": "python", "variant": "requests" } } ``` ### 6. API Specifications **Create spec from OpenAPI:** ```typescript // "Import my OpenAPI spec into Postman" { "tool": "create_api_spec", "arguments": { "workspaceId": "workspace-123", "name": "User API Spec", "schema": { "type": "openapi", "content": "... OpenAPI YAML/JSON ..." } } } ``` **Generate collection from spec:** ```typescript // "Generate a collection from my API spec" { "tool": "generate_collection_from_spec", "arguments": { "apiId": "api-spec-123", "name": "Generated User API Collection" } } ``` ## Common Patterns ### Pattern 1: API-First Development Workflow ```typescript // 1. Create workspace // "Create a workspace for my new project" // 2. Import OpenAPI spec // "Import my OpenAPI spec for the Product API" // 3. Generate collection // "Generate a collection from the Product API spec" // 4. Create environments // "Create dev, staging, and prod environments"
在 GitHub 查看
这个 SKILL.md 很大,SkillsMP 这里只预览前一段内容。 在 GitHub 查看