Best for
- Developers who need to call MCP tools from scripts or CLIs
- Developers building generated clients or CLIs
- TypeScript and Node.js environments
MCPorter is a versatile tool for calling MCP tools from scripts and CLIs, offering flexible commands and a TypeScript API. It is suitable for developers and coding agents, but requires careful handling of security and configuration.
MCPorter is a TypeScript runtime and command-line tool for discovering and calling Model Context Protocol (MCP) servers. It is for developers and coding agents that need the same MCP tools from a terminal, a script, or a generated standalone CLI. It supports stdio, Streamable HTTP, and legacy SSE servers, reads project and user config, and can import MCP servers from Cursor, Claude Code and Desktop, Codex, Windsurf, OpenCode, and VS Code. It provides commands like mcporter list, call, resource, auth, vault, generate-cli, emit-ts, record, and replay. It also offers a TypeScript runtime API such as createRuntime(), callOnce(), and createServerProxy() for tool calling in scripts.
Install globally via npm: npm install -g mcporter; or via Homebrew: brew install steipete/tap/mcporter. You can also try the CLI without installing using npx mcporter --version. Node 24 or newer is required.