Run a Postman collection using Newman
Validate a Postman collection format
The Postman Collection Runner MCP allows you to execute Postman collections and tests directly through the Model Context Protocol. It leverages Newman, Postman's command-line collection runner, to provide a seamless way to validate APIs, run automated tests, and integrate API testing into your AI workflows.
This MCP server enables you to run Postman collections using Newman, providing a powerful way to test APIs and automate API workflows directly from your AI assistant.
To use the Postman Collection Runner MCP, you'll need to add it to your MCP client configuration:
npm install -g mcp-postman
npx mcp-postman
The MCP server accepts Postman collections in JSON format and can run them with optional environment variables. You can use it to:
Here's an example of how to use the MCP to run a Postman collection:
The MCP server supports several configuration options:
If you encounter issues: