mcp-pear
v0.2.2MCP server for Pear Protocol: markets, positions, orders, portfolio, and gated trade execution.
Values you need
| Variable | What it is | |
|---|---|---|
PEAR_API_KEY | optional secret | Pear API key for authenticated read/write tools (single-user mode). Public tools work without it. |
PEAR_ADDRESS | optional | Wallet address (0x...) bound to PEAR_API_KEY. Required alongside PEAR_API_KEY. |
PEAR_JWT | optional secret | Pre-minted Pear JWT for multi-tenant orchestrators (JWT pass-through mode). Used directly when set. |
PEAR_REFRESH_TOKEN | optional secret | Refresh token so the server refreshes an expired JWT itself instead of requiring a restart. |
PEAR_TRADE_ENABLED | optional | Set to 'true' to enable the write/trade-execution tools. Off by default. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-pear -- npx -y @marvelcodes/mcp-pear@0.2.2Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-pear": {
"args": [
"-y",
"@marvelcodes/mcp-pear@0.2.2"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-pear": {
"args": [
"-y",
"@marvelcodes/mcp-pear@0.2.2"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp-pear": {
"args": [
"-y",
"@marvelcodes/mcp-pear@0.2.2"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-pear]
command = "npx"
args = ["-y", "@marvelcodes/mcp-pear@0.2.2"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_health, list_markets, get_active_markets, get_pair_ratio, get_account_summary, get_open_positions, get_open_orders, get_trade_history, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json