NestDaddy

Mcp Pear

io.github.MarvelNwachukwu/mcp-pear · v0.2.2

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

Connect Runs on your machine

Terminal
claude mcp add mcp-pear -e PEAR_API_KEY=<PEAR_API_KEY> -e PEAR_ADDRESS=<PEAR_ADDRESS> -e PEAR_JWT=<PEAR_JWT> -e PEAR_REFRESH_TOKEN=<PEAR_REFRESH_TOKEN> -e PEAR_TRADE_ENABLED=<PEAR_TRADE_ENABLED> -- npx -y @marvelcodes/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-pear": {
      "command": "npx",
      "args": [
        "-y",
        "@marvelcodes/[email protected]"
      ],
      "env": {
        "PEAR_API_KEY": "<PEAR_API_KEY>",
        "PEAR_ADDRESS": "<PEAR_ADDRESS>",
        "PEAR_JWT": "<PEAR_JWT>",
        "PEAR_REFRESH_TOKEN": "<PEAR_REFRESH_TOKEN>",
        "PEAR_TRADE_ENABLED": "<PEAR_TRADE_ENABLED>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-pear": {
      "command": "npx",
      "args": [
        "-y",
        "@marvelcodes/[email protected]"
      ],
      "env": {
        "PEAR_API_KEY": "<PEAR_API_KEY>",
        "PEAR_ADDRESS": "<PEAR_ADDRESS>",
        "PEAR_JWT": "<PEAR_JWT>",
        "PEAR_REFRESH_TOKEN": "<PEAR_REFRESH_TOKEN>",
        "PEAR_TRADE_ENABLED": "<PEAR_TRADE_ENABLED>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mcp-pear": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@marvelcodes/[email protected]"
      ],
      "env": {
        "PEAR_API_KEY": "<PEAR_API_KEY>",
        "PEAR_ADDRESS": "<PEAR_ADDRESS>",
        "PEAR_JWT": "<PEAR_JWT>",
        "PEAR_REFRESH_TOKEN": "<PEAR_REFRESH_TOKEN>",
        "PEAR_TRADE_ENABLED": "<PEAR_TRADE_ENABLED>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
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.

Details

Package@marvelcodes/[email protected] (NPM, stdio)
First published18 Jul 2026
Last updated18 Jul 2026
Registry nameio.github.MarvelNwachukwu/mcp-pear

More other servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.