Skip to main content
Glama

Postman Tool Generation MCP Server

Postman工具生成MCP服务器

一个 MCP 服务器,用于根据 Postman 集合和请求生成 AI 代理工具。该服务器与 Postman API 集成,可将 API 端点转换为可与各种 AI 框架一起使用的类型安全代码。

模型上下文协议 (MCP) 是一种新的标准化协议,用于管理大型语言模型 (LLM) 与外部系统之间的上下文。在此存储库中,我们提供了Postman 工具生成 API的安装程序和 MCP 服务器。

这使您可以使用Claude Desktop或任何 MCP 客户端(如Cline )使用自然语言在您的 Postman 帐户上完成操作,例如:

  • Create an AI tool for: collectionID: 12345-abcde requestID: 67890-fghij typescript openai

特征

  • 从 Postman 集合生成 TypeScript/JavaScript 代码
  • 支持多种AI框架(OpenAI、Mistral、Gemini、Anthropic、LangChain、AutoGen)
  • 类型安全的代码生成
  • 错误处理和响应验证

演示

设置

  1. 安装依赖项:
npm install
  1. 构建服务器:
npm run build
  1. 通过将以下内容添加到 Claude 设置文件 ( cline_mcp_settings.json ) 来配置 MCP 设置:
{ "mcpServers": { "postman-ai-tools": { "command": "node", "args": [ "/path/to/postman-tool-generation-server/build/index.js" ], "env": { "POSTMAN_API_KEY": "your-postman-api-key" }, "disabled": false, "autoApprove": [] } } }

用法

服务器提供了一个名为generate_ai_tool的工具,其参数如下:

{ collectionId: string; // The Public API Network collection ID requestId: string; // The public request ID language: "javascript" | "typescript"; // Programming language to use agentFramework: "openai" | "mistral" | "gemini" | "anthropic" | "langchain" | "autogen"; // AI framework }

例子

// Using the tool through MCP const result = await use_mcp_tool({ server_name: "postman-ai-tools", tool_name: "generate_ai_tool", arguments: { collectionId: "your-collection-id", requestId: "your-request-id", language: "typescript", agentFramework: "openai" } });

生成的代码

该工具生成类型安全的代码,包括:

  • 请求/响应的类型定义
  • 错误处理
  • API 集成
  • OpenAI 函数定义
  • 文档和示例

发展

  1. 安装依赖项:
npm install
  1. 修改src/index.ts
  2. 构建服务器:
npm run build
  1. 重新启动 Claude 应用程序以加载更新的服务器

环境变量

  • POSTMAN_API_KEY :您的 Postman API 密钥(必需)

错误处理

该服务器包括针对以下方面的全面错误处理:

  • 参数无效
  • API 故障
  • JSON 解析错误
  • 网络问题

错误响应包括详细信息以帮助诊断问题。

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

MIT 许可证

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

一个 MCP 服务器,用于根据 Postman 集合和请求生成 AI 代理工具。该服务器与 Postman API 集成,可将 API 端点转换为可与各种 AI 框架一起使用的类型安全代码。

  1. 特征
    1. 演示
      1. 设置
        1. 用法
          1. 例子
          2. 生成的代码
        2. 发展
          1. 环境变量
            1. 错误处理
              1. 贡献
                1. 执照

                  Related MCP Servers

                  • A
                    security
                    F
                    license
                    A
                    quality
                    An MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.
                    Last updated -
                    11
                    61
                    TypeScript
                    • Linux
                    • Apple
                  • A
                    security
                    F
                    license
                    A
                    quality
                    An MCP-compatible server that exposes automated API tools to MCP clients like Claude Desktop or Postman, allowing AI assistants to interact with your selected APIs.
                    Last updated -
                    3
                    JavaScript
                  • A
                    security
                    F
                    license
                    A
                    quality
                    MCP server that enables human-in-the-loop workflow in AI-assisted development tools by allowing users to provide direct feedback to AI agents without consuming additional premium requests.
                    Last updated -
                    1
                    1
                    Python
                    • Linux
                    • Apple
                  • A
                    security
                    F
                    license
                    A
                    quality
                    An MCP server that enhances AI agents' coding capabilities by providing zero hallucinations, improved code quality, security-first approach, high test coverage, and efficient context management.
                    Last updated -
                    15
                    24
                    1
                    TypeScript

                  View all related MCP servers

                  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/giovannicocco/mcp-server-postman-tool-generation'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server