MCP Client

mcpal

By pawelb0

Scriptable command-line client for the Model Context Protocol

Views
2
Repository stars
2
Platforms
Windows, macOS, Linux
Workspace
CLI
Share resource
Capabilities & compatibility

Platforms

Windows, macOS, Linux

Connection & setup

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.

README

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, watch against 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? Run mcpal tool list cursor:linear. No copy-pasting mcp.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.

Related resources