| name | mcpx |
| description | Interface for MCP (Model Context Protocol) servers via CLI. Use when you need to interact with external tools, APIs, or data sources through MCP servers. |
mcpx
Access MCP servers through the command line. MCP enables interaction with external systems like GitHub, filesystems, databases, and APIs.
Commands
| Command | Output |
|---|
mcpx | Show help |
mcpx list | List all registry servers |
mcpx <server> | Show tools with parameters |
mcpx <server>/<tool> | Get tool JSON schema |
mcpx <server>/<tool> '<json>' | Call tool with arguments |
mcpx daemon start|stop | Manage persistent connections (for stateful servers) |
Add -d to include descriptions (e.g., mcpx filesystem -d)
Workflow
- Discover:
mcpx list → see available servers
- Explore:
mcpx <server> → see tools with parameters
- Inspect:
mcpx <server>/<tool> → get full JSON input schema
- Execute:
mcpx <server>/<tool> '<json>' → run with arguments
Examples
mcpx list
mcpx registry get filesystem
mcpx time
mcpx list -d
mcpx time/get_current_time
mcpx filesystem/read_file '{"path":"./README.md"}' --json
mcpx server/tool - <<EOF
{"content": "Text with 'quotes' inside"}
EOF
cat args.json | mcpx server/tool -
mcpx filesystem/search_files '{"path": "src/", "pattern": "*.ts"}' --json | jq -r '.content[0].text' | head -1 | xargs -I {} sh -c 'mcpx filesystem/read_file "{\"path\": \"{}\"}"'
Options
| Flag | Purpose |
|---|
-j, --json | JSON output for scripting |
-d | Include descriptions |
Exit Codes
0: Success
1: Client error (bad args, invalid config)
2: Server error (tool failed)
3: Network error