Postman MCP Server
v2.15.0Give your AI agents trusted access to the full Postman platform.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
createCollection Create a collection
Creates a collection using the [Postman Collection v2.1.0 schema format](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html). **Note:** If you do not include the \`workspace\` query parameter, the system creates the collection in the oldest personal Internal workspace you own.
createCollectionRequest Create a collection request
Creates a request in a collection. For a complete list of properties, refer to the **Request** entry in the [Postman Collection Format documentation](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html). **Note:** It is recommended that you pass the \`name\` property in the request body. If you do not, the system uses a null value. As a result, this creates a request with a blank name.
createCollectionResponse Create a collection response
Creates a request response in a collection. For a complete list of request body properties, refer to the **Response** entry in the [Postman Collection Format documentation](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html). **Note:** It is recommended that you pass the \`name\` property in the request body. If you do not, the system uses a null value. As a result, this creates a response with a blank name.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | The collection's ID. |
request * | string | The parent request's ID. |
cookies | string | null | The response's cookie data. |
dataMode | string | The associated request body's data mode. |
dataOptions | Additional options for the associated request body data. | |
description | string | null | The response's description. |
headers | array | The response's headers. |
language | string | The response body's language type. |
method | string | The associated request's HTTP method. |
mime | string | null | The response's MIME type. |
name | string | The response's name. It is recommended that you pass the `name` property in the request body. If you do not, the system uses a null value. As a result, this creates a response with a blank name. |
rawDataType | string | null | The response's raw data type. |
rawModeData | string | null | The associated request body's raw mode data. |
requestObject | string | A JSON-stringified representation of the associated request. |
responseCode | object | The response's HTTP response code information. |
status | string | null | The response's HTTP status text. |
text | string | The raw text of the response body. |
time | string | The time taken by the request to complete, in milliseconds. |
url | string | null | The associated request's URL. |
createEnvironment Create an environment
Creates an environment. **Note:** - The request body size cannot exceed the maximum allowed size of 30MB. - If you receive an HTTP \`411 Length Required\` error response, manually pass the \`Content-Length\` header and its value in the request header. - If you do not include the \`workspace\` query parameter, the system creates the environment in the oldest personal Internal workspace you own. - Only [shared variable](https://learning.postman.com/docs/use/send-requests/variables/variables/#share-variable-values) values can be modified through the Postman API. A shared variable is an environm…
| Parameter | Type | Description |
|---|---|---|
workspace * | string | The workspace's ID. |
environment | object | Information about the environment. |
createMock Create a mock server (provide collection UID)
Creates a mock server in a collection. - Pass the collection UID (ownerId-collectionId), not the bare collection ID. - If you only have a \`collectionId\`, resolve the UID first: 1) Prefer GET \`/collections/{collectionId}\` and read \`uid\`, or 2) Construct \`{ownerId}-{collectionId}\` using ownerId from GET \`/me\`: - For team-owned collections: \`ownerId = me.teamId\` - For personal collections: \`ownerId = me.user.id\` - Use the \`workspace\` query to place the mock in a specific workspace. Prefer explicit workspace scoping.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | The workspace's ID. |
mock | object | Information about the mock server to create. |
createSpec Create a spec
Creates an API specification in Postman's [Spec Hub](https://learning.postman.com/docs/design-apis/specifications/overview/). Specifications can be single or multi-file. **Note:** - Postman supports OpenAPI (2.0, 3.0, and 3.1), AsyncAPI (2.0 and 3.0), protobuf (2 and 3), GraphQL, and Smithy specifications. - If the file path contains a \`/\` (forward slash) character, then a folder is created. For example, if the path is the \`components/schemas.json\` value, then a \`components\` folder is created with the \`schemas.json\` file inside. - Multi-file specifications can only have one root file.…
| Parameter | Type | Description |
|---|---|---|
files * | array | A list of the specification's files and their contents. |
name * | string | The specification's name. |
type * | string | The type of API specification. |
workspaceId * | string | The workspace's ID. |
createSpecFile Create a spec file
Creates a file for an OpenAPI or a protobuf 2 or 3 specification. **Note:** - If the file path contains a \`/\` (forward slash) character, then a folder is created. For example, if the path is the \`components/schemas.json\` value, then a \`components\` folder is created with the \`schemas.json\` file inside. - Creating a spec file assigns it the \`DEFAULT\` file type. - Multi-file specifications can only have one root file. - Files cannot exceed a maximum of 10 MB in size.
| Parameter | Type | Description |
|---|---|---|
content * | string | The file's stringified contents. |
path * | string | The file's path. Accepts JSON or YAML files. |
specId * | string | The spec's ID. |
createWorkspace Create a workspace
Creates a new [workspace](https://learning.postman.com/docs/collaborating-in-postman/using-workspaces/creating-workspaces/). **Note:** - This endpoint returns a 403 \`Forbidden\` response if the user does not have permission to create workspaces. [Admins and Super Admins](https://learning.postman.com/docs/collaborating-in-postman/roles-and-permissions/#team-roles) can configure workspace permissions to restrict users and/or user groups from creating workspaces or require approvals for the creation of team workspaces. - Private and [Partner Workspaces](https://learning.postman.com/docs/collab…
| Parameter | Type | Description |
|---|---|---|
workspace | object | Information about the workspace. |
duplicateCollection Duplicate a collection
Creates a duplicate of the given collection in another workspace. Use the GET \`/collection-duplicate-tasks/{taskId}\` endpoint to get the duplication task's current status.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | The collection's unique ID. |
workspace * | string | The workspace ID in which to duplicate the collection. |
suffix | string | An optional suffix to append to the duplicated collection's name. |
generateCollection Generate a collection from spec
Creates a collection from the given API specification. The specification must already exist or be created before it can be used to generate a collection. The response contains a polling link to the task status.
| Parameter | Type | Description |
|---|---|---|
elementType * | string | The `collection` element type. |
name * | string | The generated collection's name. |
options * | object | The advanced creation options and their values. For more details, see Postman's [OpenAPI to Postman Collection Converter OPTIONS documentation](https://github.com/postmanlabs/openapi-to-postman/blob/d… |
specId * | string | The spec's ID. |
generateSpecFromCollection Generate spec from collection
Generates an OpenAPI 2.0, 3.0, or 3.1 specification for the given collection. The response contains a polling link to the task status.
| Parameter | Type | Description |
|---|---|---|
collectionUid * | string | The collection's unique ID. |
elementType * | string | The `spec` value. |
format * | string | The format of the API specification. |
name * | string | The API specification's name. |
type * | string | The specification's type. |
getAllSpecs Get all specs
Gets all API specifications in a workspace.
| Parameter | Type | Description |
|---|---|---|
workspaceId * | string | The workspace's ID. |
cursor | string | The pointer to the first record of the set of paginated results. To view the next response, use the `nextCursor` value for this parameter. |
limit | integer | The maximum number of rows to return in the response. |
getAuthenticatedUser Get authenticated user (current user context)
Gets information about the authenticated user. - This endpoint provides “current user” context (\`user.id\`, \`username\`, \`teamId\`, roles). - When a user asks for “my …” (e.g., “my workspaces, my information, etc.”), call this first to resolve the user ID.
getCollection Get a collection (map by default)
Get information about a collection. By default this tool returns the lightweight collection map (metadata + recursive itemRefs). Use the model parameter to opt in to Postman's full API responses: - model=minimal — root-level folder/request IDs only - model=full — full Postman collection payload.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | The collection ID must be in the form <OWNER_ID>-<UUID> (e.g. 12345-33823532ab9e41c9b6fd12d0fd459b8b). |
access_key | string | A collection's read-only access key. Using this query parameter does not require an API key to call the endpoint. |
model | string | Optional response shape override. Omit to receive the lightweight collection map. Set to `minimal` for the Postman minimal model or `full` for the complete collection payload. |
getCollections Get all collections
The workspace ID query is required for this endpoint. If not provided, the LLM should ask the user to provide it.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | The workspace's ID. |
limit | integer | The maximum number of rows to return in the response. |
name | string | Filter results by collections whose name exactly matches the given value. Partial or substring matches are not supported. |
offset | integer | The zero-based offset of the first item to return. |
getDuplicateCollectionTaskStatus Get status of a collection duplication task
Gets the status of a collection duplication task.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | The task's unique ID. |
getEnabledTools Get enabled tools
IMPORTANT: Run this tool first when a requested tool is unavailable. Returns information about which tools are enabled in the full and minimal tool sets, helping you identify available alternatives.
getEnvironment Get an environment
Gets information about an environment.
| Parameter | Type | Description |
|---|---|---|
environmentId * | string | The environment's ID. |
getEnvironments Get all environments
Gets information about all of your [environments](https://learning.postman.com/docs/sending-requests/managing-environments/).
| Parameter | Type | Description |
|---|---|---|
workspace | string | The workspace's ID. |
getGeneratedCollectionSpecs Get a collection's generated specs
Gets the API specification generated for the given collection.
| Parameter | Type | Description |
|---|---|---|
collectionUid * | string | The collection's unique ID. |
elementType * | string | The `spec` value. |
getMock Get a mock server
Gets information about a mock server. - Resource: Mock server entity. Response includes the associated \`collection\` UID and \`mockUrl\`. - Use the \`collection\` UID to navigate back to the source collection.
| Parameter | Type | Description |
|---|---|---|
mockId * | string | The mock's ID. |
getMocks Get mock servers (filter by workspace or team)
Gets all active mock servers. By default, returns only mock servers you created across all workspaces. - Always pass either the \`workspace\` or \`teamId\` query to scope results. Prefer \`workspace\` when known. - If you need team-scoped results, set \`teamId\` from the current user: call GET \`/me\` and use \`me.teamId\`. - If both \`teamId\` and \`workspace\` are passed, only \`workspace\` is used.
| Parameter | Type | Description |
|---|---|---|
teamId | string | Return only results that belong to the given team ID. - For team-scoped requests, set this from GET `/me` (`me.teamId`). |
workspace | string | Return only results found in the given workspace ID. - Prefer this parameter when the user mentions a specific workspace. |
getSpec Get a spec
Gets information about an API specification.
| Parameter | Type | Description |
|---|---|---|
specId * | string | The spec's ID. |
getSpecCollections Get a spec's generated collections
Gets all of an API specification's generated collections.
| Parameter | Type | Description |
|---|---|---|
elementType * | string | The `collection` element type. |
specId * | string | The spec's ID. |
cursor | string | The pointer to the first record of the set of paginated results. To view the next response, use the `nextCursor` value for this parameter. |
limit | integer | The maximum number of rows to return in the response. |
getSpecDefinition Get a spec's definition
Gets the complete contents of an OpenAPI or AsyncAPI specification's definition.
| Parameter | Type | Description |
|---|---|---|
specId * | string | The spec's ID. |
getSpecFile Get a spec file
Gets the contents of an API specification's file.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | The path to the file. |
specId * | string | The spec's ID. |
getSpecFiles Get a spec's files
Gets all the files in an API specification.
| Parameter | Type | Description |
|---|---|---|
specId * | string | The spec's ID. |
getTaggedEntities Get elements by tag
**Requires an Enterprise plan.** Tagging is only available on Postman Enterprise plans. This tool returns a 404 error on Free, Basic, and Professional accounts. Gets Postman elements (entities) by a given tag. Tags enable you to organize and search workspaces, APIs, and collections that contain shared tags.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The tag's ID within a team or individual (non-team) user scope. |
cursor | string | The cursor to get the next set of results in the paginated response. If you pass an invalid value, the API only returns the first set of results. |
direction | string | The ascending (`asc`) or descending (`desc`) order to sort the results by, based on the time of the entity's tagging. |
entityType | string | Filter results for the given entity type. |
limit | integer | The maximum number of tagged elements to return in a single call. |
getWorkspace Get a workspace
Gets information about a workspace. **Note:** This endpoint's response contains the \`visibility\` field. [Visibility](https://learning.postman.com/docs/collaborating-in-postman/using-workspaces/managing-workspaces/#changing-workspace-visibility) determines who can access the workspace: - \`personal\` — Only you can access the workspace. - \`team\` — All team members can access the workspace. - \`private\` — Only invited team members can access the workspace ([**Team** and **Enterprise** plans only](https://www.postman.com/pricing)). - \`public\` — Everyone can access the workspace.…
| Parameter | Type | Description |
|---|---|---|
workspaceId * | string | The workspace's ID. |
include | string | A comma-separated list of values to include in the endpoint's response: - `scim` — Return the SCIM user IDs of the workspace creator and who last modified it. - `team` — Return the workspace's tea… |
getWorkspaces Get workspaces (filtered and user-scoped)
Gets all workspaces you have access to. - For “my …” requests, first call GET \`/me\` and pass \`createdBy={me.user.id}\`. - This endpoint's response contains the visibility field. Visibility determines who can access the workspace: - \`personal\` — Only you can access the workspace. - \`team\` — All team members can access the workspace. - \`private\` — Only invited team members can access the workspace (Professional and Enterprise). - \`public\` — Everyone can access the workspace. - \`partner\` — Invited team members and partners (Professional and Enterprise). - Fo…
| Parameter | Type | Description |
|---|---|---|
createdBy | integer | Return only workspaces created by the specified Postman user ID. - For “my …” requests, set `createdBy` to the current user’s ID from GET `/me` (`me.user.id`). - If the user's ID is not known,… |
cursor | string | The cursor to get the next set of results in a paginated response. Get this value from the `meta.nextCursor` field in the previous response. |
elementId | string | Filter results to return the workspace where the given element's ID is located. When filtering by collection, you must use the collection's unique ID (`userId`-`collection`). If you pass this query pa… |
elementType | string | Filter results to return the workspace where the given element type is located. If you pass this query parameter, you must also pass the `elementId` query parameter. |
include | string | Include the following information in the endpoint's response: - `mocks:deactivated` — Include all deactivated mock servers in the response. - `scim` — Return the SCIM user IDs of the workspace cre… |
limit | integer | The maximum number of workspaces to return per page. Defaults to 100. |
type | string | The type of workspace to filter the response by. One of: `personal`, `team`, `private`, `public`, `partner`. - For “my …” requests, this can be combined with `createdBy`. If type is not specifie… |
publishMock Publish a mock server
Publishes a mock server. Publishing a mock server sets its **Access Control** configuration setting to public.
| Parameter | Type | Description |
|---|---|---|
mockId * | string | The mock's ID. |
putCollection Replace a collection's data
Replaces the contents of a collection using the [Postman Collection v2.1.0 schema format](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html). Include the collection's ID values in the request body. If you do not, the endpoint removes the existing items and creates new items. - To perform an update asynchronously, use the \`Prefer\` header with the \`respond-async\` value. When performing an async update, this endpoint returns a HTTP \`202 Accepted\` response. - For a complete list of properties and information, see the [Postman Collection Format documentation](https:/…
putEnvironment Replace an environment's data
Replaces all the contents of an environment with the given information. **Note:** - The request body size cannot exceed the maximum allowed size of 30MB. - If you receive an HTTP \`411 Length Required\` error response, manually pass the \`Content-Length\` header and its value in the request header. - Only [shared variable](https://learning.postman.com/docs/use/send-requests/variables/variables/#share-variable-values) values can be modified through the Postman API. A shared variable is an environment variable with its value synced and stored in the Postman cloud, and can be accessed by your t…
| Parameter | Type | Description |
|---|---|---|
environmentId * | string | The environment's ID. |
environment | object | Information about the environment. |
runCollection Run a collection
Runs a Postman collection by ID with detailed test results and execution statistics. Supports optional environment for variable substitution. Note: Advanced parameters like custom delays and other runtime options are not yet available.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | The collection ID in the format <OWNER_ID>-<UUID> (e.g. 12345-33823532ab9e41c9b6fd12d0fd459b8b). |
abortOnError | boolean | Abruptly halt on errors (default: false) |
abortOnFailure | boolean | Abruptly halt on test failures (default: false) |
environmentId | string | Optional environment ID to use for variable substitution during the run. |
iterationCount | number | Number of iterations to run (default: 1) |
requestTimeout | number | Request timeout in milliseconds (default: 60000) |
scriptTimeout | number | Script timeout in milliseconds (default: 5000) |
stopOnError | boolean | Gracefully halt on errors (default: false) |
stopOnFailure | boolean | Gracefully halt on test failures (default: false) |
searchPostmanElements Search Postman elements
Search for Postman entities (requests, collections, workspaces, specs, flows, environments, mocks, and documents). **Ownership:** - `organization` — Search within all resources owned by your organization (default). - `external` — Search within the public Postman network (third-party and community APIs). - `all` — Search across all scopes. **When to use each ownership value and filters:** | Goal | Recommended approach | |------|----------------------| | Find an internal API (e.g. "our notification service") | `ownership: organization` | | Find a trusted API published to the Private Net…
| Parameter | Type | Description |
|---|---|---|
cursor | string | The cursor to get the next set of results in the paginated response. Pass the `nextCursor` value from the previous response. |
entityType | string | The type of Postman entity to search for: `requests` (individual API requests), `collections` (API collections), `workspaces` (Postman workspaces), `specs` (API specifications), `flows` (Postman Flows… |
filters | object | Structured filter expression. Top-level key must be "$and" with an array of condition objects. Each condition: { "<field>": { "<operator>": <value> } }. Example: {"$and":[{"privateNetwork":{"$eq":true… |
limit | integer | The maximum number of search results to return. Maximum: 25. |
ownership | string | The ownership scope. Use `organization` to search all resources in your organization (default), `external` to search the public Postman network, or `all` to search across all scopes. |
q | string | The search query (e.g. "payment API", "notification service", "Stripe"). |
syncCollectionWithSpec Sync collection with spec
Syncs a collection generated from an API specification. This is an asynchronous endpoint that returns an HTTP \`202 Accepted\` response. **Note:** - This endpoint only supports the OpenAPI 2.0, 3.0, and 3.1 specification types. - You can only sync collections generated from the given spec ID.
| Parameter | Type | Description |
|---|---|---|
collectionUid * | string | The collection's unique ID. |
specId * | string | The spec's ID. |
syncSpecWithCollection Sync spec with collection
Syncs an API specification linked to a collection. This is an asynchronous endpoint that returns an HTTP \`202 Accepted\` response. **Note:** - This endpoint only supports the OpenAPI 2.0, 3.0, and 3.1 specification types. - You can only sync collections generated from the given specification ID.
| Parameter | Type | Description |
|---|---|---|
collectionUid * | string | The collection's unique ID. |
specId * | string | The spec's ID. |
updateCollectionRequest Update a collection request
Updates a request in a collection. For a complete list of properties, refer to the **Request** entry in the [Postman Collection Format documentation](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html). **Note:** - You must pass a collection ID (\`12ece9e1-2abf-4edc-8e34-de66e74114d2\`), not a collection(\`12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2\`), in this endpoint. - This endpoint does not support changing the folder of a request. - This endpoint acts like a PATCH method. It only updates the values that you pass in the request body. - **Events (\`events\`).**…
updateMock Update a mock server
Updates a mock server. - Resource: Mock server entity associated with a collection UID. - Use this to change name, environment, privacy, or default server response. - To activate a server response, set \`config.serverResponseId\` to the server response's \`id\`. Pass \`null\` to deactivate.
| Parameter | Type | Description |
|---|---|---|
mockId * | string | The mock's ID. |
mock | object | The mock server fields to update. |
updateSpecFile Update a spec file
Updates a file for an OpenAPI or protobuf 2 or 3 specification. **Note:** - This endpoint does not accept an empty request body. You must pass one of the accepted values. - This endpoint does not accept multiple request body properties in a single call. For example, you cannot pass both the \`content\` and \`type\` property at the same time. - Multi-file specifications can only have one root file. - When updating a file type to \`ROOT\`, the previous root file is updated to the \`DEFAULT\` file type. - Files cannot exceed a maximum of 10 MB in size.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | The path to the file. |
specId * | string | The spec's ID. |
content | string | The specification's stringified contents. |
name | string | The file's name. |
type | string | The type of file: - `ROOT` — The file containing the full OpenAPI structure. This serves as the entry point for the API spec and references other (`DEFAULT`) spec files. Multi-file specs can only ha… |
updateSpecProperties Update a spec's properties
Updates an API specification's properties, such as its name.
| Parameter | Type | Description |
|---|---|---|
name * | string | The spec's name. |
specId * | string | The spec's ID. |
updateWorkspace Update a workspace
Updates a workspace's property, such as its name or visibility. **Note:** - This endpoint does not support the following visibility changes: - \`private\` to \`public\`, \`public\` to \`private\`, and \`private\` to \`personal\` for **Free** and **Solo** [plans](https://www.postman.com/pricing/). - \`public\` to \`personal\` for team users only. - There are rate limits when publishing public workspaces. - Public team workspace names must be unique.
| Parameter | Type | Description |
|---|---|---|
workspaceId * | string | The workspace's ID. |
workspace | object | The workspace fields to update. |