mcp-postman-runner
Allows execution of Postman collections and folders, running requests, evaluating pm.test assertions, and returning structured results.
Click on "Install 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., "@mcp-postman-runnerrun folder for ticket PROJ-123"
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.
mcp-postman-runner
Run the requests in a Postman collection folder — and get structured, assertion-level results back — straight from your AI assistant.
A Model Context Protocol (MCP) server that executes a
folder of a Postman collection: it resolves {{variables}}, runs the collection + item
pre-request scripts (so token-auth patterns work), fires each request, and evaluates the
embedded pm.test scripts — then returns status, timing, body, and per-assertion pass/fail.
It replicates only the slice of newman needed for agent-driven API testing, with no runtime dependencies beyond the MCP SDK and zod.
🎯 Why use this
The Postman connector/API can create requests but can't run them. This server is the execution engine in a Jira → Postman → assess → comment workflow:
Jira ticket ─► derive test cases ─► create a Postman folder (named = ticket key) with pm.test scripts
─► run_folder (this MCP) ─► assess responses ─► comment results on the ticketSupported AI assistants
Any MCP client — Claude Desktop, Claude Cowork, GitHub Copilot (VS Code), Cursor, Windsurf, etc.
Related MCP server: Postman MCP Server
✨ Features
Folder execution — run every request in a folder, in order, sharing variables across the run.
Auth that just works — collection/item pre-request scripts run (incl.
pm.sendRequest), so a token fetched once flows to the rest of the folder.Assertion evaluation — the embedded
pm.testscripts run via a minimalpm/expectsandbox; you get deterministic pass/fail per assertion.Structured output — status, time, response body (truncated), and assertion details for each request, ready for an agent to assess.
Credential-less — holds no secrets; the caller passes the collection/environment JSON.
Zero runtime deps — only
@modelcontextprotocol/sdkandzod.
📋 Prerequisites
Node.js >= 18 (uses the global
fetch).Network access from wherever this runs to the API under test.
A Postman collection (and optional environment) JSON — typically fetched via the Postman API/connector.
🚀 Quick start
Add to your MCP client config:
{
"mcpServers": {
"postman-runner": {
"command": "npx",
"args": ["-y", "mcp-postman-runner@latest"]
}
}
}npx fetches and caches the package on first launch. CLI help: npx -y mcp-postman-runner@latest --help.
🛠️ Tools
Tool | Purpose | Key arguments |
| List folders in a collection (name, id, path, request count) |
|
| Run every request in a folder; return results + assertions |
|
| Run a single named request (re-run one case) |
|
All tools take the collection JSON (the collection object from the Postman API /
connector's getCollection), and optionally an environment JSON.
run_folder / run_request result
{
"summary": { "totalRequests": 9, "requestsErrored": 0, "assertionsTotal": 24, "assertionsFailed": 4, "anyFailure": true },
"results": [
{
"name": "TC-01 Happy path", "method": "GET",
"url": "https://api-dev.example.net/maxxton/v2/countries/states/cities",
"status": 200, "statusText": "OK", "timeMs": 142,
"assertionsPassed": 3, "assertionsFailed": 0,
"assertions": [ { "name": "status is 200", "passed": true, "error": null } ],
"responseBody": "{ … }" // truncated at 20k chars
}
]
}🔬 How it works
Variables — merges collection variables + environment values; resolves
{{var}}(nested, iteratively).Auth / pre-request — runs the collection-level then item-level pre-request scripts.
pm.sendRequestis supported, so the common "POST the auth URL, store the token, reuse it" pattern works; the token is cached in the run's variables.Request — builds the URL/headers/method, fires it with
fetch(per-request timeout).Assertions — runs the request's
testscript through apm/expectsandbox and records eachpm.testresult.
Supported pm subset
pm.test, pm.expect (eql/equal/deep, true/false/null, have.property,
at.most/least, above/below, within, include, oneOf, a/an, match, empty,
negation via .not), pm.response.code/.json()/.text(), pm.environment & pm.variables
get/set, and pm.sendRequest. See ARCHITECTURE.md for details.
🔒 Security
Credential-less by design; secrets in the passed environment are kept in memory for one run and
never logged. Only run collections you trust — their pre-request/pm.test scripts execute in
the server process. See SECURITY.md.
🤝 Contributing
See CONTRIBUTING.md. Uses Conventional Commits + semantic-release.
📜 License
🔗 Links
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tezaswiraj7222/mcp-postman-runner'
If you have feedback or need assistance with the MCP directory API, please join our Discord server