openclaw/mcporter

Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli.

What it solves

MCPorter allows developers and AI agents to use Model Context Protocol (MCP) tools outside of their native chat interfaces. It bridges the gap between MCP servers and other environments, enabling these tools to be called from terminal commands, custom scripts, or standalone command-line interfaces (CLIs).

How it works

It functions as both a TypeScript runtime and a CLI tool. It can discover MCP servers from various existing configurations (such as those from Cursor, Claude Code, and VS Code) and connect to them via stdio, Streamable HTTP, or legacy SSE. The tool can then list available tools, execute them with specific arguments, and even generate focused, standalone CLIs or TypeScript types for those tools.

Who it’s for

  • Developers who want to integrate MCP tools into their own automation scripts or CLI tools.
  • AI Agents that need a standardized way to access and execute external tools from a terminal or script.
  • Power users who want to interact with MCP servers directly via the command line.

Highlights

  • Broad Compatibility: Imports server configurations from popular AI editors and clients like Cursor, Claude Code, and Windsurf.
  • CLI Generation: Can automatically create a focused CLI based on MCP server tools.
  • Developer Tooling: Provides a TypeScript runtime for programmatic access and the ability to emit TypeScript types for typed clients.
  • Session Management: Includes capabilities to record and replay MCP sessions for reproducibility.
  • Chrome Integration: Supports controlling Chrome via a paired extension relay for Chrome DevTools MCP servers.

相關

  • 專案
  • 專案
  • 專案
  • 專案
  • 專案