Postman Tool Generation MCP Server
This server converts Postman collections and requests into type-safe AI agent tools. It:
Generates TypeScript/JavaScript code from Postman collections
Creates tools compatible with multiple AI frameworks (OpenAI, Mistral, Gemini, Anthropic, LangChain, AutoGen)
Produces type-safe code with error handling and response validation
Integrates with Postman API to create AI agent tools
Provides comprehensive type definitions, API integration logic, and documentation in the generated code
Supports JavaScript code generation for AI tools created from Postman collections, including API integration and error handling.
Generates LangChain-compatible tool implementations from Postman API collections, enabling integration with the LangChain framework.
Creates OpenAI-compatible function definitions and tool implementations from Postman API collections, with proper error handling and response validation.
Enables generation of AI agent tools from Postman collections and requests, converting API endpoints into type-safe code for various AI frameworks.
Provides TypeScript code generation for AI tools, with proper type definitions for request/response objects and error handling.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Postman Tool Generation MCP Server create an AI tool from collection 12345-abcde request 67890-fghij in typescript for openai"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
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
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
Related MCP server: Postman MCP Generator
Demo
Setup
Install dependencies:
npm installBuild the server:
npm run buildConfigure 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
Install dependencies:
npm installMake changes to
src/index.tsBuild the server:
npm run buildRestart 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
Available Tools
1 toolgenerate_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
Scored across 1 tool
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.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against for patterns or conventions.
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.
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
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAutomatically 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
- AlicenseNot gradedqualityDmaintenanceGenerates 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
- AlicenseNot gradedqualityDmaintenanceAn 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
- AlicenseBqualityCmaintenanceA 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.1927 npm31MIT