With the Postman API MCP server, you empower AI agents (such as Cursor, Claude, or VS Code) to manage your Postman resources. You can request complex workflows and API interactions, and let the AI take care of the heavy lifting. This document covers some useful tips for working with agents and prompts you can use to get started with the Postman API MCP server.
AI agents can make mistakes, so when using agents with the Postman API MCP server, follow these best practices:
The following examples use VS Code's GitHub Copilot.
The following provide examples of useful prompts you can use to work with and manage your Postman elements:
In this use case, the user wants to update an environment variable’s value.
Prompt: Change the value of my Postman environment variable "baseUrl" in the "Local" environment to use http://localhost:8001
.
Response: After passing the prompt, the agent returns the following response, confirming the variable change:
In this example, the user is working on a back end Django REST Framework API and wants to keep it in sync with Postman.
Prompt: This repository contains a Django REST Framework API. We’ve implemented a CRUD API for a resource called "Customer". We already have a Postman workspace called "Customers". I want you to:
Response: The agent confirms that it created the API specification and its related collection:
In this example, the user updated their Postman Collection and wants to update its documentation to match the changes they've made.
Prompt: Update my collection "Customer API Collection" information to: "CRUD operations on the customers table. These endpoints require authentication and permissions on the Customer table."
Response: Here, the agent used the PATCH /collection/{collectionId}
endpoint. It was able to fetch all the collections, then get the specific collection by name:
This example assumes the user is working with a Django REST Framework app. They're also an employee of an API design-first company, and want to make the changes in Postman's Spec Hub. The back end developers will then use the specification to implement the changes.
Prompt: I’ve updated the Postman Spec called "Customer API" and I’ve added some new fields to the Customer resources. Analyze the changes in the spec (retrieve it from Postman using the Postman API MCP server you have access to) and reflect them in the Django code (model and serializer).
Response: The agent performs several requests to get the workspace, then the list of specifications, and gets the specific spec. After analyzing the spec and model, the agent makes the proper changes in the code:
Last modified: 2025/07/10