mcp-pear

v0.2.2
io.github.MarvelNwachukwu/mcp-pear Checked 2 days ago Published 4 months ago

MCP server for Pear Protocol: markets, positions, orders, portfolio, and gated trade execution.

Values you need

VariableWhat it is
PEAR_API_KEYoptional secret Pear API key for authenticated read/write tools (single-user mode). Public tools work without it.
PEAR_ADDRESSoptional Wallet address (0x...) bound to PEAR_API_KEY. Required alongside PEAR_API_KEY.
PEAR_JWToptional secret Pre-minted Pear JWT for multi-tenant orchestrators (JWT pass-through mode). Used directly when set.
PEAR_REFRESH_TOKENoptional secret Refresh token so the server refreshes an expired JWT itself instead of requiring a restart.
PEAR_TRADE_ENABLEDoptional 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.2
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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