Use AI agents with the Postman API from the Postman VS Code extension

With the Postman VS Code extension, you can automatically integrate the Postman Model Context Protocol (MCP) server with your AI agent in VS Code. This enables you to manage your Postman resources, like workspaces and collections, with your agent using the Postman API. This integration uses the streamable HTTP Postman MCP server with the minimal tool configuration mode, which includes only essential tools for basic Postman operations.

You can also manually integrate the Postman MCP server with VS Code.

Create the Postman MCP server integration

To get started, integrate the Postman MCP server with your AI agent in VS Code. Provide your Postman API key to authenticate with Postman, giving your AI agent permission to manage your Postman resources with the Postman API. Learn about using AI agents in VS Code.

To integrate the Postman MCP server with VS Code, do the following:

  1. Click MCP icon Add / Update Postman MCP.

  2. Click Add MCP in the in-app notification.

  3. Choose one of the following in the in-app notification:

    • Click Generate API Key to open Postman and create a Postman API key.
    • Click I already have a key if you already have a Postman API key you'd like to use.
  4. Enter your Postman API key then press Enter.

Learn about tips and best practices for using the Postman MCP server.

Update your Postman API key

Update the Postman API key you're using to authenticate with Postman. Make sure to delete Postman API keys you're no longer using.

To update your Postman API key, do the following:

  1. Create a new Postman API key.
  2. Click MCP icon Add / Update Postman MCP.
  3. Click Update API Key in the in-app notification.
  4. Enter your new Postman API key then press Enter.

Last modified: 2025/08/22