Stripe MCP
Stripe’s official server lets AI view and manage customers, products, payments and invoices. Connect to Stripe’s cloud and sign in with OAuth.
MCP server for Pear Protocol: markets, positions, orders, portfolio, and gated trade execution.
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 4/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 3/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 7/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install MCP Pear. Follow https://mcp.popnx.com/i/marvelnwachukwu-mcp-pear.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a MCP Pear key (create it on the maker’s site) · 1 setting(s) to fill in (PEAR_ADDRESS) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Pear for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "pear": { "command": "npx", "args": [ "-y", "@marvelcodes/mcp-pear" ], "env": { "PEAR_API_KEY": "your-value", "PEAR_ADDRESS": "your-value", "PEAR_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PEAR_API_KEY, PEAR_REFRESH_TOKEN, PEAR_ADDRESS, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Pear tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
node -vMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v
Install once; it works for everything that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PEAR_ADDRESS Wallet address (0x...) bound to PEAR_API_KEY. Required alongside PEAR_API_KEY.Descriptions are as written by the maker.
SettingsDeveloperEdit Config
{
"mcpServers": {
"pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "your-value",
"PEAR_ADDRESS": "your-value",
"PEAR_REFRESH_TOKEN": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use MCP Pear and tell me what you can do for me, then show me one thing✓ If Claude says it is using MCP Pear or shows a MCP Pear tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
PEAR_JWT Pre-minted Pear JWT for multi-tenant orchestrators (JWT pass-through mode). Used directly when set.PEAR_TRADE_ENABLED Set to 'true' to enable the write/trade-execution tools. Off by default.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect MCP Pear yet
MCP Pear runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect MCP Pear
B · Others in Online shops & payments that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a MCP Pear key (create it on the maker’s site) · 1 setting(s) to fill in (PEAR_ADDRESS) · Install Node.js on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Pear for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user pear --env PEAR_API_KEY=your-value --env PEAR_ADDRESS=your-value --env PEAR_REFRESH_TOKEN=your-value -- npx -y @marvelcodes/mcp-pear 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PEAR_API_KEY, PEAR_REFRESH_TOKEN, PEAR_ADDRESS, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Pear tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
node -vMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v
Install once; it works for everything that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PEAR_ADDRESS Wallet address (0x...) bound to PEAR_API_KEY. Required alongside PEAR_API_KEY.Descriptions are as written by the maker.
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user pear --env PEAR_API_KEY=your-value --env PEAR_ADDRESS=your-value --env PEAR_REFRESH_TOKEN=your-value -- npx -y @marvelcodes/mcp-pearReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see MCP Pear listed as connected
Use MCP Pear and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using MCP Pear or shows a MCP Pear tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
PEAR_JWT Pre-minted Pear JWT for multi-tenant orchestrators (JWT pass-through mode). Used directly when set.PEAR_TRADE_ENABLED Set to 'true' to enable the write/trade-execution tools. Off by default.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a MCP Pear key (create it on the maker’s site) · 1 setting(s) to fill in (PEAR_ADDRESS) · Install Node.js on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Pear for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "pear": { "command": "npx", "args": [ "-y", "@marvelcodes/mcp-pear" ], "env": { "PEAR_API_KEY": "your-value", "PEAR_ADDRESS": "your-value", "PEAR_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PEAR_API_KEY, PEAR_REFRESH_TOKEN, PEAR_ADDRESS, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Pear tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
node -vMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v
Install once; it works for everything that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PEAR_ADDRESS Wallet address (0x...) bound to PEAR_API_KEY. Required alongside PEAR_API_KEY.Descriptions are as written by the maker.
In the MCP Pear settings, PEAR_API_KEY, PEAR_REFRESH_TOKEN, PEAR_ADDRESS is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use MCP Pear and tell me what you can do for me, then show me one thing✓ If Cursor says it is using MCP Pear or shows a MCP Pear tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
PEAR_JWT Pre-minted Pear JWT for multi-tenant orchestrators (JWT pass-through mode). Used directly when set.PEAR_TRADE_ENABLED Set to 'true' to enable the write/trade-execution tools. Off by default.Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a MCP Pear key (create it on the maker’s site) · 1 setting(s) to fill in (PEAR_ADDRESS) · Install Node.js on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Pear for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "pear": { "type": "stdio", "command": "npx", "args": [ "-y", "@marvelcodes/mcp-pear" ], "env": { "PEAR_API_KEY": "your-value", "PEAR_ADDRESS": "your-value", "PEAR_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For PEAR_API_KEY, PEAR_REFRESH_TOKEN, PEAR_ADDRESS, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Pear tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
node -vMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed
Open the Node.js download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v
Install once; it works for everything that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PEAR_ADDRESS Wallet address (0x...) bound to PEAR_API_KEY. Required alongside PEAR_API_KEY.Descriptions are as written by the maker.
In the MCP Pear settings, PEAR_API_KEY, PEAR_REFRESH_TOKEN, PEAR_ADDRESS is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use MCP Pear and tell me what you can do for me, then show me one thing✓ If VS Code says it is using MCP Pear or shows a MCP Pear tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
PEAR_JWT Pre-minted Pear JWT for multi-tenant orchestrators (JWT pass-through mode). Used directly when set.PEAR_TRADE_ENABLED Set to 'true' to enable the write/trade-execution tools. Off by default.Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user pear --env PEAR_API_KEY=your-value --env PEAR_ADDRESS=your-value --env PEAR_REFRESH_TOKEN=your-value -- npx -y @marvelcodes/mcp-pearClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "your-value",
"PEAR_ADDRESS": "your-value",
"PEAR_REFRESH_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"pear": {
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "your-value",
"PEAR_ADDRESS": "your-value",
"PEAR_REFRESH_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"pear": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@marvelcodes/mcp-pear"
],
"env": {
"PEAR_API_KEY": "your-value",
"PEAR_ADDRESS": "your-value",
"PEAR_REFRESH_TOKEN": "your-value"
}
}
}
}PEAR_API_KEY secret required envPEAR_ADDRESS required envPEAR_JWT secret envPEAR_REFRESH_TOKEN secret required envPEAR_TRADE_ENABLED envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026
The registry name was verified with the GitHub account MarvelNwachukwu, which owns the repo
Code last changed 4 months ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
No entries on OSV.dev for @marvelcodes/mcp-pear@0.2.2
Checks only this package version, not every dependency · checked Nov 16, 2026
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/marvelnwachukwu-mcp-pear)Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: PEAR_API_KEY, PEAR_REFRESH_TOKEN
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 4 months ago, and the latest version (0.2.2) reached the registry 4 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: Stripe MCP, flightclaw, Trade It, Marketplace Ad Pros: Amazon Ads & Seller Central, idealo MCP Server
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Stripe’s official server lets AI view and manage customers, products, payments and invoices. Connect to Stripe’s cloud and sign in with OAuth.
Search ~300 airlines and book flights with a checkout link. OAuth sign-in by email code.
Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Search products, compare prices and discover deals across 6 European markets with your AI assistant.
| This one MCP Pear | Stripe MCP | flightclaw | Trade It | Marketplace Ad Pros: Amazon Ads & Seller Central | idealo MCP Server | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install |
| Needs a key | Yes | No | No | No | No | No |
| Add with + in Claude | No | Yes | No | No | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 5/5 | 4/4 | 4/4 |
| License | MIT | MIT | MIT | CC0-1.0 | MIT | MIT |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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-compatible agent, access to markets, pair ratios, positions, orders, trade history, portfolio, and (v0.2) full trade execution on Hyperliquid.
v0.2 adds trade execution. Ten write tools (open, close, and adjust positions; manage leverage and risk; cancel orders) are off by default behind
PEAR_TRADE_ENABLED=true. Pear signs server-side, so mcp-pear never holds private keys.
Pear is a Hyperliquid-backed perps platform for pair markets: long one basket against another. Every pair has a live ratio that moves as the legs diverge. More at pearprotocol.io.
Public (no auth):
get_health: API health and uptimelist_markets: browse pair markets with filters and paginationget_active_markets: top gainers, losers, and highlighted pairsget_pair_ratio: current ratio, 24h change, and funding for a specific pairAuthenticated read:
get_account_summary: your account headerget_open_positions: your open positions with PnLget_open_orders: your open limit, TP, and SL ordersget_twap_orders: your active TWAP ordersget_trade_history: your closed trades with realized PnLget_portfolio: bucketed PnL across 1d, 1w, 1m, 1y, and all-timeget_agent_wallet: the agent wallet Pear uses to sign your tradesAuthenticated write (v0.2, gated behind PEAR_TRADE_ENABLED=true):
create_agent_wallet: create the agent walletopen_position, close_position, close_all_positions: open and close pair positionsadjust_position, adjust_leverage: change size or leverage on a live positionset_risk_parameters: set or update TP and SLcancel_order, cancel_twap_order: cancel pending ordersFull parameter reference in Tool reference. See Trade execution (v0.2) for the gate and Hyperliquid funding rules.
# Run directly
npx -y @marvelcodes/mcp-pear@latest
pnpm install -g @marvelcodes/mcp-pear mcp-pear
Pin `@latest` (or a specific version) in the npx spec. Plain
npx @marvelcodes/mcp-pearcan launch a stale cached version: npx prefers its local cache over the npm registry when the spec is unpinned, so after a new release lands you may still be running the old one.@latestre-resolves against the registry each launch; pin like@0.2.0instead if you want a frozen version. Stuck on an old version after upgrading? Clear the npx cache:rm -rf ~/.npm/_npx(macOS/Linux).
For the authenticated tools, mint a key:
npx -y @marvelcodes/mcp-pear@latest setup
The CLI opens a browser, asks you to sign once with your wallet, mints a Pear API key, and (optionally) writes PEAR_API_KEY and PEAR_ADDRESS to a .env. Copy those two values into your Claude Desktop config and restart Claude.
Already have a JWT from
app.pear.garden? Skipsetupand use JWT pass-through below.
Three auth modes. mcp-pear uses the first one whose env vars are set, decided on the first authenticated call.
For Telegram bots and other orchestrators that mint JWTs externally (Privy, EIP-712, or any Pear-supported flow). The JWT is opaque; mcp-pear never calls /auth/login.
| Env var | Required | Description |
|---|---|---|
PEAR_JWT | yes | Pre-minted access token. Used directly when set. PEAR_API_KEY and PEAR_ADDRESS act as fallback if the JWT expires and no PEAR_REFRESH_TOKEN is configured. |
PEAR_REFRESH_TOKEN | no | If set, mcp-pear refreshes the JWT itself when it expires mid-session (each refresh rotates the token). Without it, the orchestrator has to re-mint and respawn the subprocess. |
When PEAR_JWT expires and no refresh token is set, authenticated tools return:
JWT expired; the orchestrator must mint a new one and restart mcp-pear.
See examples/telegram-bot-usage.ts for the orchestrator pattern.
| Env var | Required | Description |
|---|---|---|
PEAR_API_KEY | for auth tools | Your Pear API key. |
PEAR_ADDRESS | for auth tools | Wallet address bound to the API key (0x...). |
mcp-pear mints the JWT itself by calling POST /auth/login. Both fields are required: the OpenAPI spec needs address in the request body.
The four public tools work without any auth env vars. Authenticated tools return a ConfigError naming the missing env var.
| Env var | Default | Description |
|---|---|---|
PEAR_API_BASE_URL | https://hl-v2.pearprotocol.io | Pear API host. |
PEAR_API_TIMEOUT_MS | 10000 | Per-request timeout. |
PEAR_CLIENT_ID | APITRADER | Client identifier sent to /auth/login. |
Add to claude_desktop_config.json:
{
"mcpServers": { "pear": { "command": "npx", "args": ["-y", "@marvelcodes/mcp-pear@latest"], "env": { "PEAR_API_KEY": "your-pear-api-key-here", "PEAR_ADDRESS": "0xYourWalletAddress" } } } }
Restart Claude Desktop and ask: "Use Pear to show me the top active markets right now."
import { McpToolset, StdioTransport } from "@iqai/adk";
const pearTools = new McpToolset({ transport: new StdioTransport({ command: "npx", args: ["-y", "@marvelcodes/mcp-pear@latest"], env: { PEAR_API_KEY: process.env.PEAR_API_KEY ?? "", PEAR_ADDRESS: process.env.PEAR_ADDRESS ?? "" }, }), });
await pearTools.connect(); const tools = await pearTools.listTools();
Full example in examples/adk-ts-usage.ts.
adjust_leverageChange leverage (1-100x) on an existing Pear Protocol position. Higher leverage means greater liquidation risk for the same price move. WRITE: changes risk profile of a live position. Requires PEAR_TRADE_ENABLED=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
positionId | string | yes | |
leverage | integer | yes |
adjust_positionReduce or increase an existing Pear Protocol position's size by 1-100 percent. executionType: MARKET (immediate) or LIMIT (provide limitRatio). WRITE: changes exposure on a real trade. Requires PEAR_TRADE_ENABLED=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
positionId | string | yes | |
adjustmentType | string | yes | |
adjustmentSize | integer | yes | |
executionType | string | yes | |
limitRatio | number | ||
referralCode | string |
cancel_orderCancel a pending Pear Protocol limit, take-profit, or stop-loss order by orderId. Does not affect already-filled portions. For TWAP orders, use cancel_twap_order. WRITE: cancels a live order. Requires PEAR_TRADE_ENABLED=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
orderId | string | yes |
cancel_twap_orderCancel a Pear Protocol TWAP (time-weighted average price) order and all of its remaining unfilled chunks. WRITE: cancels a live order. Requires PEAR_TRADE_ENABLED=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
orderId | string | yes |
close_all_positionsClose every open Pear Protocol position with a single executionType (MARKET or TWAP). Returns a per-position result array with success/error. WRITE: executes real trades. Requires PEAR_TRADE_ENABLED=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
executionType | string | yes | |
twapDuration | number | ||
twapIntervalSeconds | number | ||
randomizeExecution | boolean | ||
referralCode | string |
close_positionClose one open Pear Protocol position by positionId. executionType: MARKET (immediate) or TWAP (spread over time; requires twapDuration in seconds). WRITE: executes a real trade. Requires PEAR_TRADE_ENABLED=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
positionId | string | yes | |
executionType | string | yes | |
twapDuration | number | ||
twapIntervalSeconds | number | ||
randomizeExecution | boolean | ||
referralCode | string |
create_agent_walletCreate a new Pear Protocol agent wallet for the authenticated user. The agent wallet is what Pear uses to sign Hyperliquid trades. After creation, the user MUST approve this wallet on Hyperliquid (the response message contains the approval instructions). WRITE: executes a state change. Requires PEAR_TRADE_ENABLED=true.
_No parameters_
get_account_summaryGet the authenticated user's Pear Protocol account summary: agent wallet address, total closed trades, pending trigger-order USD value, pending TWAP-chunk USD value, and last sync timestamp. Requires PEAR_API_KEY.
_No parameters_
get_active_marketsGet the most active Pear Protocol pair markets right now: current active pairs plus top gainers, top losers, highlighted pairs, and the user's watchlist. Use to see what's hot or as a starting point for narrowing into a specific pair.
_No parameters_
get_agent_walletGet the authenticated user's Pear Protocol agent wallet address. The agent wallet is what Pear uses to sign Hyperliquid trades on the user's behalf. Returns an empty/missing address if no agent wallet has been created yet; call create_agent_wallet to create one.
_No parameters_
get_healthCheck Pear Protocol API health. Returns service status, server timestamp, and uptime in seconds. Use this to verify the API is reachable before running other tools.
_No parameters_
get_open_ordersList the authenticated user's open limit, take-profit, and stop-loss orders on Pear Protocol. Returns each order's ID, type, status, and pair composition. Requires PEAR_API_KEY.
_No parameters_
get_open_positionsList the authenticated user's currently open Pear Protocol pair positions, including position ID, entry ratio, mark ratio, unrealized PnL, and long/short composition. Requires PEAR_API_KEY.
_No parameters_
get_pair_ratioGet the current ratio (long/short composition price) for a specific Pear Protocol pair. Pass long and short asset arrays. Returns the ratio, 24h change, and funding rate. Useful when you know the pair you care about and want the latest number.
| Parameter | Type | Required | Description |
|---|---|---|---|
longAssets | array | yes | Asset symbols on the long side (e.g. ['BTC']). |
shortAssets | array | yes | Asset symbols on the short side. Pass an empty array for long-only baskets. |
get_portfolioFetch the authenticated user's full portfolio metrics on Pear Protocol: bucketed PnL across last 1 day / 1 week / 1 month / 1 year / all-time, plus overall stats (total trades, all-time volume, current open interest, unrealized PnL). Requires PEAR_API_KEY.
_No parameters_
get_trade_historyFetch the authenticated user's recent closed trades on Pear Protocol with realized PnL, entry/exit ratios, and pair composition. Optional date range and limit. Requires PE