REST-to-Postman MCP

by runninghare
Verified

rest_to_postman_collection

Convert REST API configurations into Postman collections, synchronizing endpoints and merging updates intelligently while preserving custom modifications in Postman.

Instructions

Creates or updates a Postman collection with the provided collection configuration. This tool helps synchronize your REST API endpoints with Postman. When updating an existing collection, it intelligently merges the new endpoints with existing ones, avoiding duplicates while preserving custom modifications made in Postman. Here's an example:

{ "info": { "name": "REST Collection", "description": "REST Collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "auth": { "type": "bearer", "bearer": [ {
"key": "Authorization", "value": "Bearer {{API_TOKEN}}", "type": "string" } ] },
"item": [ { "name": "Get Users", "request": { "method": "GET",
"url": { "raw": "{{API_URL}}/users", "protocol": "https", "host": ["api", "example", "com"], "path": ["users"] }
} }, { "name": "Create User", "request": { "method": "POST", "url": { "raw": "{{API_URL}}/users" }, "body": { "mode": "raw", "raw": "{"name":"John Doe","email":"john.doe@example.com"}" } }
} ] }

Input Schema

NameRequiredDescriptionDefault
collectionRequestYesThe Postman collection configuration containing info, items, and other collection details

Input Schema (JSON Schema)

{ "properties": { "collectionRequest": { "description": "The Postman collection configuration containing info, items, and other collection details", "properties": { "auth": { "description": "Authentication settings for the collection", "properties": { "bearer": { "items": { "properties": { "key": { "description": "Key for the bearer token", "type": "string" }, "type": { "description": "Type of the bearer token", "type": "string" }, "value": { "description": "Value of the bearer token", "type": "string" } }, "required": [ "key", "value", "type" ], "type": "object" }, "type": "array" }, "type": { "description": "Type of authentication (e.g., 'bearer')", "type": "string" } }, "required": [ "type" ], "type": "object" }, "event": { "description": "Collection-level event scripts", "items": { "properties": { "listen": { "description": "Event type to listen for", "type": "string" }, "script": { "properties": { "exec": { "description": "Array of script lines to execute", "items": { "type": "string" }, "type": "array" }, "type": { "description": "Type of script", "type": "string" } }, "required": [ "type", "exec" ], "type": "object" } }, "required": [ "listen", "script" ], "type": "object" }, "type": "array" }, "info": { "description": "Collection information including name and schema", "properties": { "description": { "description": "Description of the collection", "type": "string" }, "name": { "description": "Name of the collection", "type": "string" }, "schema": { "description": "Schema version of the collection", "type": "string" } }, "required": [ "name", "description", "schema" ], "type": "object" }, "item": { "description": "Array of request items in the collection", "items": { "properties": { "event": { "items": { "properties": { "listen": { "description": "Event type to listen for", "type": "string" }, "script": { "properties": { "exec": { "description": "Array of script lines to execute", "items": { "type": "string" }, "type": "array" }, "type": { "description": "Type of script", "type": "string" } }, "required": [ "type", "exec" ], "type": "object" } }, "required": [ "listen", "script" ], "type": "object" }, "type": "array" }, "name": { "description": "Name of the request", "type": "string" }, "request": { "properties": { "auth": { "properties": { "bearer": { "items": { "properties": { "key": { "type": "string" }, "type": { "type": "string" }, "value": { "type": "string" } }, "required": [ "key", "value", "type" ], "type": "object" }, "type": "array" }, "type": { "description": "Type of authentication", "type": "string" } }, "required": [ "type" ], "type": "object" }, "description": { "description": "Description of the request", "type": "string" }, "method": { "description": "HTTP method of the request", "type": "string" }, "url": { "properties": { "host": { "description": "Host segments", "items": { "type": "string" }, "type": "array" }, "path": { "description": "URL path segments", "items": { "type": "string" }, "type": "array" }, "protocol": { "description": "URL protocol (e.g., 'http', 'https')", "type": "string" }, "query": { "items": { "properties": { "key": { "description": "Query parameter key", "type": "string" }, "value": { "description": "Query parameter value", "type": "string" } }, "required": [ "key", "value" ], "type": "object" }, "type": "array" }, "raw": { "description": "Raw URL string", "type": "string" } }, "required": [ "raw", "protocol", "host", "path" ], "type": "object" } }, "required": [ "method", "url" ], "type": "object" } }, "required": [ "name", "request" ], "type": "object" }, "type": "array" } }, "required": [ "info", "item" ], "type": "object" } }, "required": [ "collectionRequest" ], "type": "object" }

You must be authenticated.

Other Tools from REST-to-Postman MCP

Related Tools

ID: a5094t3jl9