> ## Documentation Index
> Fetch the complete documentation index at: https://docs.burokku.app/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> Burokku's remote MCP server for builders: the endpoint, transport, sign-in, the nine tools with their inputs and answers, and the portfolio card resource.

Burokku's connector is a remote MCP server. Claude, ChatGPT and other AI apps add it for their users ([Connect an AI app](https://docs.burokku.app/ai-apps/connect.md)); this page is for building your own client.

```text theme={null}
https://mcp.burokku.app/mcp
```

* **Transport:** Streamable HTTP, stateless: no sessions, `POST` only, and JSON answers.
* **Sign-in:** OAuth 2.1 with PKCE, with a token for this server's resource. A call without a valid token gets a `401` whose `WWW-Authenticate` header points to the server's protected resource metadata, and a JSON body, `unauthorized` or `invalid_token`, with an `error_description` in English. See [Authentication](https://docs.burokku.app/developers/authentication.md).
* **Writes:** the two tools that write need `portfolio.write`. Without it, the call gets a `403` step-up challenge before the tool runs.
* **Errors:** a tool error is an answer with `isError: true`, its message in the user's language and its code in `_meta.code`. See [Limits and errors](https://docs.burokku.app/developers/limits-and-errors.md).
* **The portfolio card:** `portfolio_summary` and `positions` point at an MCP Apps resource, `ui://burokku/portfolio`, through `_meta.ui.resourceUri`. Hosts that support MCP Apps draw it beside the answer.

## Tools

Nine tools: seven that read and two that write. Every tool sets all four MCP annotations, and none reaches outside the user's own account (`openWorldHint: false`).

| Tool | Reads or writes |
| - | - |
| [`portfolio_summary`](#portfolio_summary) | Reads |
| [`holdings`](#holdings) | Reads |
| [`positions`](#positions) | Reads |
| [`liquidation_risk`](#liquidation_risk) | Reads |
| [`pnl`](#pnl) | Reads |
| [`activity`](#activity) | Reads |
| [`list_alerts`](#list_alerts) | Reads |
| [`create_price_alert`](#create_price_alert) | Creates a price alert that only notifies |
| [`add_watch_address`](#add_watch_address) | Adds a public address, watch-only |

Each tool is also a REST endpoint, with the same inputs and the same answer. Over REST, answers also carry stable opaque ids (`id`, `account_id`) and full addresses. Full schemas are in the [API reference](https://docs.burokku.app/api-reference/introduction.md).

Every answer includes `read_at` (when the figures were read), `refreshing` (true while Burokku reads the accounts again behind the answer) and `currency` (the account's currency and its units per dollar).

## portfolio\_summary

**Portfolio summary** · `GET /v1/portfolio` · reads

What your portfolio is worth, how it changed over the last 24 hours, and how it splits between wallets, DeFi, perps and prediction markets.

| Input | Type | Default | What it does |
| - | - | - | - |
| `account` | string | every account | One account, by its name (over REST, its id also works) |
| `bundle` | string | every account | One bundle (a group of accounts), by its name |

**Returns** net worth; what's in wallets, DeFi, perps and predictions; the 24-hour change in dollars and percent; each account with its kind, provider and value; the ten largest holdings; and `needs_attention`, how many risks Burokku flags (perps near liquidation, risky loans, heavy leverage, concentration).

In AI apps that support MCP Apps, the answer also shows as a read-only [portfolio card](https://docs.burokku.app/ai-apps/overview.md#the-portfolio-card).

**Try:** "What's my portfolio worth?" · "How much did I make or lose today?" · "How much is on my Ledger?"

## holdings

**Holdings** · `GET /v1/holdings` · reads

Which tokens you hold, how much of a token you have, and where it's held.

| Input | Type | Default | What it does |
| - | - | - | - |
| `symbol` | string | none | One token, like `ETH` |
| `account` | string | every account | One account, by its name |
| `chain` | string | every chain | One chain, by name or id (`Ethereum`, `base`, `Solana`…) |
| `min_usd` | number | `1` | Leaves out tokens worth less, in US dollars (not applied with `symbol`) |
| `limit` | integer, 1–100 | `40` | Tokens per page |
| `cursor` | string | first page | The `next_cursor` of the previous page |

**Returns** each token, largest first, with its price, 24-hour and 7-day change, amount, value, share of net worth, and the accounts and chains holding it (at most 6). Tokenized real-world assets say what they track and who issued them. Also `total_usd`, `total_tokens` across every page and `next_cursor`.

**Try:** "Which tokens do I hold?" · "How much ETH do I have, and where?" · "What do I hold on Base?"

## positions

**Positions** · `GET /v1/positions` · reads

DeFi positions (lending, liquidity, staking, vaults), open perpetual futures and prediction market shares.

| Input | Type | Default | What it does |
| - | - | - | - |
| `kind` | `defi`, `perps`, `predictions` or `all` | `all` | Which positions |
| `account` | string | every account | One account, by its name |
| `protocol` | string | every protocol | One protocol or venue (`Aave`, `Hyperliquid`, `Polymarket`…) |

**Returns**

* **DeFi:** protocol, type, chain, value net of debt, APY, supplied and borrowed tokens, health factor and unclaimed rewards.
* **Perps:** market, side, venue, size, entry, mark and liquidation prices, leverage, notional, unrealised PnL and distance to liquidation.
* **Predictions:** venue, market, the outcome held, shares, average and current price, value, PnL, when it resolves, and whether it's won and waiting to be claimed.

At most 40 of each are listed; `more` says how many were left out. In AI apps that support MCP Apps, they also show on the read-only [portfolio card](https://docs.burokku.app/ai-apps/overview.md#the-portfolio-card).

**Try:** "Show my open perps." · "What's my health factor on Aave?" · "Which Polymarket positions do I have?"

## liquidation\_risk

**Liquidation risk** · `GET /v1/risk/liquidation` · reads

Whether a loan or a perp is close to liquidation.

| Input | Type | Default | What it does |
| - | - | - | - |
| `health_factor_below` | number, 1–10 | `1.5` | Loans with a health factor under this |
| `perp_within_pct` | number, 0.1–100 | `15` | Perps within this percent of their liquidation price |

**Returns** loans, lowest health factor first, with collateral, debt, how far prices can fall before liquidation and, where one collateral token decides it, its liquidation price and its price now; and perps, nearest first, with mark and liquidation prices and the distance between them. When both lists are empty, `nothing_near` is true.

**Try:** "Am I close to liquidation anywhere?" · "How far can ETH fall before my loan is liquidated?" · "Any perps within 10% of liquidation?"

## pnl

**Profit and loss** · `GET /v1/pnl` · reads

How your net worth or profit and loss moved over a period.

| Input | Type | Default | What it does |
| - | - | - | - |
| `range` | `1D`, `1W`, `1M`, `1Y` or `All` | `1D` | The period |

**Returns** the change in dollars and percent, the high, the low and up to 13 points. For `1D`, `1W` and `1M`, also what drove it: coins, accounts, realised perp PnL, funding and fees. And unrealised PnL on holdings whose cost Burokku knows, with how much of your holdings that covers.

> [!NOTE]
>
> These figures aren't for tax. Burokku's Tax page works out gains for a tax year.

**Try:** "How did my portfolio do this week?" · "What drove today's change?" · "What's my unrealised PnL?"

## activity

**Activity** · `GET /v1/activity` · reads

Recent transactions: swaps, sends and receipts, bridges, approvals, staking, perp trades and funding.

| Input | Type | Default | What it does |
| - | - | - | - |
| `days` | integer, 1–90 | `30` | How far back |
| `kind` | `swap`, `send`, `receive`, `bridge`, `approve`, `stake`, `claim`, `revoke`, `mint`, `call`, `perp`, `funding` or `move` | every kind | One kind |
| `account` | string | every account | One account, by its name |
| `limit` | integer, 1–50 | `20` | Rows per page |
| `cursor` | string | first page | The `next_cursor` of the previous page |

**Returns** rows, newest first, with what happened, the account, chain, value in dollars, realised PnL and fees, status (`confirmed`, `pending` or `failed`) and time. Over REST, on-chain rows also carry the transaction hash. `read_reaches_back_to` says how far back the read goes.

**Try:** "What did I swap this week?" · "Show my last 10 transactions." · "How much did I pay in funding this month?"

## list\_alerts

**Alerts** · `GET /v1/alerts` · reads

The Burokku alerts you have. Takes no input.

**Returns** each alert with its kind, what it watches (in your language), whether it's on, whether it's one Burokku suggests that you haven't switched on yet, where it notifies (`inapp`, `email`, `push`, `telegram`) and how many times it has fired.

**Try:** "Which alerts do I have?" · "Have any of my alerts fired?"

## create\_price\_alert

**Create a price alert** · `POST /v1/alerts` · writes · scope `portfolio.write`

Creates a price alert in your Burokku account. AI apps use it only when you ask to be alerted.

| Input | Type | What it does |
| - | - | - |
| `asset` | string, required | A token symbol, like `ETH` |
| `direction` | `above` or `below`, required | Which way the price crosses |
| `level_usd` | number, required | The price, in US dollars |

The alert notifies you in Burokku, and by email, push or Telegram where you've set those up. It never trades.

**Returns** the alert as created, and `manage_path`, where to manage it in Burokku.

**Refused when** Burokku doesn't track the token's price (`unknown-asset`), your plan's alerts are used up (`plan-limit`), or the connection has no account (`account-required`, with a link to sign in).

**Try:** "Alert me if ETH drops below $2,500." · "Tell me when SOL goes above $300."

## add\_watch\_address

**Watch an address** · `POST /v1/accounts/watch` · writes · scope `portfolio.write`

Adds a public address to your portfolio, watch-only. AI apps use it only when you ask Burokku to track a wallet.

| Input | Type | What it does |
| - | - | - |
| `address` | string, required | An EVM (`0x…`), Solana or Bitcoin address |
| `name` | string | What to call the account |
| `venue` | `hyperliquid`, `lighter` or `aster` | Reads the EVM address as an account on that perp exchange |

**Returns** the account with its name, kind (`watch`, or `exchange` with a venue), network and address, and `added`, false when Burokku already watched it. Its balances are read in the background, so `refreshing` is true and later calls include them.

**Refused when** it looks like a private key or recovery phrase (`secret`; it's never kept), it isn't an address Burokku can watch (`not-address`), or it's over your plan's accounts, or over 3 addresses without an account (`account-required`, with a link to sign in).

**Try:** "Track this wallet: 0x…" · "Watch my Hyperliquid account 0x…"


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.