MCporter

v0.11.3Developer Toolsstable

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

climcpts-apimodel-context-protocolsweetistics
Share:
4,478
Stars
0
Downloads
0
Weekly
0/5

What is MCporter?

MCporter is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to call mcps via typescript, masquerading as simple typescript api. or package them as cli.

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

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Call MCPs via TypeScript, masquerading as simple TypeScript

Use Cases

Call MCPs via TypeScript and package them as simple APIs.
Convert MCP servers to command-line tools or TypeScript modules.
openclaw

Maintainer

LicenseMIT
Languagetypescript
Versionv0.11.3
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y mcporter

Manual Installation

npx -y mcporter

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCporter

MCporter is a TypeScript runtime, CLI, and code-generation toolkit for the Model Context Protocol that lets you call any MCP server directly from the command line or from TypeScript code — without writing boilerplate. It auto-discovers MCP servers already configured in Cursor, Claude Code/Desktop, Codex, Windsurf, and VS Code, exposes their tools as ergonomic camelCase TypeScript methods, and can package individual MCP tools as standalone CLIs or emit typed TypeScript client wrappers. Teams that want to script, test, or compose MCP tool calls in automation pipelines — or that need to share a single MCP capability as a reusable CLI — will find MCporter eliminates the usual plumbing and schema spelunking.

Prerequisites

  • Node.js 18 or later installed
  • npx available (comes with npm 5.2+)
  • At least one MCP server configured in Cursor, Claude Desktop, Claude Code, or a local mcporter.json config file
  • API keys for any MCP servers that require authentication (e.g., LINEAR_API_KEY for Linear MCP)
1

List all discovered MCP servers

Run mcporter list to see every MCP server MCporter can find from your existing editor configurations. No installation required — npx fetches and runs it immediately.

npx mcporter list
2

Inspect a specific server's tools

Pass a server name (or URL) to list to see its tools with TypeScript-style signatures, including required and optional parameters.

npx mcporter list context7 --schema
# Or for a remote server:
npx mcporter list https://mcp.linear.app/mcp --all-parameters
3

Call an MCP tool from the command line

Use mcporter call with colon-delimited arguments or function-call syntax to invoke any discovered tool directly from the terminal.

# Colon-delimited syntax:
npx mcporter call context7.resolve-library-id query="React hooks" libraryName=react

# Function-call syntax:
npx mcporter call 'linear.create_comment(issueId: "ENG-123", body: "Looks good!")'
4

Generate a typed TypeScript client

Use emit-ts to generate TypeScript interfaces or ready-to-run wrappers for a server, enabling strongly-typed calls in your own code.

npx mcporter emit-ts context7 --output ./src/mcp-clients/context7.ts
5

Package a tool as a standalone CLI

Use generate-cli to turn an MCP server into a distributable command-line tool that anyone can run without understanding the MCP protocol.

npx mcporter generate-cli context7 --output ./bin/context7-cli
6

Record and replay for offline testing

Capture real MCP JSON-RPC traffic as NDJSON for deterministic offline test fixtures, then replay it without hitting the live server.

# Record:
npx mcporter record context7.resolve-library-id query=react > fixtures/resolve.ndjson

# Replay:
npx mcporter replay fixtures/resolve.ndjson

MCporter Examples

Client configuration

MCporter reads from existing MCP configs, but you can also add servers explicitly via mcporter.json:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "linear": {
      "url": "https://mcp.linear.app/mcp",
      "env": {
        "LINEAR_API_KEY": "lin_api_your_key_here"
      }
    }
  }
}

Prompts to try

Example command-line calls once mcporter is configured with your servers:

- npx mcporter call context7.resolve-library-id query="React useEffect" libraryName=react
- npx mcporter call context7.get-library-docs libraryId=/reactjs/react.dev query="hooks"
- npx mcporter list linear --all-parameters
- npx mcporter call linear.list_issues assignee=me
- npx mcporter call 'linear.create_comment(issueId: "ENG-1", body: "Fixed in PR #42")'

Troubleshooting MCporter

mcporter list shows no servers

MCporter looks for configs in ~/.mcporter/mcporter.json, ~/.cursor/mcp.json, Claude Desktop config, and ./config/mcporter.json. Ensure at least one of these files exists and contains mcpServers entries. Run npx mcporter list --verbose to see which config sources were checked.

Authentication errors calling Linear or other OAuth-protected servers

Run npx mcporter auth https://mcp.linear.app/mcp to trigger the OAuth flow. MCporter will open a browser window, complete the login, and cache the token for future calls. For API key-based servers, set the key as an environment variable before calling.

Tool call returns empty or garbled output

Add --json flag to get the raw JSON-RPC response for debugging. Check that required parameters are spelled correctly (run npx mcporter list <server> to confirm exact parameter names).

Frequently Asked Questions about MCporter

What is MCporter?

MCporter is a Model Context Protocol (MCP) server that call mcps via typescript, masquerading as simple typescript api. or package them as cli. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCporter?

Install via npm with the command: npx -y mcporter. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with MCporter?

MCporter works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCporter free to use?

Yes, MCporter is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcporter": { "command": "npx", "args": ["-y", "mcporter"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCporter?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides