Add the MCP Server to Claude Code
Explore the Postman MCP Server on GitHub: https://github.com/postmanlabs/postman-mcp-server
Run the following command in your terminal to register the Postman MCP Server with Claude Code:
claude mcp add --transport http postman https://mcp.postman.com/mcp --header "Authorization: Bearer <YOUR_API_KEY>"
Expected mcp.json configuration:
{
"mcpServers": {
"postman_mcp_server": {
"url": "https://mcp.postman.com/mcp",
"headers": {
"Authorization": "Bearer PMAK-YOUR-KEY-HERE"
}
}
}
}
Verify the Connection
Use claude mcp list in your terminal or /mcp in Claude to list your registered MCP servers.
Claude Prompt:
List all my Postman workspaces.
You should receive a list of your Postman workspaces. If so, everything is configured correctly.
Add Tests via the MCP Server
Use the MCP server to locate your workshop workspace ID and then add tests to the collection.
Get the workspace ID:
Claude Prompt:
Get the workspace ID for "[WORKSHOP-WORKSPACE-NAME]".
Add tests to the collection:
Claude Prompt:
Using the Postman MCP server, add tests to [workshop collection name]. For each request: 1. Add a status code check (200 OK) 2. Validate the response has a 'success' property set to true
Run the tests:
Claude Prompt:
Run the "[workshop collection name]" collection and show me the test results.