MCP server for Pear Protocol: markets, positions, orders, portfolio, and gated trade execution.
registry version 0.2.2
npm
npx -y @marvelcodes/mcp-pearnpm
npx -y @marvelcodes/mcp-pear@0.2.2
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}{
"mcpServers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear@0.2.2"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env PEAR_API_KEY=<YOUR_PEAR_API_KEY> --env PEAR_JWT=<YOUR_PEAR_JWT> --env PEAR_REFRESH_TOKEN=<YOUR_PEAR_REFRESH_TOKEN> mcp-pear -- npx -y @marvelcodes/mcp-pear
claude mcp add --env PEAR_API_KEY=<YOUR_PEAR_API_KEY> --env PEAR_JWT=<YOUR_PEAR_JWT> --env PEAR_REFRESH_TOKEN=<YOUR_PEAR_REFRESH_TOKEN> mcp-pear -- npx -y @marvelcodes/mcp-pear@0.2.2
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}{
"mcpServers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear@0.2.2"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}{
"servers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear@0.2.2"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}{
"mcpServers": {
"mcp-pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear@0.2.2"
],
"env": {
"PEAR_API_KEY": "<YOUR_PEAR_API_KEY>",
"PEAR_JWT": "<YOUR_PEAR_JWT>",
"PEAR_REFRESH_TOKEN": "<YOUR_PEAR_REFRESH_TOKEN>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
PEAR_API_KEY secret — Pear API key for authenticated read/write tools (single-user mode). Public tools work without it.PEAR_ADDRESS — Wallet address (0x...) bound to PEAR_API_KEY. Required alongside PEAR_API_KEY.PEAR_JWT secret — Pre-minted Pear JWT for multi-tenant orchestrators (JWT pass-through mode). Used directly when set.PEAR_REFRESH_TOKEN secret — Refresh token so the server refreshes an expired JWT itself instead of requiring a restart.PEAR_TRADE_ENABLED — Set to 'true' to enable the write/trade-execution tools. Off by default.⭐ 1 stars · 最近更新于 116 天前 · MIT license
mcp pear The Pear Protocol MCP server for Hyperliquid pair trading — connect Claude, Cursor, or any AI agent to on chain perps: browse pair markets, read positions and portfolio, and (opt in) execute pair trades. Model Context Protocol (MCP) server for Pear Protocol. Gives Claude, or any MCP compati…
Summary from the project README — github.com/MarvelNwachukwu/mcp-pear
Distributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.
mcp pear The Pear Protocol MCP server for Hyperliquid pair trading — connect Claude, Cursor, or any AI agent to on chain perps: browse pair markets, read positions and portfolio, and (opt in) execute pair trades. Model Context Protocol (MCP) server for Pear Protocol. Gives Claude, or any MCP compati
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/MarvelNwachukwu/mcp-pear. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/mcp-pear/)
HTML
<a href="https://mcpnav.net/server/mcp-pear/"><img src="https://mcpnav.net/badge/mcp-pear.svg" alt="Listed on MCPNav" height="20"></a>