How to use the Postman MCP Server with Claude Code
Quick Overview
The video demonstrates how to use the Postman Model Content Protocol (MCP) Server with Claude Code to generate client-side code for a banking API, which involves connecting to the local Postman MCP server, using CLI commands to list available servers, and then generating TypeScript code for the API endpoints after updating the collection within Postman.
Key Points: The tutorial guides users on integrating Claude Code with the Postman MCP Server to automatically generate client-side code for an existing banking API. The process requires running to start the local banking API server, which serves as the backend for Postman. The presenter uses the CLI command to discover the Postman MCP server running locally, which is connected to the user's Postman account. After implementing new account CRUD endpoints in the code (e.g., Get Single Account, Update Account, Delete Account), Claude is prompted to update the Postman collection. Claude successfully updates the Postman collection schema and prompts the user to confirm the workspace for the update. The final step involves using the command to create client-side TypeScript code based on the updated API collection structure, including generated mock server URLs for testing. The generated code includes full TypeScript support, error handling for common HTTP status codes (401, 403, 404, 400), and comprehensive documentation.
Context: The video features Gbadebo Bello, a Developer Relations Engineer, demonstrating an advanced integration between Postman's Model Content Protocol (MCP) server functionality and Claude Code within a development environment (VS Code). The goal is to streamline the process of keeping Postman API collections synchronized with backend code changes, specifically using a sample 'Intergalactic Bank API' as the demonstration project.
Detailed Analysis
Gbadebo Bello demonstrates how to leverage Claude Code's integration with the Postman MCP Server to keep Postman collections updated automatically whenever API code changes are made. The demonstration starts by ensuring the local banking API server is running via . The presenter then uses the CLI command within Claude Code to find the local Postman MCP server instance, which is connected to the user's Postman account via a local network connection. After manually implementing missing CRUD endpoints for account management (Get Single Account, Update Account, Delete Account) in the local code files (like ), Claude prompts the user about updating the Postman collection to reflect these changes. Upon confirmation ('Yes'), Claude updates the collection structure. Subsequently, the presenter uses the command, prompting Claude to generate client-side TypeScript code for the entire collection, including the new endpoints, demonstrating how this tool manages the synchronization between local development and the Postman API definition.