mcporter

mcporter

Call MCP servers via TypeScript to simplify code execution and automation.

MCPDevOpen source
Type
MCP
Open source
Yes
GitHub Stars
★ 4.7k
Source
mcp-github

Overview

MCPorter is a TypeScript runtime, CLI, and code generation toolkit for Model Context Protocol. It helps you discover MCP servers already configured in your system and directly invoke them, enabling richer automation workflows within TypeScript. Additionally, it can convert MCP server definitions into single-purpose CLI tools. MCPorter offers zero-configuration server discovery, one-click CLI generation, typed tool clients, intuitive compositional APIs, record/replay capabilities, and convenient support for OAuth and stdio—ideal for developers who need to call MCP servers programmatically.

Capabilities

  • Zero-configuration discovery of MCP servers
  • One-click generation of CLI tools
  • Typed tool clients
  • Friendly compositional API
  • Record/replay functionality
  • Convenient support for OAuth and stdio

Use cases

Execute code by calling MCP serversGenerate single-purpose CLI toolsWrite type-safe MCP client codeOffline debugging and issue reproducibility

Setup

Requires: Node 环境API Key
Use `npx mcporter` directly, or install globally via `npm install -g mcporter`.

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I get started with MCPorter?

You can directly use the `npx mcporter` command without installation.

What transport protocols does MCPorter support?

Supports stdio and HTTP protocols.

Related skills