Skip to main content
Glama
Postman Tool Generation MCP Server

Postman Tool Generation MCP Server

Postmanツール生成MCPサーバー

PostmanのコレクションとリクエストからAIエージェントツールを生成するMCPサーバー。このサーバーはPostman APIと統合し、APIエンドポイントを様々なAIフレームワークで使用できる型安全なコードに変換します。

モデルコンテキストプロトコル(MCP)は、大規模言語モデル(LLM)と外部システム間のコンテキストを管理するための新しい標準化プロトコルです。このリポジトリでは、 Postmanツール生成API用のインストーラーとMCPサーバーを提供します。

これにより、 Claude DesktopやClineなどの MCP クライアントを使用して、自然言語で Postman アカウントで操作を実行できるようになります。例:

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

特徴

  • Postman コレクションから TypeScript/JavaScript コードを生成する

  • 複数の AI フレームワーク (OpenAI、Mistral、Gemini、Anthropic、LangChain、AutoGen) のサポート

  • 型安全なコード生成

  • エラー処理と応答検証

Related MCP server: Postman MCP Generator

デモ

設定

  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解析エラー

  • ネットワークの問題

エラー応答には、問題の診断に役立つ詳細なメッセージが含まれます。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

MITライセンス

Available Tools

1 tool
generate_ai_toolB

Generate code for an AI agent tool using a Postman collection and request

Inputs: collectionId (required), requestId (required), language (required), agentFramework (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap with other tools. The tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare it against for patterns or conventions.

    Tool Count2/5

    One tool is too few for the server's stated purpose of 'Postman Tool Generation,' which implies a broader scope like generating, managing, or testing tools. A single generation tool feels thin and incomplete for this domain.

    Completeness2/5

    The tool surface is severely incomplete for the inferred domain of Postman-based tool generation. There are obvious gaps, such as no tools for listing, editing, deleting, or testing generated tools, which limits agent workflows to a single action.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Automatically converts Postman API collections into MCP-compatible tools for AI assistants. Enables users to interact with any API through natural language by generating JavaScript tools from Postman requests.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Generates MCP servers from Postman API requests, automatically creating JavaScript tools that enable LLMs to interact with any API documented in Postman collections. Supports authentication configuration and deployment via STDIO or SSE.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that converts Postman API requests into executable tools for LLMs using the Postman Runtime. It supports complex authentication types and enables seamless integration between Postman collections and MCP clients like Claude Desktop.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      A Model Context Protocol (MCP) server that provides seamless integration with the Postman API, enabling AI assistants and applications to interact with Postman workspaces, collections, requests, environments, and folders programmatically.
      19
      27 npm
      31
      MIT