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

With the Postman VS Code extension, you can 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. An API key is generated 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 iconMCP icon Add / Update Postman MCP.
  2. Click Add MCP in the in-app notification.

An API key is generated for your user account. If the API key isn’t generated for you, learn how to manually generate an API key.

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

Manually generate an API key

If the API key isn’t generated when you set up the Postman MCP server, you can create one instead.

  1. Click MCP iconMCP 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 Return or Enter.

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 iconMCP icon Add / Update Postman MCP.
  3. Click Update API Key in the in-app notification.
  4. Enter your new Postman API key then press Return or Enter.

Last modified: 2025/12/10