Integrations
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.
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:
- Build the server:
- 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
- Install dependencies:
- Make changes to
src/index.ts
- Build the server:
- 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
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
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.
Related Resources
Related MCP Servers
- -securityAlicense-qualityAn MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.Last updated -1PythonApache 2.0
- -security-license-qualityA specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.Last updated -311TypeScript
- AsecurityFlicenseAqualityAn MCP server that allows AI assistants to interact with the ServiceTitan API, requiring client credentials for authentication.Last updated -454TypeScript
Notion MCP Serverofficial
AsecurityAlicenseAqualityAn MCP server that enables AI assistants to interact with the Notion API, allowing them to search, read, comment on, and create content in Notion workspaces through natural language commands.Last updated -195,6171,472TypeScriptMIT License