Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Mcpx Rust

FreeNot checked

A Rust implementation of mcpx, a CLI utility for Model Context Protocol (MCP) servers

GitHubEmbed

About

A Rust implementation of mcpx, a CLI utility for Model Context Protocol (MCP) servers

README

A Rust implementation of mcpx, a CLI utility that transforms Model Context Protocol (MCP) servers into composable command-line tools.

Features

  • Server Discovery: List all configured MCP servers.
  • Tool Discovery: List available tools for a specific server.
  • Dynamic Invocation: Map MCP tool schemas to CLI arguments.
  • JSON Output: Optional JSON output for piping into tools like jq.
  • Configuration: Simple TOML-based configuration.

Installation

cargo install mcpx-rust

Configuration

mcpx-rust reads server definitions from ~/.config/mcpx/config.toml.

Example config.toml:

[mcp_servers.everything]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-everything"]

[mcp_servers.github]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-github"]
env = { GITHUB_PERSONAL_ACCESS_TOKEN = "your_token_here" }

You can also use the MCPX_CONFIG environment variable to point to a different configuration file.

Usage

Usage: mcpx-rust [OPTIONS] [SERVER] [TOOL] [ARGS]... [COMMAND]

To list tools for a server, use: mcpx-rust <SERVER>

List configured servers

mcpx-rust list

List tools for a server (Discovery)

mcpx-rust <server_name>
# OR
mcpx-rust <server_name> --help

Call a tool

mcpx-rust <server_name> <tool_name> [args...]

mcpx-rust supports multiple argument formats and automatically normalizes them based on the server's JSON Schema:

  • GNU-style flags: --key value or --flag
  • Key-Value pairs: key=value
  • Positional arguments: Passed to the tool as a list (useful for servers that handle unstructured input or for extra validation).
  • Schema-Aware Coercion: Values are automatically converted to JSON primitives (booleans, numbers) based on the server's schema. If no schema is available, the tool is conservative and defaults to strings for ambiguous identifiers like "1.1" while still supporting explicit JSON objects and arrays.
  • Flat Server Support: Automatically detects servers that expect a flat list of arguments (like args: ["key=value"]) and maps your flags accordingly.

Example:

# Using flags
mcpx-rust spec sc_init --name iot-hub --recursive

# Using key=value pairs
mcpx-rust everything echo message="Hello from Rust"

To improve performance, mcpx-rust caches tool schemas locally in ~/.cache/mcpx-rust/.

JSON output

mcpx-rust everything echo message="Hello" --json

License

MIT

from github.com/benjamesmurray/mcpx-rust

Installing Mcpx Rust

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/benjamesmurray/mcpx-rust

FAQ

Is Mcpx Rust MCP free?

Yes, Mcpx Rust MCP is free — one-click install via Unyly at no cost.

Does Mcpx Rust need an API key?

No, Mcpx Rust runs without API keys or environment variables.

Is Mcpx Rust hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Mcpx Rust in Claude Desktop, Claude Code or Cursor?

Open Mcpx Rust on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Mcpx Rust with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs