- Explore MCP Servers
- mcp-server-postman-tool-generation
Mcp Server Postman Tool Generation
What is Mcp Server Postman Tool Generation
The mcp-server-postman-tool-generation is an MCP server that generates AI agent tools from Postman collections and requests. It integrates with the Postman API to convert API endpoints into type-safe code compatible with various AI frameworks.
Use cases
Use cases for this server include creating AI tools for specific API requests in Postman, generating code for various AI frameworks, and automating API interactions using natural language commands.
How to use
To use the mcp-server-postman-tool-generation, install the dependencies, build the server, and configure the MCP settings with your Postman API key. You can then call the ‘generate_ai_tool’ function with the required parameters to generate type-safe code.
Key features
Key features include generating TypeScript/JavaScript code from Postman collections, support for multiple AI frameworks (OpenAI, Mistral, Gemini, Anthropic, LangChain, AutoGen), type-safe code generation, and comprehensive error handling.
Where to use
undefined
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Server Postman Tool Generation
The mcp-server-postman-tool-generation is an MCP server that generates AI agent tools from Postman collections and requests. It integrates with the Postman API to convert API endpoints into type-safe code compatible with various AI frameworks.
Use cases
Use cases for this server include creating AI tools for specific API requests in Postman, generating code for various AI frameworks, and automating API interactions using natural language commands.
How to use
To use the mcp-server-postman-tool-generation, install the dependencies, build the server, and configure the MCP settings with your Postman API key. You can then call the ‘generate_ai_tool’ function with the required parameters to generate type-safe code.
Key features
Key features include generating TypeScript/JavaScript code from Postman collections, support for multiple AI frameworks (OpenAI, Mistral, Gemini, Anthropic, LangChain, AutoGen), type-safe code generation, and comprehensive error handling.
Where to use
undefined
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
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
Demo
Setup
- Install dependencies:
npm install
- Build the server:
npm run build
- 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
- Install dependencies:
npm install
-
Make changes to
src/index.ts -
Build the server:
npm run build
- 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
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










