Overview
The Postman Tool Generation MCP Server is a server that generates AI agent tools from Postman collections and requests, integrating with the Postman API to convert API endpoints into type-safe code for various AI frameworks.
To use the server, install the dependencies, build the server, and configure the MCP settings. You can then use the generate_ai_tool function to create AI tools from your Postman collections.
- Generates TypeScript/JavaScript code from Postman collections. - Supports multiple AI frameworks (OpenAI, Mistral, Gemini, Anthropic, LangChain, AutoGen). - Provides type-safe code generation with error handling and response validation.
- Creating AI tools for API endpoints in Postman.
- Automating the generation of type-safe code for various AI frameworks.
- Simplifying the integration of APIs with AI models.
Add to your AI client
Use these steps to connect Postman Tool Generation MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"giovannicocco-mcp-server-postman-tool-generation-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-giovannicocco-mcp-server-postman-tool-generation-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"giovannicocco-mcp-server-postman-tool-generation-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-giovannicocco-mcp-server-postman-tool-generation-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"giovannicocco-mcp-server-postman-tool-generation-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-giovannicocco-mcp-server-postman-tool-generation-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"giovannicocco-mcp-server-postman-tool-generation-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-giovannicocco-mcp-server-postman-tool-generation-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"giovannicocco-mcp-server-postman-tool-generation-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-giovannicocco-mcp-server-postman-tool-generation-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"giovannicocco-mcp-server-postman-tool-generation-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-giovannicocco-mcp-server-postman-tool-generation-mcp-mirror"
]
}
}
}FAQ
Can I use this server with any Postman collection?
Yes! The server can generate tools from any valid Postman collection.
Is there support for multiple programming languages?
Yes! The server supports both TypeScript and JavaScript.
How do I handle errors during tool generation?
The server includes comprehensive error handling for invalid parameters, API failures, and network issues.