SP

salehkhatri/postman-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

31 stars 3 forks 质量 70 趋势 0MIT

一个模型上下文协议(MCP)服务器,提供与 Postman API 的无缝集成。该软件包使 AI 助手和应用程序能够与 Postman 的工作区、集合交互,...

概览

一台与 Postman API 无缝集成的服务器。该软件包使 AI 助手和应用程序能够通过程序与 Postman 的工作区、集合、请求、环境和文件夹交互。 - 列出所有工作区 - 获取详细工作区信息 - 创建新工作区(个人/团队) - 更新工作区元数据 - 在工作区内列出集合 - 获取包含完整结构的集合详细信息 - 创建新集合 - 更新集合元数据和变量 - 删除集合 - 向集合添加新的 HTTP 请求 - 更新现有请求(方法、URL、头部、正文)- 在文件夹间移动请求 - 删除请求 - 支持所有 HTTP 方法(GET、POST、PUT、PATCH、DELETE、HEAD、OPTIONS) - 在工作区中列出环境 - 获取环境细节和变量 - 创建带变量的新环境 - 更新环境变量 - 删除环境 - 支持秘密变量、默认变量和自定义变量类型 - 创建嵌套文件夹......

概述(AI 翻译)

一个**模型上下文协议(MCP)**服务器,提供与Postman API的无缝集成。该软件包使AI助手和应用程序能够通过程序与Postman的工作区、集合、请求、环境和文件夹交互。

🚀 特色

📁 工作区管理

  • 列出所有工作区
  • 获取详细的工作区信息
  • 创建新工作区(个人/团队)
  • 更新工作区元数据

📚 藏品管理

  • 在工作区内列出集合
  • 获取完整结构的收藏详情
  • 创建新收藏
  • 更新集合元数据和变量
  • 删除集合

🔧 请求管理

  • 向集合添加新的 HTTP 请求
  • 更新现有请求(方法、URL、头部、正文)
  • 文件夹间的移动请求
  • 删除请求
  • 支持所有HTTP方法(GET、POST、PUT、PATCH、DELETE、HEAD、OPTIONS)

🌍 环境管理

  • 工作区中的列表环境
  • 获取环境细节和变量
  • 创建带有变量的新环境
  • 更新环境变量
  • 删除环境
  • 支持秘密变量、默认变量和自定义变量类型

📂 文件夹组织

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Postman MCP

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.

🚀 Features

📁 Workspace Management

  • List all workspaces
  • Get detailed workspace information
  • Create new workspaces (personal/team)
  • Update workspace metadata

📚 Collection Management

  • List collections within workspaces
  • Get collection details with full structure
  • Create new collections
  • Update collection metadata and variables
  • Delete collections

🔧 Request Management

  • Add new HTTP requests to collections
  • Update existing requests (method, URL, headers, body)
  • Move requests between folders
  • Delete requests
  • Support for all HTTP methods (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS)

🌍 Environment Management

  • List environments in workspaces
  • Get environment details and variables
  • Create new environments with variables
  • Update environment variables
  • Delete environments
  • Support for secret, default, and custom variable types

📂 Folder Organization

  • Create nested folder structures
  • Organize requests within folders
  • Support for hierarchical folder paths

⚙️ Setup

1. Get Your Postman API Key

  1. Go to Postman Account Settings
  2. Click “Generate API Key”
  3. Give it a name and copy the generated key

2. MCP Configuration

For Claude Desktop

Add to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "postman": {
      "command": "npx",
      "args": ["postman-mcp"],
      "env": {
        "POSTMAN_API_KEY": "your_postman_api_key_here"
      }
    }
  }
}

For Cursor

Add the configuration to your Cursor settings:

{
  "mcp": {
    "servers": {
      "postman": {
        "command": "npx postman-mcp",
        "env": {
          "POSTMAN_API_KEY": "your_postman_api_key_here"
        }
      }
    }
  }
}

For Warp

Add the following to your Warp session setup:

{
  "postman": {
    "command": "npx",
    "args": ["postman-mcp"],
    "env": {
      "POSTMAN_API_KEY": "your_postman_api_key_here"
    },
    "working_directory": null,
    "start_on_launch": true
  }
}

For Other MCP Clients

Use the standard MCP server connection with:

  • Command: npx postman-mcp or node path/to/postman-mcp/dist/index.js
  • Transport: stdio
  • Environment: Set POSTMAN_API_KEY

🛠️ Development Setup

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Postman API key

Local Development

  1. Clone the repository:

在 GitHub 查看完整 README

安装

npx postman-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "postman": { "command": "npx", "args": ["postman-mcp"], "env": { "POSTMAN_API_KEY": "your_postman_api_key_here" } } } }