# Using Postman MCP Server with Gemini CLI for API Workflows

Source: https://www.youtube.com/watch?v=VoUikLjE3M4
Recap page: https://rapidrecap.app/video/VoUikLjE3M4
Generated: 2026-01-22T22:03:25.838+00:00

---
## Quick Overview

The video demonstrates a complete workflow for using the Gemini CLI with the Postman MCP (Monitor, Collection, and Project) Server extension to analyze existing code, generate a Postman collection, add tests to that collection, and set up monitoring, all through command-line interactions.

**Key Points:**
- The Postman MCP Server extension for Gemini CLI was installed using the command: 'gemini extensions install https://github.com/postmanlabs/postman-mcp-server' (0:46).
- API key configuration for the Postman MCP Server extension can be done by exporting the environment variable POSTMAN_API_KEY or setting it in the extension's .env file (1:05-1:16).
- The Gemini CLI was used to analyze a sample 'server.js' file, which generated a 'Planets API Collection' in the specified Postman workspace (2:54-3:02).
- Tests were added to the newly created Postman collection using the command: 'gemini postman mcp server add tests to the "Planets API Collection"' (3:42-3:49).
- The generated tests included status code checks (200 OK), validation of a 'success' property, verification of a 'data' array for GET /planets, and checking for specific properties like 'distanceFromSun' and 'diameter' for individual planet requests (3:44).
- Monitoring support was added to the collection to run hourly and send notifications on test failures by invoking the Postman MCP Server (4:30-4:47).
- Finally, Gemini generated a new React application structure based on the Postman collection structure, including necessary service files and components (6:03-7:06).

![Screenshot at 0:14: The initial terminal view showing the Gemini CLI interface and the command being issued to list active extensions, confirming the setup environment before integrating Postman tools.](https://ss.rapidrecap.app/screens/VoUikLjE3M4/00-00-14.jpg)

**Context:** Quinton Wall, Head of Developer Relations at Postman, demonstrates how to leverage the Gemini CLI in conjunction with the Postman MCP Server extension to automate API workflow tasks. This process starts with integrating the extension, then uses it to analyze existing server code (a sample 'server.js' file), automatically generating a Postman Collection, adding automated tests to it, and finally setting up a monitor for continuous testing and failure notifications.

## Detailed Analysis

The video tutorial details integrating the Postman MCP Server extension into the Gemini CLI environment to streamline API development workflows. The process begins with installing the extension via the Gemini CLI command line (0:46). The speaker then shows how to configure necessary credentials, either via environment variables or an .env file, to connect to the Postman service (1:05). The core demonstration involves using Gemini to analyze a provided Node.js server file ('server.js') which defines several API endpoints related to planets. Gemini successfully reads the code and uses the Postman MCP Server to create a 'Planets API Collection' within a specified Postman workspace (2:54). Following creation, the speaker uses another Gemini command to automatically add comprehensive tests to every endpoint in the new collection, including status code checks, success property validation, and data structure verification (3:42). The final step showcases adding monitoring support via the MCP Server, setting up an hourly monitor on the 'Planets API Collection' to send failure notifications (4:30). The demonstration concludes by using Gemini to generate a new React application structure based on the analyzed API collection, including necessary files like 'planetsApi.js' and application components (6:03).

### Installation and Configuration

- Installing the Postman MCP Server extension via Gemini CLI ('gemini extensions install ...')
- Setting the POSTMAN_API_KEY environment variable or in the .env file
- Confirming installation via '/extensions list' (0:46-1:16)

### Code Analysis and Collection Generation

- Using the 'gemini' prompt to run 'getWorkspaces' to list existing Postman workspaces
- Using 'createCollection (postman MCP Server)' to analyze 'server.js' and create the 'Planets API Collection' in the target workspace (2:24-3:02)

### Adding Tests to Collection

- Using the command to add tests to the collection, ensuring status code checks (200 OK), success validation, data array checks, and verifying specific planet properties like 'distanceFromSun' and 'diameter' (3:42-4:27)

### Adding Monitoring Support

- Using 'createMonitor (postman MCP Server)' to set up an hourly running monitor on the collection that sends failure notifications (4:30-5:33)

### Generating Application from Collection

- Using a final prompt to instruct Gemini to create a new React application based on the structure and endpoints defined in the Postman collection (6:03-7:31)

![Screenshot at 0:09: The screen displays the Google Gemini logo, introducing the AI tool being used in the demonstration.](https://ss.rapidrecap.app/screens/VoUikLjE3M4/00-00-09.jpg)
![Screenshot at 0:14: The terminal displays the Gemini CLI interface, showing the command '/extensions list' being executed to check currently installed extensions, which currently includes 'postman' \(v0.1.0\).](https://ss.rapidrecap.app/screens/VoUikLjE3M4/00-00-14.jpg)
![Screenshot at 0:46: Step 1: Install step is highlighted in the terminal where the command 'gemini extensions install https://github.com/postmanlabs/postman-mcp-server' is being entered to add the Postman functionality.](https://ss.rapidrecap.app/screens/VoUikLjE3M4/00-00-46.jpg)
![Screenshot at 2:44: The terminal shows the output after retrieving workspaces, indicating the presence of the 'Planets API Collection' that Gemini intends to analyze.](https://ss.rapidrecap.app/screens/VoUikLjE3M4/00-02-44.jpg)
![Screenshot at 6:21: The VS Code Explorer pane shows the newly generated 'planets-app' directory structure, created by Gemini based on the Postman collection analysis.](https://ss.rapidrecap.app/screens/VoUikLjE3M4/00-06-21.jpg)
