add_api_collection
Add a collection to an API
Manage Postman collections, environments and API definitions from your assistant — create requests, fork and merge, manage schemas and roles.
LABSCO SUMMARY
Beyond the obvious collection and environment CRUD, it reaches the fork-merge-pull workflow, API schema files, role assignment and the Private API Network — the administrative half people usually do by hand in the web app. Two rough edges are worth knowing up front: environments need the full owner-prefixed uid, and what you can actually call depends on your plan and region.
A server over the Postman API, built from its published OpenAPI specification. It covers workspaces, collections, environments and APIs, plus the sharing and permission layers around them.
A Postman API key, generated at https://go.postman.co/settings/me/api-keys and saved as POSTMAN_API_KEY — it is shown once, and it reaches every Postman resource your account has permission for. Install it from npm as @postmanv3/postman-mcp-server, currently 0.2.1, with a postman-mcp-server binary, and run it over stdio. Two things to know before you rely on it: environment endpoints need the full uid in {ownerId}-{environmentId} form rather than the bare environment id, and some endpoints return 403 depending on your region and Postman plan. The project describes itself as under active development, with breaking changes expected.
One command plus a key — npm install -g @postmanv3/postman-mcp-server, then supply credentials
USE CASES
List the workspaces, then the collections and environments inside the one you care about.
Open the collection, create the folder if it needs one, then create the request inside it.
Fork it into your workspace, make the edits, then merge the fork back.
Update the schema files, then run the sync and follow the task until it finishes.
Update the environment with only the variables that changed — the others are left alone.
Read the current workspace and collection roles, then update them — up to 50 operations per call.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_api_collectionAdd a collection to an API
add_pan_elementAdd element or folder to Private API Network
create_apiCreate a new API
create_api_commentCreate a new comment on an API (max 10,000 characters)
create_api_schemaCreate a schema for an API
create_api_versionCreate a new version of an API
create_collectionCreate a new collection in a workspace. Supports Postman Collection v2.1.0 format.
create_collection_folderCreate a new folder in a collection
create_collection_requestCreate a new request in a collection
create_collection_responseCreate a new response in a collection
create_environmentCreate a new environment in a workspace. Creates in "My Workspace" if workspace not specified.
create_update_schema_fileCreate or update a schema file
create_webhookCreates webhook that triggers collection with custom payload
delete_apiDelete an API
delete_api_commentDelete an API comment
delete_api_versionDelete an API version
delete_collection_access_keyDelete a collection access key
delete_environmentDelete an environment
delete_schema_fileDelete a schema file
fork_collectionFork a collection to a workspace
fork_environmentCreate a fork of an environment in a workspace
get_accountsGets Postman billing account details for the given team
get_apiGet details of a specific API
get_api_collectionGet a specific collection from an API
get_api_commentsGet comments for an API
get_api_schemaGet a specific schema from an API
get_api_schema_filesGet files in an API schema
get_api_tagsGet tags for an API
get_api_versionGet a specific version of an API
get_api_versionsGet all versions of an API
get_authenticated_userGet authenticated user information
get_collectionGet details of a specific collection
get_collection_folderGet details of a specific folder in a collection
get_collection_forksGet a list of collection forks
get_collection_requestGet details of a specific request in a collection
get_collection_responseGet details of a specific response in a collection
get_collection_rolesGet roles for a collection
get_environmentGet details of a specific environment
get_environment_forksGet a list of environment forks
get_schema_file_contentsGet contents of a schema file
get_tagged_elementsGet elements by tag
get_task_statusGet status of an asynchronous task
get_user_infoGet information about the authenticated user
get_workspaceGet details of a specific workspace
get_workspace_rolesGet roles for a specific workspace
get_workspace_tagsGet workspace tags
health_checkPerform a local system health check to verify Postman MCP server configuration and connectivity. Returns system information and configuration status.
list_account_invoicesGets all invoices for a Postman billing account filtered by status
list_apisList all APIs in a workspace
list_collection_access_keysList collection access keys with optional filtering by collection ID
list_collectionsList all collections in a workspace. Supports filtering and pagination.
list_environmentsList all environments in a workspace. If workspace not specified, lists environments in "My Workspace".
list_pan_elementsGet all elements and folders in Private API Network
list_workspace_rolesGet all available workspace roles based on team's plan
list_workspacesList all workspaces
merge_collection_forkMerge a forked collection back into its parent
merge_environment_forkMerge a forked environment back into its parent
patch_collectionPartially update a collection. Only updates provided fields.
pull_collection_changesPull changes from parent collection into forked collection
pull_environmentPull changes from parent environment into forked environment
remove_pan_elementRemove element or folder from Private API Network
resolve_comment_threadResolves a comment and any associated replies
sync_collection_with_schemaSync a collection with its schema
transfer_collection_itemsTransfer items between collections
update_apiUpdate an existing API
update_api_commentUpdate an existing API comment (max 10,000 characters)
update_api_tagsUpdate tags for an API
update_api_versionUpdate an API version
update_collectionUpdate an existing collection. Full collection replacement with maximum size of 20 MB.
update_collection_folderUpdate a folder in a collection. Acts like PATCH, only updates provided values.
update_collection_requestUpdate a request in a collection. Cannot change request folder.
update_collection_responseUpdate a response in a collection. Acts like PATCH, only updates provided values.
update_collection_rolesUpdate collection roles (requires EDITOR role)
update_environmentUpdate an existing environment. Only include variables that need to be modified.
update_pan_elementUpdate element or folder in Private API Network
update_workspace_rolesUpdate workspace roles for users and groups (limited to 50 operations per call)
update_workspace_tagsUpdate workspace tags
BEFORE YOU INSTALL
77 tools when we connected. Tools create, update and fork collections, but none deletes or runs one. The project is under active development and warns of breaking changes.
All 3 documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the 77 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install -g @postmanv3/postman-mcp-server{
"mcpServers": {
"postman": {
"command": "npx",
"args": [
"-y",
"@postmanv3/postman-mcp-server"
],
"env": {
"POSTMAN_API_KEY": "<YOUR_POSTMAN_API_KEY>"
}
}
}
}<YOUR_POSTMAN_API_KEY> is your Postman API key from go.postman.co/settings/me/api-keys.
{
"mcpServers": {
"postman": {
"command": "node",
"args": [
"/usr/local/lib/node_modules/@postmanv3/postman-mcp-server/build/index.js"
],
"env": {
"POSTMAN_API_KEY": "<YOUR_POSTMAN_API_KEY>"
}
}
}
}/usr/local/lib/node_modules is the usual global folder; npm root -g prints yours. <YOUR_POSTMAN_API_KEY> is your Postman API key from go.postman.co/settings/me/api-keys.
{
"mcpServers": {
"postman": {
"command": "npx",
"args": [
"-y",
"@postmanv3/postman-mcp-server"
],
"env": {
"POSTMAN_API_KEY": "<YOUR_POSTMAN_API_KEY>"
}
}
}
}Cline uses the same configuration as Claude Desktop: add it to your Cline MCP Servers configuration. <YOUR_POSTMAN_API_KEY> is your Postman API key from go.postman.co/settings/me/api-keys.