Postman API Testing
Key Tools (Minimal Mode - 40 tools)
- Workspace: createWorkspace, getWorkspace, getWorkspaces
- Collection: createCollection, getCollection, putCollection, createCollectionRequest, runCollection
- Environment: createEnvironment, getEnvironment, getEnvironments
- Mock: createMock, getMock, publishMock
- Spec: createSpec, getSpec, generateCollection, syncCollectionWithSpec
- Testing: runCollection
Common Workflows
Project Setup
- Create workspace
- Create collection with schema
- Create environment (local/staging/prod)
- Save IDs to .postman.json
Generate from OpenAPI
- Create spec with OpenAPI definition
- Generate collection from spec
- Sync collection with spec on changes
Automated Testing
- Get workspaces and collections
- Run collection with environment
- Review results and fix errors
Best Practices
- Store workspace/collection/environment IDs in
.postman.json - Use environment variables for different contexts
- Add post-request test scripts for validation
- Run collections before deployment
- Ensure API server is running before tests
MCP Server Config
{
"mcpServers": {
"postman": {
"url": "https://mcp.postman.com/minimal",
"headers": {
"Authorization": "Bearer $POSTMAN_API_KEY"
}
}
}
}
Change URL to https://mcp.postman.com/full for 112 tools.