mcporter
$ mcporter Community Med Riskmcporter (openclaw/mcporter) bridges Model Context Protocol servers into shell-native workflows. Agents can discover tools with --brief/--schema, invoke tools ad-hoc via --stdio or --http-url with --json, or compile standalone CLIs and TypeScript clients (generate-cli, emit-ts).
npm install -g mcporter mcporter eliminates permanent MCP schema token bloat by letting agents call MCP tools on demand from bash with --brief and --json.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built for AI agents: --json, --output json, --brief, --schema, ad-hoc --stdio/--http-url, and --quiet.
- Supports
--json,--output,--brief,--schema, and ad-hoc--stdio/--http-url
Separates read-only list inspection from call execution and scopes configs via --scope project|home, though call inherits server permissions.
- Read-only
listdiscovery and--scopeconfig isolation
Cross-platform Node.js CLI via npx mcporter or global npm install -g mcporter.
- Zero-install
npx mcporterand npm package
Solves MCP context bloat by turning any MCP server into an on-demand shell CLI or compiled TypeScript wrapper.
- Bridges MCP servers to shell +
generate-cli/emit-ts
Active openclaw/mcporter repository under MIT license.
- Active
openclaw/mcporterrepo
Detailed README documenting list, call, config, auth, and generate-cli.
- Comprehensive README at github.com/openclaw/mcporter
Security, Auth & Guardrails
Server definitions stored in ./config/mcporter.json or ~/.mcporter/; supports importing Cursor/Claude configs and OAuth token cache.
100% free and MIT open-source.
# mcporter Agent Rules - Use `mcporter list <server> --brief` first instead of dumping full `--schema` for every server. - Always pass `--output json` (or `--json`) on `list` and `call`. - Review generated code before running `mcporter generate-cli` outputs in production.
Agent-Ready Command Recipes
Safe Read-Only Queries
mcporter list --stdio "npx -y @modelcontextprotocol/server-filesystem ." --brief --json
Connects ad-hoc and prints compact tool signatures in JSON without polluting agent context.
mcporter list my-server --schema --json
Retrieves JSON schemas for a named server on demand.
Controlled Writes & Previews
mcporter call my-server.search query="rate limit" --output json
Executes a single MCP tool call cleanly from the shell and emits JSON.
Strengths for Agents
- +
--briefdiscovery +--output jsonslashes MCP context token usage dramatically. - + Ad-hoc
--stdioand--http-urlflags call servers without editing global MCP configs. - +
generate-cliandemit-tsturn recurring MCP servers into permanent standalone tools.
Caveats & Pitfalls
- !
mcporter authbrowser OAuth flows still require human interaction for OAuth-protected remote servers.