postman-escape-mcp
Converts Postman Collections (v2.0/v2.1) plus environment exports into a git-native Bruno workspace of .bru request files, along with a scrubbed .env.example, .gitignore and MIGRATION_REPORT.md; also repairs Bruno #8680 (enabled: null) crashes and normalizes dotted variable names (api.base.url -> api_base_url).
Distributed and integrated as a GitHub Action (z121245017-ai/postman-escape-mcp@v1) that gates pull requests and pushes: fails the workflow when committed Postman, .har or .bru files contain live credentials or incompatible pm.* scripts, and emits inline ::error file=...,line=...:: PR annotations with scanned-file, secrets-found and script-issue counts.
Reads Postman Collection v2.0/v2.1 JSON, environment exports and pm.* scripts, then compiles them into Bruno .bru files or CI-ready Hurl suites, and audits the collection for leaked credentials and non-transpilable script constructs.
postman-escape-mcp — Postman / HAR to Bruno (.bru) & Hurl (.hurl) MCP Server + GitHub Action
Zero-dependency, 100% offline Model Context Protocol (MCP) Server, CLI, and GitHub Action enabling Claude Desktop, Cursor, Windsurf, Antigravity, and CI pipelines to migrate Postman Collections (v2.0 / v2.1), Environments, and HTTP .har captures into Git-native Bruno (.bru) workspaces and CI-runnable Hurl (.hurl) test suites—while blocking leaked live API credentials before git commit.
MCP Tools Exposed (stdio)
Tool | Purpose | Annotations |
| Converts Postman Collection ( |
|
| Compiles Postman Collection or |
|
| Audits Postman JSON, |
|
| Inspects Postman |
|
Related MCP server: API Testing MCP
Quick Start (MCP Client & Local CLI)
# Start MCP server over stdio (zero npm install / zero external dependencies)
npx -y github:z121245017-ai/postman-escape-mcp
# List MCP tool schemas from terminal
npx -y github:z121245017-ai/postman-escape-mcp --list
# Scan a .bru or Postman file from terminal
npx -y github:z121245017-ai/postman-escape-mcp --cli scan_api_collection_secrets '{"content":"headers {\n Authorization: Bearer live_secret_token_123456\n}","fileName":"login.bru"}'Claude Desktop / Cursor / Windsurf / Antigravity Config
{
"mcpServers": {
"postman-escape": {
"command": "npx",
"args": ["-y", "github:z121245017-ai/postman-escape-mcp"]
}
}
}Docker (node:22-alpine, non-root USER node)
docker build -t postman-escape-mcp .
docker run -i --rm postman-escape-mcpGitHub Action (z121245017-ai/postman-escape-mcp@v1)
Add postman-escape-mcp@v1 to .github/workflows/ to automatically block pull requests that commit un-scrubbed Postman, .har, or Bruno .bru credentials (Bearer, JWT, Basic, Cookie, x-api-key) and verify pm.* -> Bruno/Hurl script compatibility with inline ::error file=...,line=...:: PR annotations:
name: API Secret & Migration Gate
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
api-collection-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Block leaked Postman / HAR / Bruno secrets & incompatible pm.* scripts
uses: z121245017-ai/postman-escape-mcp@v1
with:
paths: '.'
fail-on-secrets: 'true'
fail-on-incompatible-scripts: 'true'Action Inputs & Outputs
Name | Kind | Default | Description |
| Input |
| Newline- or space-separated files or directories to scan. |
| Input |
| Exit |
| Input |
| Exit |
| Input |
| Comma-separated directory names skipped during recursive scan. |
| Output | — | Number of API collection, environment, |
| Output | — | Total count of live credential leaks detected. |
| Output | — | Total count of non-transpilable |
| Output | — | Structured JSON summary of audit findings. |
Verification
npm testLicense
MIT License — 0 external npm dependencies, 0 network calls, 100% local execution.
Available Tools
4 toolsaudit_pm_script_compatibilityARead-onlyIdempotent
Analyze Postman pm.* pre-request and test scripts (either a full Postman Collection JSON or a raw JavaScript snippet) to verify Bruno/Hurl transpilation coverage and flag non-transpilable constructs such as pm.sendRequest(...) or CryptoJS with exact line numbers and Bruno/Hurl migration code guidance.
Inputs: source (required), phase, fileName.
convert_postman_to_brunoARead-onlyIdempotent
Convert a Postman Collection (v2.0 or v2.1 JSON) and optional Postman Environment JSON into Git-friendly Bruno (.bru) request/collection/environment files, a scrubbed .env.example, .gitignore, and MIGRATION_REPORT.md. Automatically repairs Bruno #8680 enabled:null importer crashes, normalizes dotted/hyphenated variable names (e.g. api.base.url -> api_base_url), transpiles pm.* scripts, and moves live credentials into vars:secret.
Inputs: collectionJson (required), projectName, environmentJson.
convert_postman_to_hurlARead-onlyIdempotent
Compile a Postman Collection (v2.0/v2.1 JSON) or browser HTTP Archive (.har JSON) into CI-runnable Hurl (.hurl) test files, combined hurl/suite.hurl, and scrubbed hurl/hurl.vars.example with deterministic [Captures], [Asserts], status checks, and secret-vault redaction.
Inputs: inputJson (required), projectName, environmentJson, includeIndividualFiles.
scan_api_collection_secretsARead-onlyIdempotent
Audit Postman Collection/Environment JSON, HTTP .har captures, or Bruno .bru text for live Bearer tokens, JWTs, Basic auth credentials, session Cookies, AWS/Stripe/OpenAI/GitHub keys, and x-api-key headers before git commit. Returns exact 1-based line numbers, redacted previews, and suggested vars:secret identifiers without exposing raw secrets.
Inputs: content (required), fileName.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: secret scanning, pm.* script compatibility auditing, and two separate converters targeting different output formats (Bruno vs Hurl). The two convert_* tools share a source but are unambiguous because the destination format is explicit in the name and description. An agent can reliably select the right tool from the request intent.
All names are snake_case with a leading verb (scan_, audit_, convert_), which gives a predictable pattern. The two convert_postman_to_* tools are perfectly parallel, though the noun phrases vary in length/shape across the audit tools, which is a minor stylistic deviation only.
Four tools is a tight, well-scoped surface for a Postman-to-Bruno/Hurl migration workflow, with each tool earning its place. It is slightly lean—one could imagine a dedicated environment-only or validation tool—but nothing feels redundant or missing for the core scope.
The surface covers the main migration lifecycle: secret detection, script transpilability auditing, and conversion to both Bruno and Hurl with scrubbed artifacts. Minor gaps exist around validating/round-tripping converted output (e.g., no re-parse or reverse conversion, and Hurl handles .har while Bruno conversion does not), but agents can work around these.
Maintenance
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
MCP server for interacting with the Supabase platform
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
Related MCP Servers
- MIT
- AlicenseAqualityCmaintenanceA lightweight, local-first MCP server for executing HTTP requests and managing API collections and environments without cloud dependencies. It enables testing APIs, handling authentication, and importing OpenAPI specifications directly within MCP-compatible workflows.42221 npm13MIT
- AlicenseBqualityCmaintenanceMCP server providing 41 tools to manage Postman collections, environments, mocks, API specs, and workspaces via Streamable HTTP, SSE, or stdio.41MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that executes requests from Bruno API collections via the Bruno CLI tool, enabling API request execution and collection management.4MIT