MCPorter is a TypeScript runtime and command-line tool for discovering and calling Model Context Protocol servers.
MCPorter solves the problem of accessing MCP tools from multiple contexts—scripts, CLIs, and agents—without rewriting integrations for each environment. It works by providing a unified interface that can invoke MCP servers either through a TypeScript API or as a command-line tool, accepting both HTTP URLs and stdio-based connections to servers. The tool discovers servers from existing IDE and editor configurations, eliminating the need to manually register them.
Developers should choose MCPorter if they need to call the same MCP tools from a terminal, a TypeScript script, or a generated standalone CLI without duplicating tool definitions. It suits projects where MCP integration spans multiple execution contexts. The tool includes a CLI generator for creating focused command-line interfaces from specific servers, a TypeScript code generator for producing typed clients, and record-and-replay functionality for capturing reproducible MCP sessions. Configuration supports environment variable substitution, OAuth setup, and tool filtering through JSONC files that can import servers from Cursor, Claude Desktop, VS Code, and other supported clients.
The project maintains active development with regular updates to its command-line interface and configuration system. The tool has expanded its scope to support multiple installation methods and integration paths, indicating ongoing refinement of the developer experience. Documentation is comprehensive and organized by workflow, suggesting sustained attention to usability and clarity for new users.