mcporter for Openclaw

A CLI utility for interacting with Model Context Protocol (MCP) servers, allowing direct tool execution, authentication, and code generation.

steipete
v1.0.0
Jan 5, 2026
194
67.5k
2k

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mcporter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mcporter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is mcporter?

mcporter is a versatile command-line interface designed to bridge the gap between AI agents and Model Context Protocol (MCP) servers. By enabling developers to list, configure, and authenticate with various MCP tools directly, it simplifies the integration of third-party capabilities into Openclaw Skills. Whether you are dealing with local stdio-based servers or remote HTTP endpoints, this tool provides a unified interface for tool discovery and execution.

The utility excels at handling complex authentication flows like OAuth and offers robust configuration management. With mcporter, developers can treat MCP tools as first-class CLI commands or generate TypeScript types to ensure type-safe interactions within their own applications. It is an essential component for anyone building advanced autonomous agents that require reliable access to external tools and data sources.

mcporter Use Cases

  • Executing MCP tools directly from the terminal or shell scripts.
  • Authenticating with third-party services via OAuth for secure MCP tool access.
  • Generating TypeScript clients and type definitions for MCP servers to use in your own projects.
  • Managing multiple MCP configurations and server environments efficiently.
  • Debugging MCP server responses and inspecting schemas during the development of Openclaw Skills.

How mcporter Works

  1. Discover available tools by listing connected servers or inspecting specific tool schemas.
  2. Configure authentication credentials or connection parameters for remote HTTP or local stdio MCP servers.
  3. Execute tool calls using various syntaxes, including selector patterns, function-style calls, or raw JSON payloads.
  4. Manage the server lifecycle using the built-in daemon for persistent connectivity.
  5. Generate CLI wrappers or TypeScript types to streamline integration with other development workflows.

mcporter Setup

To use this tool within your Openclaw Skills workflow, ensure you have Node.js installed and run the following command:

npm install -g mcporter

Verify the installation by listing available servers:

mcporter list

mcporter Data Schema & Taxonomy

mcporter manages its state and configuration through a JSON-based schema. By default, it utilizes a configuration file located at ./config/mcporter.json. The data organization includes:

Component Description
Server Config Stores URLs, command paths, and connection settings for MCP providers.
Auth State Persists OAuth tokens and authentication metadata for secure sessions.
Schema Cache Stores retrieved tool definitions, parameter requirements, and descriptions.
Output Formats Supports standard human-readable text or machine-readable JSON via the --output json flag.

mcporter Advanced Features

  • Support for ad-hoc server execution via stdio command strings.
  • Integrated OAuth flow management for servers requiring external authentication.
  • Automated CLI generation for specific MCP servers to create custom binary wrappers.
  • High-fidelity type generation with emit-ts supporting both client and type-only modes.
  • Background daemon management (start, stop, status) to optimize performance in Openclaw Skills environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*