Mcporter

Developer tools

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

Your AI app calls the Mcporter MCP server, which does the developer tools work and sends the result back to the chat.

About Mcporter

Mcporter is a community MCP server from openclaw, filed in our directory under developer tools. Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli.

Mcporter runs on your own machine: your AI app starts it with the command npx -y mcporter and talks to it over standard input and output.

At a glance

Publisher
openclaw (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mcporter
Written in
TypeScript
License
MIT
GitHub stars
5,145

How to set up Mcporter

  1. Install Node.js on the machine that runs your AI app, because Mcporter starts with npx and downloads its package on first run.
  2. Check the Mcporter README for keys or settings; the registry lists none that Mcporter requires.
  3. Add Mcporter to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mcporter tools to confirm the connection.
  5. Run one read-only task with Mcporter first, and keep your app asking before each tool call until the results look right.

Mcporter compared with similar servers

  • Coral by withcoral has fewer GitHub stars than Mcporter (5k against 5.1k); both are community servers, and both run locally.
  • Hyperresearch by jordan-gibbs has more GitHub stars than Mcporter (5.2k against 5.1k); both are community servers, and both run locally.
  • Aci by aipotheosis-labs has fewer GitHub stars than Mcporter (4.9k against 5.1k); both are community servers, and both run locally.

Before you connect Mcporter

  • Give Mcporter its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mcporter tool call until you trust what it does with them.
  • Treat text that Mcporter fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mcporter on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mcporter

How marketing and sales teams put Mcporter to work, by company size. Pick the size closest to yours and start Mcporter on one use case.

Small business

  • A small business with a developer can use Mcporter to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Mcporter to explain and fix a marketing site issue without context switching between tools.
  • Mcporter runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Mcporter to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Mcporter to keep scripts and automations documented and versioned as they change.
  • Start Mcporter on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Mcporter with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Mcporter so web and marketing engineering share one reviewed way of working with AI.
  • Mcporter is a community server, so have security review the code and pin a version before Mcporter touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mcporter README

From openclaw/mcporter on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCPorter 🧳, Carry MCP tools into scripts, CLIs, and agents

MCPorter is a TypeScript runtime and command-line tool for discovering and calling Model Context Protocol servers. It is for developers and coding agents that need the same MCP tools from a terminal, a script, or a generated standalone CLI.

Install

Try the CLI without installing it:

npx mcporter --version

Install it for repeated command-line use:

brew install steipete/tap/mcporter
# or
npm install -g mcporter

Node 24 or newer is required for npm installs. For the TypeScript runtime, add mcporter to your project with your package manager. Signed macOS binaries and the other supported install paths are covered in the install guide.

Quick start

Inspect a public MCP server, then call one of its tools:

npx mcporter list https://mcp.context7.com/mcp --brief
npx mcporter call https://mcp.context7.com/mcp.resolve-library-id \
  query="React hooks docs" libraryName=react

The first command prints the server's TypeScript-style tool signatures. The second returns matching Context7 library IDs without requiring local configuration or credentials. See the five-minute quickstart for resources, generated CLIs, and typed clients.

Core workflows

Goal Command or API Details
Discover servers and tools mcporter list CLI reference
Call tools and read resources mcporter call, mcporter resource Call syntax
Connect to a one-off URL or stdio command --http-url, --stdio Ad-hoc servers
Complete or seed OAuth mcporter auth, mcporter vault Configuration
Encrypt the OAuth vault at rest MCPORTER_VAULT_PASSWORD Vault Encryption
Generate a focused CLI mcporter generate-cli CLI generator
Generate TypeScript types or clients mcporter emit-ts Typed clients
Capture a reproducible MCP session mcporter record, mcporter replay Record and replay

Human-readable output goes to stdout by default. Use JSON output when another program or agent needs a stable result, and consult mcporter <command> --help for the flags supported by that command.

Configuration and discovery

MCPorter reads project and user config, then imports MCP servers from Cursor, Claude Code and Desktop, Codex, Windsurf, OpenCode, and VS Code. A minimal config/mcporter.json looks like this:

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Config files accept JSONC, environment placeholders (${VAR}, ${VAR:-fallback}, or whole-value $env:VAR), HTTP and stdio definitions, OAuth settings, tool filters, and lifecycle policy. The configuration guide defines precedence and the full schema; the import reference lists every discovered client format. The ${env:VAR} form used by some MCP clients is not supported; mcporter rejects it with the accepted alternatives instead of sending it literally.

Chrome DevTools definitions using --autoConnect can control Chrome through a paired OpenClaw extension relay. MCPorter discovers OpenClaw's active extension relay endpoint, with a 20-second cold-start budget and an optional MCPORTER_CHROME_DEVTOOLS_RELAY_URL in the canonical Chrome definition’s env map. Failed discovery reports its cause without guessing a default port. It uses Browser Relay Authentication v2 over one retained loopback socket, keeps the host key out of the network and child process, and gives chrome-devtools-mcp a credential-free loopback URL plus ephemeral authorization through an OS-protected preload handoff. Old relay authentication is never retried. Under shared ownership, both the default prefer and require fail closed; off requires matching canonical configuration. Caller shell relay controls do not override the daemon’s canonical Chrome configuration.

TypeScript runtime

Use createRuntime() when a process needs explicit server definitions, connection reuse, or several calls:

import { createRuntime } from 'mcporter';

const runtime = await createRuntime({
  servers: [{ name: 'context7', command: { kind: 'http', url: new URL('https://mcp.context7.com/mcp') } }],
});
try {
  console.log((await runtime.listTools('context7')).map((tool) => tool.name));
} finally {
  await runtime.close();
}

callOnce() handles a single configured call and cleanup. createServerProxy() maps MCP tool names to callable camelCase properties and wraps results with text, Markdown, JSON, image, and raw-content helpers. See the runtime overview and tool-calling guide.

Protocols and long-lived servers

MCPorter connects to stdio, Streamable HTTP, and legacy SSE servers. It negotiates the current 2026-07-28 protocol or a legacy revision per server, while legacy connections advertise client elicitation capabilities. Interactive CLI calls can answer form and URL requests; headless and daemon-managed calls decline them with an actionable hint.

The repository's modern and legacy fixture servers cover both generations; CI exercises representative fixture paths end-to-end over stdio and Streamable HTTP. See protocols and interactive requests for negotiation controls and the keep-alive daemon for pooled servers, the MCP bridge, and Chrome DevTools integration.

Development

pnpm install --frozen-lockfile
pnpm check
pnpm test
pnpm docs:site

The project uses the pnpm version declared in package.json and Vitest 5. Use Node 24 or 26 for development: CI checks Node 24 on Linux, macOS, and Windows, plus Node 26 on Linux. Vitest 5 excludes the non-LTS Node 25 line; the package's runtime requirement remains Node 24 or newer. Live hosted-server tests are opt-in; see live tests and manual testing.

Related

License

MIT, see LICENSE.

Questions about Mcporter

What is the Mcporter MCP server?

Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli. Mcporter is maintained by openclaw on GitHub at openclaw/mcporter, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mcporter MCP server?

Add Mcporter to your AI app's MCP config with the command npx -y mcporter. In Claude Code, run claude mcp add --transport stdio mcporter -- npx -y mcporter. To run Mcporter this way you need Node.js installed.

Does Mcporter need an API key?

The registry lists no required keys for Mcporter. Check the Mcporter README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mcporter an official MCP server?

No. Mcporter is a community server maintained by openclaw. Community servers can be excellent; read the code and the open issues before you give Mcporter access to company data.

What license is Mcporter under?

Mcporter is released under the MIT license, according to its GitHub repository. The license covers the code of Mcporter; the service it connects to has its own terms.