mcporter discovers configured MCP servers, lists tools, and invokes them from scripts or generated stand-alone CLIs. It imports definitions from popular editors and supports OAuth-heavy hosted servers.
Overview
mcporter is a command-line bridge for the Model Context Protocol that lists, inspects, and calls tools on configured MCP servers. It reads mcporter.json files, home-directory defaults, and imported definitions from Cursor, Claude, Codex, Windsurf, OpenCode, and VS Code.
The CLI can emit TypeScript clients, generate bundled stand-alone binaries, and tail OAuth logins when hosted servers require browser auth. createServerProxy maps tools to typed methods with JSON-schema defaults and rich result helpers.
Ad-hoc mode connects to HTTP, SSE, or stdio endpoints without editing config, and mcporter serve exposes pooled servers to other agents. Output flags provide stable JSON on stdout while progress logs stay on stderr.
Install via npm, npx, Homebrew, or Bun-compiled binaries; Node 24 or newer is required for npm installs per the documentation.
Key features
- list and call tools across MCP transports
- Imports MCP config from major AI editors
- generate-cli for standalone command bundles
- emit-ts for typed client stubs
- OAuth detection and mcporter auth helper
- serve mode to namespace pooled MCP servers
Use cases
- Script MCP tool calls in shell pipelines
- Give agents small per-server TypeScript clients
- Test a remote MCP endpoint without IDE plugins