Postman的MCP服务器用于将AI代理、助手及聊天机器人直接连接至Postman上的API。

6 次收藏下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:4 个月前
下载命令
点击查看

Postman MCP Server

Postman's MCP server connects AI agents, assistants, and chatbots directly to your APIs on Postman. Use natural language to prompt AI to automate work across your Postman collections, environments, workspaces, and more.

https://www.anthropic.com/news/model-context-protocol

MCP Info

AttributeDetails
Docker Imagehttps://hub.docker.com/repository/docker/mcp/postman
Authorhttps://github.com/postmanlabs
Repositoryhttps://github.com/postmanlabs/postman-mcp-server

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/postmanlabs/postman-mcp-server/blob/89d87667898d08443d2791fb***b2f2084a697/Dockerfile
Commit89d87667898d08443d2791fb19312b2f2084a697
Docker Image built byDocker Inc.
Docker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/postman --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (42)

Tools provided by this ServerShort Description
createCollectionCreates a collection using the https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html.
createCollectionRequestCreates a request in a collection. For a complete list of properties, refer to the Request entry in the https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html.
createCollectionResponseCreates a request response in a collection. For a complete list of request body properties, refer to the Response entry in the https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html.
createEnvironmentCreates an environment.
createMockCreates a mock server in a collection.
createSpecCreates an API specification in Postman's https://learning.postman.com/docs/design-apis/specifications/overview/. Specifications can be single or multi-file.
createSpecFileCreates a file for an OpenAPI or a protobuf 2 or 3 specification.
createWorkspaceCreates a new https://learning.postman.com/docs/collaborating-in-postman/using-workspaces/creating-workspaces/.
duplicateCollectionCreates a duplicate of the given collection in another workspace.
generateCollectionCreates a collection from the given API specification.
generateSpecFromCollectionGenerates an OpenAPI 2.0, 3.0, or 3.1 specification for the given collection. The response contains a polling link to the task status.
getAllSpecsGets all API specifications in a workspace.
getAuthenticatedUserGets information about the authenticated user.
getCollectionGet Collection (map by default)
getCollectionsThe workspace ID query is required for this endpoint. If not provided, the LLM should ask the user to provide it.
getDuplicateCollectionTaskStatusGets the status of a collection duplication task.
getEnabledToolsGet Enabled Tools
getEnvironmentGets information about an environment.
getEnvironmentsGets information about all of your https://learning.postman.com/docs/sending-requests/managing-environments/.
getGeneratedCollectionSpecsGets the API specification generated for the given collection.
getMockGets information about a mock server.
getMocksGets all active mock servers. By default, returns only mock servers you created across all workspaces.
getSpecGets information about an API specification.
getSpecCollectionsGets all of an API specification's generated collections.
getSpecDefinitionGets the complete contents of an OpenAPI or AsyncAPI specification's definition.
getSpecFileGets the contents of an API specification's file.
getSpecFilesGets all the files in an API specification.
getTaggedEntitiesRequires an Enterprise plan. Tagging is only available on Postman Enterprise plans. This tool returns a 404 error on Free, Basic, and Professional accounts.
getWorkspaceGets information about a workspace.
getWorkspacesGets all workspaces you have access to.
publishMockPublishes a mock server. Publishing a mock server sets its Access Control configuration setting to public.
putCollectionReplaces the contents of a collection using the 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.
putEnvironmentReplaces all the contents of an environment with the given information.
runCollectionRun Postman Collection
searchPostmanElementsSearch for Postman entities (requests, collections, workspaces, specs, flows, environments, mocks).
syncCollectionWithSpecSyncs a collection generated from an API specification. This is an asynchronous endpoint that returns an HTTP `202 Accepted` response.
syncSpecWithCollectionSyncs an API specification linked to a collection. This is an asynchronous endpoint that returns an HTTP `202 Accepted` response.
updateCollectionRequestUpdates a request in a collection. For a complete list of properties, refer to the Request entry in the https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html.
updateMockUpdates a mock server.
updateSpecFileUpdates a file for an OpenAPI or protobuf 2 or 3 specification.
updateSpecPropertiesUpdates an API specification's properties, such as its name.
updateWorkspaceUpdates a workspace's property, such as its name or visibility.

Tools Details

Tool: createCollection

Creates a collection using the 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.

ParametersTypeDescription
workspacestringThe workspace's ID.
collectionobject optional

Tool: createCollectionRequest

Creates a request in a collection. For a complete list of properties, refer to the Request entry in the 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.

ParametersTypeDescription
collectionIdstringThe collection's ID.
authstring optionalThe request's authentication information.
datastring optionalThe request body's form data.
dataModestring optionalThe request body's data mode.
dataOptionsstring optionalAdditional configurations and options set for the request body's various data modes.
descriptionstring optionalThe request's description.
eventsstring optionalA list of scripts configured to run when specific events occur.
folderIdstring optionalThe folder ID in which to create the request. By default, the system will create the request at the collection level.
graphqlModeDatastring optionalThe request body's GraphQL mode data.
headerDataarray optionalThe request's headers.
methodstring optionalThe request's HTTP method.
namestring optionalThe request'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 request with a blank name.
queryParamsarray optionalThe request's query parameters.
rawModeDatastring optionalThe request body's raw mode data.
urlstring optionalThe request's URL.

Tool: createCollectionResponse

Creates a request response in a collection. For a complete list of request body properties, refer to the Response entry in the 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.

ParametersTypeDescription
collectionIdstringThe collection's ID.
requeststringThe parent request's ID.
cookiesstring optionalThe response's cookie data.
dataModestring optionalThe associated request body's data mode.
dataOptionsstring optionalAdditional configurations and options set for the request body's various data modes.
descriptionstring optionalThe response's description.
headersarray optionalA list of headers.
languagestring optionalThe response body's language type.
methodstring optionalThe request's HTTP method.
mimestring optionalThe response's MIME type.
namestring optionalThe 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.
rawDataTypestring optionalThe response's raw data type.
rawModeDatastring optionalThe associated request body's raw mode data.
requestObjectstring optionalA JSON-stringified representation of the associated request.
responseCodeobject optionalThe response's HTTP response code information.
statusstring optionalThe response's HTTP status text.
textstring optionalThe raw text of the response body.
timestring optionalThe time taken by the request to complete, in milliseconds.
urlstring optionalThe associated request's URL.

Tool: createEnvironment

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. Parameters|Type|Description -|-|- workspace|string|The workspace's ID. environment|object optional|Information about the environment.

Tool: createMock

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. Parameters|Type|Description -|-|- workspace|string|The workspace's ID. mock|object optional|

Tool: createSpec

Creates an API specification in Postman's 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.
  • Files cannot exceed a maximum of 12 MB in size. Parameters|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.

Tool: createSpecFile

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. Parameters|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.

Tool: createWorkspace

Creates a new 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. 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 https://learning.postman.com/docs/collaborating-in-postman/using-workspaces/partner-workspaces/ are available on Postman https://www.postman.com/pricing.
  • There are rate limits when publishing public workspaces.
  • Public team workspace names must be unique.
  • The `teamId` property must be passed in the request body if https://learning.postman.com/docs/administration/onboarding-checklist is enabled. Parameters|Type|Description -|-|- workspace|object optional|Information about the workspace.

Tool: duplicateCollection

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.

ParametersTypeDescription
collectionIdstringThe collection's unique ID.
workspacestringThe workspace ID in which to duplicate the collection.
suffixstring optionalAn optional suffix to append to the duplicated collection's name.

Tool: generateCollection

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.

ParametersTypeDescription
elementTypestringThe collection element type.
namestringThe generated collection's name.
optionsobjectThe advanced creation options and their values. For more details, see Postman's https://github.com/postmanlabs/openapi-to-postman/blob/develop/OPTIONS.md. These properties are case-sensitive.
specIdstringThe spec's ID.

Tool: generateSpecFromCollection

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.

ParametersTypeDescription
collectionUidstringThe collection's unique ID.
elementTypestringThe spec value.
formatstringThe format of the API specification.
namestringThe API specification's name.
typestringThe specification's type.

Tool: getAllSpecs

Gets all API specifications in a workspace.

ParametersTypeDescription
workspaceIdstringThe workspace's ID.
cursorstring optionalThe pointer to the first record of the set of paginated results. To view the next response, use the nextCursor value for this parameter.
limitinteger optionalThe maximum number of rows to return in the response.

This tool is read-only. It does not modify its environment.


Tool: getAuthenticatedUser

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.

Tool: getCollection

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. Parameters|Type|Description -|-|- collectionId|string|The collection ID must be in the form <OWNER_ID>- (e.g. ***-33823532ab9e41c9b6fd12d0fd459b8b). access_key|string optional|A collection's read-only access key. Using this query parameter does not require an API key to call the endpoint. model|string optional|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.

This tool is read-only. It does not modify its environment.


Tool: getCollections

The workspace ID query is required for this endpoint. If not provided, the LLM should ask the user to provide it.

ParametersTypeDescription
workspacestringThe workspace's ID.
limitinteger optionalThe maximum number of rows to return in the response.
namestring optionalFilter results by collections whose name exactly matches the given value. Partial or substring matches are not supported.
offsetinteger optionalThe zero-based offset of the first item to return.

This tool is read-only. It does not modify its environment.


Tool: getDuplicateCollectionTaskStatus

Gets the status of a collection duplication task.

ParametersTypeDescription
taskIdstringThe task's unique ID.

This tool is read-only. It does not modify its environment.


Tool: getEnabledTools

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.

Tool: getEnvironment

Gets information about an environment.

ParametersTypeDescription
environmentIdstringThe environment's ID.

This tool is read-only. It does not modify its environment.


Tool: getEnvironments

Gets information about all of your https://learning.postman.com/docs/sending-requests/managing-environments/.

ParametersTypeDescription
workspacestring optionalThe workspace's ID.

This tool is read-only. It does not modify its environment.


Tool: getGeneratedCollectionSpecs

Gets the API specification generated for the given collection.

ParametersTypeDescription
collectionUidstringThe collection's unique ID.
elementTypestringThe spec value.

This tool is read-only. It does not modify its environment.


Tool: getMock

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. Parameters|Type|Description -|-|- mockId|string|The mock's ID.

This tool is read-only. It does not modify its environment.


Tool: getMocks

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. Parameters|Type|Description -|-|- teamId|string optional|Return only results that belong to the given team ID.
  • For team-scoped requests, set this from GET /me (me.teamId).

workspace|string optional|Return only results found in the given workspace ID.

  • Prefer this parameter when the user mentions a specific workspace.

This tool is read-only. It does not modify its environment.


Tool: getSpec

Gets information about an API specification.

ParametersTypeDescription
specIdstringThe spec's ID.

This tool is read-only. It does not modify its environment.


Tool: getSpecCollections

Gets all of an API specification's generated collections.

ParametersTypeDescription
elementTypestringThe collection element type.
specIdstringThe spec's ID.
cursorstring optionalThe pointer to the first record of the set of paginated results. To view the next response, use the nextCursor value for this parameter.
limitinteger optionalThe maximum number of rows to return in the response.

This tool is read-only. It does not modify its environment.


Tool: getSpecDefinition

Gets the complete contents of an OpenAPI or AsyncAPI specification's definition.

ParametersTypeDescription
specIdstringThe spec's ID.

This tool is read-only. It does not modify its environment.


Tool: getSpecFile

Gets the contents of an API specification's file.

ParametersTypeDescription
filePathstringThe path to the file.
specIdstringThe spec's ID.

This tool is read-only. It does not modify its environment.


Tool: getSpecFiles

Gets all the files in an API specification.

ParametersTypeDescription
specIdstringThe spec's ID.

This tool is read-only. It does not modify its environment.


Tool: getTaggedEntities

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.

ParametersTypeDescription
slugstringThe tag's ID within a team or individual (non-team) user scope.
cursorstring optionalThe 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.
directionstring optionalThe ascending (asc) or descending (desc) order to sort the results by, based on the time of the entity's tagging.
entityTypestring optionalFilter results for the given entity type.
limitinteger optionalThe maximum number of tagged elements to return in a single call.

This tool is read-only. It does not modify its environment.


Tool: getWorkspace

Gets information about a workspace.

Note:

This endpoint's response contains the `visibility` field. 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 (https://www.postman.com/pricing).
  • `public` — Everyone can access the workspace.
  • `partner` — Only invited team members and https://learning.postman.com/docs/collaborating-in-postman/using-workspaces/partner-workspaces/ can access the workspace (https://www.postman.com/pricing). Parameters|Type|Description -|-|- workspaceId|string|The workspace's ID. include|string optional|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 creator and who last modified it.

This tool is read-only. It does not modify its environment.


Tool: getWorkspaces

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).
  • For tools that require the

[...]

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 postman 镜像标签

docker pull docker.xuanyuan.run/mcp/postman:<标签>

DockerHub 原生拉取命令

docker pull mcp/postman:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告