LibreAI / Dev Tools / mcporter
// devtools · openclaw/mcporter

mcporter

Call MCP servers from TypeScript or the CLI — MCP tools disguised as a simple TypeScript API.

★ 5.1k stars⑂ 349 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

mcporter is an open-source dev tools project by openclaw (openclaw/mcporter on GitHub). It has 5,053 GitHub stars and 349 forks, is released under the MIT license, and was last updated on GitHub on 7 October 2026.

GitHub stars
5,053
Forks
349
License
MIT
Last updated on GitHub
7 October 2026
Category
Dev Tools
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify which MCP servers you need to call

    List the servers (local stdio or remote HTTP) whose tools you want from scripts or a CLI.

  2. Install mcporter

    Run it with npx, install the Homebrew tap, or install it globally from npm.

  3. Configure or discover servers

    Let mcporter discover your existing client configs, or write a config file with HTTP/stdio definitions, env placeholders and OAuth settings.

  4. Call your first tool

    List a server's tools, then call one from the CLI or from TypeScript with the server proxy.

// features

Why people love it

TypeScript-native calling

createServerProxy maps MCP tool names to callable camelCase properties, with results wrapped as text, Markdown, JSON, image or raw content helpers.

CLI packaging

Any MCP server can be exercised — and packaged — as a command-line tool, one call or long-lived.

All transports

Connects to stdio, Streamable HTTP and legacy SSE servers, negotiating the current or legacy MCP protocol revisions per server.

Config discovery and import

Imports server definitions from the MCP client formats you already use; config files accept JSONC, environment placeholders, OAuth settings, tool filters and lifecycle policy.

Long-lived server handling

Keeps persistent connections to long-lived servers for interactive workflows, including answering form and URL elicitations from the CLI.

One-off calls

callOnce handles a single configured call with clean setup and teardown for scripts and cron-style jobs.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Clone MCPorter if you want the source; most users run it via npx.

    git clone https://github.com/openclaw/mcporter.git
    cd mcporter
  2. Install mcporter

    Install globally from npm, or via the Homebrew tap.

    npm install -g mcporter
    # or: brew install steipete/tap/mcporter
  3. List and call a tool

    Inspect a remote MCP server's tools and call one directly from the CLI.

    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
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains MCPorter?

MCPorter is maintained by openclaw and contributors; its site is mcporter.sh.

Is MCPorter free?

Yes — it is open source under the MIT license.

Does it need a paid API key?

No. MCPorter is a client-side tool; the MCP servers you call may have their own auth, which mcporter's config supports via env placeholders and OAuth settings.

How does it compare to using an MCP client app?

Client apps are interactive hosts for models; MCPorter is for code and shell — calling MCP tools from TypeScript or CLI scripts deterministically, without a chat UI.

How do I get started?

npx mcporter list against any MCP server URL to see its tools, then npx mcporter call to invoke one.

// keep exploring

Similar tools

Dev Tools

cli-printing-press

Generates agent-first Go CLIs (plus MCP servers) for any API or website — with local SQLite sync built in

★ 4.8k starsMIT
View guide →
Dev Tools

cortex

Generate interactive API docs, typed SDKs in 12 languages and MCP servers from your API specs.

★ 3.2k starsMIT
View guide →
Dev Tools

ddgs

A Python metasearch library aggregating many web search services — plus CLI, API and MCP server

★ 3.0k starsMIT
View guide →
Dev Tools

judge0

Judge0 is a robust, scalable, open-source online code execution system with a simple HTTP API

★ 4.5k starsGPL-3.0
View guide →
Dev Tools

inspector

MCPJam Inspector: chat with, inspect, debug, and evaluate MCP servers across clients and models.

★ 2.2k starsApache-2.0
View guide →
Dev Tools

mcp-unifi-applications

Query the UniFi API docs through your AI agent.

★ 39 starsMIT
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if mcporter is not the right fit.

Get mcporter

Free and open — grab the source, star the repo, and start creating.