Transform stdio-based MCP servers into a first‑class CLI tool.
mcpal
By pawelb0
Scriptable command-line client for the Model Context Protocol
- Views
- 2
- Repository stars
- 2
- Platforms
- Windows, macOS, Linux
- Workspace
- CLI
Platforms
Windows, macOS, Linux
Configuration guide
Inspect, call, and script any MCP server — over stdio or HTTP, with OAuth, from one CLI.
The curl-equivalent for the Model Context Protocol.
Quickstart • Install • Examples • Docs
> Your editors (Claude Desktop, Cursor, Zed, opencode) configure dozens > of MCP servers — GitHub, Linear, Notion, a filesystem sandbox. Once > configured, the only way to drive them is from inside that chat app. > mcpal is the shell tool that was missing: point it at any server and > call tools, read resources, get prompts, run raw JSON-RPC, or stream > notifications.
~/.config/mcpal/config.toml on Linux,
~/Library/Application Support/mcpal/config.toml on macOS,
%APPDATA%\mcpal\config.toml on Windows. Override with
MCPAL_CONFIG=/path/to/file.
[server.everything]
transport = "stdio"
command = "npx"
args = ["-y", "@modelcontextprotocol/server-everything"]
[server.notion]
transport = "http"
url = "https://mcp.notion.com/v1"
auth = { type = "bearer_env", env = "NOTION_MCP_TOKEN" }
Secrets do not live in this file. mcpal auth login writes them to
the OS keyring.
mcpal
Inspect, call, and script any MCP server — over stdio or HTTP, with OAuth, from one CLI.
The curl-equivalent for the Model Context Protocol.
Quickstart • Install • Examples • Docs
> Your editors (Claude Desktop, Cursor, Zed, opencode) configure dozens > of MCP servers — GitHub, Linear, Notion, a filesystem sandbox. Once > configured, the only way to drive them is from inside that chat app. > mcpal is the shell tool that was missing: point it at any server and > call tools, read resources, get prompts, run raw JSON-RPC, or stream > notifications.
Why
- Debug servers you're building.
tool call,tool describe,raw,watchagainst the server you just started — no chat-UI round-trip. - Script integrations in CI. A nightly job that pulls Linear tickets or files a GitHub issue, through the same servers your editors use.
- Call already-configured servers. Cursor set up
linear? Runmcpal tool list cursor:linear. No copy-pastingmcp.json. - Skip the upfront tool-definition tax. A chat app loads every server's full tool catalogue into the model's context. mcpal invokes one tool per shell line — pay for what you call. More in Why a CLI for MCP.
One-liner — no setup
# any stdio MCP server, ephemeral
mcpal tool call "cmd:npx -y @modelcontextprotocol/server-everything" \
echo --message hi
# anonymous HTTP server
mcpal --auth none tool list https://mcp.context7.com/mcp
# HTTP + env-backed bearer (no token in shell history)
GH_TOKEN=ghp_… mcpal --auth env:GH_TOKEN \
tool list https://api.githubcopilot.com/mcp/
Full table of one-line `` shapes: One-line MCP.
Install
| Platform | One-liner |
|---|---|
| macOS / Linux | brew install pawelb0/tap/mcpal |
| Debian / Ubuntu | curl -fsSLO …/releases/latest/download/mcpal_amd64.deb && sudo dpkg -i mcpal_amd64.deb |
| Any (Rust) | cargo install --git https://github.com/pawelb0/mcpal --path crates/mcpal |
| Windows | cargo install --git https://github.com/pawelb0/mcpal --path crates/mcpal |
Full guide — .deb URL, curl | sh installer, shell completions, verify — in the Install chapter.
Configuration
~/.config/mcpal/config.toml on Linux,
~/Library/Application Support/mcpal/config.toml on macOS,
%APPDATA%\mcpal\config.toml on Windows. Override with
MCPAL_CONFIG=/path/to/file.
[server.everything]
transport = "stdio"
command = "npx"
args = ["-y", "@modelcontextprotocol/server-everything"]
[server.notion]
transport = "http"
url = "https://mcp.notion.com/v1"
auth = { type = "bearer_env", env = "NOTION_MCP_TOKEN" }
Secrets do not live in this file. mcpal auth login writes them to
the OS keyring.
OpenSeek - 广度求索: open-source TUI coding agent with multi-provider routing, MCP, LSP, and Plan/Agent/YOLO modes.
AdaL is an AI agent for video: launch films, product demos and UGC ads. This is the community home for the AdaL CLI. adalagent.ai
Open-source terminal coding agent. Use 15+ model providers, local models or your own key. Plan mode before edits. Imports your Codex, Cursor, Claude Code…
