MCP server for Pear Protocol: markets, positions, orders, portfolio, and gated trade execution.
Connect Runs on your machine
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]
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
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. |
Details
| Package | @marvelcodes/[email protected] (NPM, stdio) |
| First published | 18 Jul 2026 |
| Last updated | 18 Jul 2026 |
| Registry name | io.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.
