Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-server-postman-tool-generation

MCP.Pizza Chef: giovannicocco

The MCP Server for Postman Tool Generation converts Postman API collections and requests into type-safe AI agent tools. It integrates directly with the Postman API to transform API endpoints into usable code compatible with various AI frameworks, enabling developers to automate and streamline AI tool creation from existing API definitions.

Use This MCP server To

Convert Postman API collections into AI agent tools Generate type-safe code from API endpoints for AI frameworks Automate AI tool creation from existing Postman requests Integrate Postman APIs with AI workflows seamlessly Enable AI agents to interact with APIs via generated tools

README

Postman Tool Generation MCP Server

An MCP server that generates AI agent tools from Postman collections and requests. This server integrates with the Postman API to convert API endpoints into type-safe code that can be used with various AI frameworks.

MCP Server for Postman AI Tool Generator - Convert Postman APIs into type-safe AI tools seamlessly. | Product Hunt

Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Postman Tool Generation API.

This lets you use Claude Desktop, or any MCP Client like Cline, to use natural language to accomplish things on your Postman account, e.g.:

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

Postman Tool Generation Server MCP server

Features

  • Generate TypeScript/JavaScript code from Postman collections
  • Support for multiple AI frameworks (OpenAI, Mistral, Gemini, Anthropic, LangChain, AutoGen)
  • Type-safe code generation
  • Error handling and response validation

Demo

Demonstrating the newly-released MCP server to explore Postman Tool Generation API

Setup

  1. Install dependencies:
npm install
  1. Build the server:
npm run build
  1. Configure the MCP settings by adding the following to your Claude settings file (cline_mcp_settings.json):
{
  "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": []
    }
  }
}

Usage

The server provides a single tool called generate_ai_tool with the following parameters:

{
  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
}

Example

// 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"
  }
});

Generated Code

The tool generates type-safe code that includes:

  • Type definitions for request/response
  • Error handling
  • API integration
  • OpenAI function definitions
  • Documentation and examples

Development

  1. Install dependencies:
npm install
  1. Make changes to src/index.ts

  2. Build the server:

npm run build
  1. Restart the Claude app to load the updated server

Environment Variables

  • POSTMAN_API_KEY: Your Postman API key (required)

Error Handling

The server includes comprehensive error handling for:

  • Invalid parameters
  • API failures
  • JSON parsing errors
  • Network issues

Error responses include detailed messages to help diagnose issues.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

mcp-server-postman-tool-generation FAQ

How does this MCP server generate AI tools from Postman collections?
It connects to the Postman API, parses collections and requests, then converts them into type-safe code usable by AI frameworks.
Can this server handle all types of Postman requests?
Yes, it supports various HTTP methods and request types defined in Postman collections.
Is the generated code compatible with multiple AI frameworks?
Yes, the server produces type-safe code designed to integrate with various AI frameworks.
How do I integrate this MCP server into my existing AI workflow?
You connect your AI client to this MCP server to fetch generated tools from your Postman collections for use in AI agents.
Does this server require authentication with Postman?
Yes, it requires access credentials to connect securely to your Postman API workspace.
Can I customize the generated tools or code?
Customization options depend on the server implementation, but typically you can configure generation parameters.
What benefits does this server provide over manual API tool coding?
It automates tool generation, reduces errors, and ensures type safety, speeding up AI integration with APIs.
Is this MCP server open source or commercially supported?
Check the project repository or product page for licensing and support details.