postman tool generation.com
postman tool generation.com logo

Postman Tool Generation

Integrates with Postman Tool Generation API to convert API collections into type-safe code for AI frameworks, enabling r...

Created byApr 23, 2025

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.
<a href="https://www.producthunt.com/posts/mcp-server-for-postman-ai-tool-generator?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-mcp&#0045;server&#0045;for&#0045;postman&#0045;ai&#0045;tool&#0045;generator" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=824239&theme=dark&t=1737988039824" alt="MCP&#0032;Server&#0032;for&#0032;Postman&#0032;AI&#0032;Tool&#0032;Generator - Convert&#0032;Postman&#0032;APIs&#0032;into&#0032;type&#0045;safe&#0032;AI&#0032;tools&#0032;seamlessly&#0046; | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
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
<a href="https://glama.ai/mcp/servers/36hxinm405"><img width="380" height="200" src="https://glama.ai/mcp/servers/36hxinm405/badge" alt="Postman Tool Generation Server MCP server" /></a>

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

Setup

  1. Install dependencies:
  1. Build the server:
  1. Configure the MCP settings by adding the following to your Claude settings file (cline_mcp_settings.json):

Usage

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

Example

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:
  1. Make changes to src/index.ts
  1. Build the server:
  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

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.
<a href="https://www.producthunt.com/posts/mcp-server-for-postman-ai-tool-generator?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-mcp&#0045;server&#0045;for&#0045;postman&#0045;ai&#0045;tool&#0045;generator" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=824239&theme=dark&t=1737988039824" alt="MCP&#0032;Server&#0032;for&#0032;Postman&#0032;AI&#0032;Tool&#0032;Generator - Convert&#0032;Postman&#0032;APIs&#0032;into&#0032;type&#0045;safe&#0032;AI&#0032;tools&#0032;seamlessly&#0046; | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
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
<a href="https://glama.ai/mcp/servers/36hxinm405"><img width="380" height="200" src="https://glama.ai/mcp/servers/36hxinm405/badge" alt="Postman Tool Generation Server MCP server" /></a>

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

Setup

  1. Install dependencies:
  1. Build the server:
  1. Configure the MCP settings by adding the following to your Claude settings file (cline_mcp_settings.json):

Usage

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

Example

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:
  1. Make changes to src/index.ts
  1. Build the server:
  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