Catalog npm
PACKAGE EXPLORERView in registry

@0xmonaco/mcp-server

npm

MCP server for the Monaco SDK

Versions collected157
Direct dependencies9From release 1.0.88
Last observed21 Oct, 09:13 UTC

README

Current package documentation

@0xmonaco/mcp-server

MCP server for the Monaco SDK — gives AI assistants access to the Monaco protocol on Sei.

Works in public-only mode with zero configuration. Add a private key to enable authenticated tools — scoped by a capability profile so that supplying a key does not blindly unlock the entire tool set.

Configuration

VariableRequiredDescription
MONACO_PRIVATE_KEYNoWallet private key (0x...) — enables authenticated tools
MONACO_CLIENT_IDWith MONACO_PRIVATE_KEYMonaco application client ID
MONACO_NETWORKWith MONACO_PRIVATE_KEYmainnet | development | staging | local. Must be explicit when a private key is set — the server refuses to default to mainnet for an authenticated session. Defaults to mainnet only for public-only mode.
MONACO_CAPABILITYNoread | market-maker | full. Authenticated default: read. See capability profiles.
MONACO_TOOL_ALLOWLISTNoComma-separated tool names to enable on top of the profile (explicit per-tool opt-in, e.g. a single fund-movement tool).
MONACO_TOOL_DENYLISTNoComma-separated tool names to disable. Wins over the profile and the allowlist.
MONACO_RPC_URLNoSei RPC URL (defaults per network)
MONACO_DELEGATED_OWNER_USER_IDNoRun on behalf of a delegated owner account. The MONACO_PRIVATE_KEY wallet is the agent; on startup it authenticates as itself, then adopts an owner-scoped session so every tool call acts on the owner (the agent wallet stays the session's actor for policy enforcement; orders carry the owner's wallet). Requires MONACO_PRIVATE_KEY + MONACO_CLIENT_ID. See delegated owner mode.

Capability profiles

MONACO_CAPABILITY bounds which authenticated tools the server registers. A tool that is not permitted by the active profile (and not named in MONACO_TOOL_ALLOWLIST) is never registered — this is an authorization control, not an advisory tool annotation.

ProfileTools enabled
readAuthenticated read-only queries — profile, balances, orders, movements, fee tier, vault allowance. No state changes. Default when authenticated — supplying a key alone grants no write authority.
market-makerread + order placement / cancel / replace + the testnet faucet. Opt in to let an agent make markets. No fund movement.
fullmarket-maker + fund movement and privilege mutations (vault approve/deposit/withdraw, transfer_rewards). Opt-in only.

Order placement, cancel, replace, and close require MONACO_CAPABILITY=market-maker or higher — the default read profile cannot mutate anything. Fund-movement and privilege tools additionally require full; enable them with MONACO_CAPABILITY=full, or opt a single tool in with MONACO_TOOL_ALLOWLIST (e.g. MONACO_TOOL_ALLOWLIST=vault_withdraw). Grant full only when you intend an agent to move funds — especially on mainnet.

Delegated owner mode

Set MONACO_DELEGATED_OWNER_USER_ID to act on behalf of a delegated owner account instead of the configured wallet's own account. The wallet in MONACO_PRIVATE_KEY is the agent: on startup it authenticates as itself, then adopts an owner-scoped delegated session (loginAsDelegatedOwner). Every subsequent tool call — reads and trades — acts on the owner account, with the agent wallet kept as the session's actor for policy enforcement. Orders placed this way carry the owner's wallet, not the agent's, so order history does not record the agent. The owner must have registered this agent wallet with an active delegation policy; the server cannot self-assert ownership, and adoption fails if the agent is not authorized for that owner.

This is fail-closed: MONACO_DELEGATED_OWNER_USER_ID requires MONACO_PRIVATE_KEY and MONACO_CLIENT_ID, a blank value is rejected, and if owner adoption fails the server does not fall back to trading as the agent's own account. Fund-movement tools still require the full capability, and delegated sessions cannot withdraw owner collateral. Raw delegated-session creation is intentionally not exposed as a tool — owner adoption is a startup option, not an autonomous agent action.

Networks

For public endpoints, set MONACO_NETWORK to one of the following documented values:

NetworkAPI URLDefault RPC URL
mainnet (default)https://apimonaco.xyzhttps://evm-rpc.sei-apis.com
staginghttps://staging.apimonaco.xyzhttps://evm-rpc-testnet.sei-apis.com

Installation

Add the following to your MCP config:

  • Cursor — ~/.cursor/mcp.json
  • Windsurf — ~/.codeium/windsurf/mcp_config.json
  • Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)

Public-only mode (no env vars needed)

Market data, orderbook, trades, and docs search — no wallet required.

{
  "mcpServers": {
    "monaco": {
      "command": "npx",
      "args": ["-y", "@0xmonaco/mcp-server"]
    }
  }
}

Authenticated mode

Authenticated read-only tools under the default read profile. MONACO_NETWORK is required here — the server will not default an authenticated session to mainnet.

{
  "mcpServers": {
    "monaco": {
      "command": "npx",
      "args": ["-y", "@0xmonaco/mcp-server"],
      "env": {
        "MONACO_NETWORK": "staging",
        "MONACO_PRIVATE_KEY": "0x...",
        "MONACO_CLIENT_ID": "your-client-id"
      }
    }
  }
}

Trading and fund movement stay off here. Add "MONACO_CAPABILITY": "market-maker" to place / cancel / replace orders, or "MONACO_CAPABILITY": "full" to also enable fund-movement tools (vault deposit/withdraw, transfer_rewards). A single fund-movement tool can be opted in with "MONACO_TOOL_ALLOWLIST": "vault_withdraw" instead of full. RPC URLs default automatically per network but can be overridden with MONACO_RPC_URL.

Tools

Public tools require no credentials. Authenticated tools require MONACO_PRIVATE_KEY, MONACO_CLIENT_ID, and MONACO_NETWORK, and are further gated by the active capability profile — the profile column shows the minimum profile each tool needs.

ToolProfileDescription
search_docsPublicSearch the Monaco documentation for protocol, SDK, trading, and development guides.

Market

ToolProfileDescription
get_trading_pairsPublicList trading pairs with optional filters (market type, base/quote token, active status).
get_trading_pair_by_symbolPublicLook up a trading pair by symbol (e.g. BTC/USDC).
get_candlesticksPublicFetch OHLCV candlestick data for a trading pair.
get_market_metadataPublicGet tick size, minimum order size, and trading rules for a pair.
get_screenerPublicScreen trading pairs with market stats (price, volume, change), filtered by market type, category, and active status.
get_market_statsPublicGet exchange-wide life-to-date cumulative volume and trade count across all markets.

Perp market data

ToolProfileDescription
get_perp_market_configPublicGet a perpetual market's configuration (leverage limits, margin requirements, funding parameters).
get_perp_market_summaryPublicGet a perpetual market's live summary (mark/index price, funding rate, open interest, 24h stats).
get_mark_pricePublicGet the current mark price for a perpetual market.
get_index_pricePublicGet the current index (oracle) price for a perpetual market.
get_funding_statePublicGet the current funding rate and next funding time for a perpetual market.
get_open_interestPublicGet the current one-sided LONG open interest (each contract counted once) for a perpetual market.
get_funding_historyPublicList historical funding-rate records for a perpetual market.
get_all_funding_historyPublicList historical funding-rate records across all perpetual markets.

Orderbook

ToolProfileDescription
get_orderbookPublicFetch a current orderbook snapshot with bids and asks.

Trades

ToolProfileDescription
get_tradesPublicFetch historical trades for a trading pair.

Trading

Order reads (get_orders, get_order) are available under read; the mutations below require market-maker or higher.

ToolProfileDescription
place_limit_ordermarket-makerPlace a limit order with price, quantity, and time-in-force. The SDK supplies an idempotency key if omitted. Retain an explicit key to retry the same submission within 15 minutes of acceptance. Calling again without the original key is not idempotent; never retry an ambiguous failure with a new key. If the original key is unavailable, report the ambiguity.
place_market_ordermarket-makerPlace a market order — executes immediately inside a mandatory 1,000 bps protective price band, so it may partially fill or be rejected. The SDK supplies an idempotency key if omitted. Retain an explicit key to retry the same submission within 15 minutes of acceptance. Calling again without the original key is not idempotent; never retry an ambiguous failure with a new key. If the original key is unavailable, report the ambiguity.
replace_ordermarket-makerModify an existing order's price and/or quantity. Not idempotent — an ambiguous failure (timeout/network error/5xx with no order) cannot be resolved from inside MCP, which has no order-stream tool; never retry, and report the ambiguity instead.
cancel_ordermarket-makerCancel a single order by ID.
batch_cancel_ordersmarket-makerCancel multiple orders by ID (non-atomic — a failed leg does not stop the others).
batch_cancel_all_ordersmarket-makerCancel all open orders, optionally filtered to a trading pair (unfiltered, it cancels your entire open-order book).
batch_close_all_positionsmarket-makerClose all open perpetual positions with market reduce-only orders (best-effort, optional pair-set and side filters).
get_ordersreadList your orders with optional filters.
get_orderreadGet details for a specific order by ID.

Positions

Position reads are available under read; close_position requires market-maker, and margin add/reduce move collateral and require full.

ToolProfileDescription
get_positionsreadList your perpetual positions with optional filters (margin account, trading pair, status).
get_positionreadGet details for a specific perpetual position by ID.
get_position_riskreadGet liquidation price, margin ratio, and risk metrics for a perpetual position.
get_position_historyreadList historical (closed/reduced) perpetual position records with optional filters.
get_position_pnl_historyreadGet the PnL history time series for a perpetual position over an interval.
close_positionmarket-makerClose a perpetual position with a market, limit, or IOC reduce order.

Portfolio

ToolProfileDescription
get_portfolio_summaryreadGet your authoritative portfolio summary (equity, PnL, exposure) over a period.
get_portfolio_performancereadGet your portfolio performance time series over a period.
get_portfolio_realized_pnlreadGet your realized PnL breakdown over a period.
get_portfolio_assetsreadGet your per-asset portfolio allocation and balances over a period.
get_portfolio_marginreadGet your portfolio margin overview (collateral, maintenance margin, health).

Margin accounts

Reads and risk simulations are available under read; collateral transfers move funds and require the full profile (or an explicit allowlist entry).

ToolProfileDescription
get_margin_accountsreadList your margin accounts with optional filters (state, trading pair).
get_parent_margin_account_summaryreadGet your parent (cross) margin account summary.
get_available_collateralreadGet available (unlocked) collateral for allocating to margin accounts or risk buckets.
get_parent_margin_account_movementsreadList collateral movements for your parent (cross) margin account.
simulate_parent_margin_order_riskreadPreview the risk impact of a prospective order against your parent (cross) margin account (read-only simulation).
simulate_risk_bucket_order_riskreadPreview the risk impact of a prospective order for a new or existing risk bucket (read-only simulation).
transfer_collateral_to_parent_margin_accountfullMove collateral from spot into your parent (cross) margin account.
transfer_collateral_from_parent_margin_accountfullMove collateral out of your parent (cross) margin account back to spot.
transfer_collateral_to_risk_bucketfullAllocate collateral into an isolated or cross risk bucket.
transfer_collateral_to_sub_accountfullMove collateral from your default (parent) margin account into one of your margin sub-accounts.
transfer_collateral_from_sub_accountfullMove collateral from one of your margin sub-accounts back to your default (parent) margin account.

Profile

ToolProfileDescription
get_profilereadFetch your core profile (address, username, account type, withdrawal status).
get_balancesreadList token balances with pagination.
get_balance_by_assetreadGet balance for a specific asset.
get_movementsreadFetch transaction and movement history with optional filters.
get_user_tradesreadList your own trade fills with optional filters and cursor pagination.
get_funding_paymentsreadList your perpetual funding payments with optional filters (trading pair, position, margin account).

Fees

ToolProfileDescription
simulate_feesreadSimulate fees for an order before placing it.
get_my_fee_tierreadGet your current fee tier, rolling 14-day volumes, and a pair's fee schedule.

Vault

Fund-movement tools require the full profile (or an explicit allowlist entry); the allowance and pending-withdrawal reads are available under read.

ToolProfileDescription
vault_approvefullApprove the vault contract to spend a token.
vault_depositfullDeposit tokens into the vault (optional target: spot default, or margin to route into collateral).
vault_withdrawfullWithdraw tokens from the vault.
vault_get_allowancereadCheck current token allowance for the vault.
vault_needs_approvalreadCheck whether an approval transaction is needed before depositing.
get_pending_withdrawalsreadList your pending withdrawals still awaiting on-chain root confirmation.

Faucet

Testnet only — the faucet tools are never registered on mainnet.

ToolProfileDescription
request_faucetmarket-maker (non-mainnet)Request test tokens for all trading pairs.
get_faucet_inforead (non-mainnet)Check remaining faucet quota, next-request time, and recent mint history.

Trader codes & rewards

ToolProfileDescription
get_trader_code_infoPublicLook up a trader code's details (no credentials required).
check_trader_code_availabilityPublicPublic advisory check of whether a custom TraderCode handle is available (no credentials required).
get_my_trader_codereadFetch your own trader code.
set_trader_codemarket-makerClaim or edit your custom (vanity) TraderCode handle.
clear_trader_codemarket-makerClear your custom TraderCode handle, reverting to the wallet-derived default.
get_rewards_balancereadFetch your TraderCodes rewards-bucket balances across reward tokens.
transfer_rewardsfullMove your earned TraderCodes rewards from the rewards bucket into your own tradeable balance (ledger-only).

Copy trading

The leaderboard, leader profiles and closed trades are public. Your own reads are available under read; registering as a leader and stopping a follow require market-maker; following (which moves the allocation into a copy account) and adding margin to a copy position (which moves copy account collateral into the position) require full.

ToolProfileDescription
list_lead_tradersPublicPublic copy trading leaderboard: lead traders ranked by ROI, PnL, followers, allocated AUM, marked AUM or win rate over a stats window (no credentials required).
get_lead_traderPublicPublic profile, follow summary and stats of one lead trader, by custom TraderCode handle (no credentials required).
list_lead_trader_closed_tradesPublicPublic list of a lead trader's closed trades, newest first (no credentials required).
list_lead_trader_open_positionsreadOpen positions of a lead trader you currently follow (followers only).
get_my_lead_traderreadFetch your own lead trader profile, follow summary and stats.
list_my_followersreadList your followers, as a lead trader.
list_my_followsreadList your copy trading follows and their settings.
get_followreadFetch one of your follows with its most recent skipped mirrors and its copy account's marked equity.
preview_followreadPreview what following a lead trader with copyExisting would open: estimated margin and fees and how many positions would be copied (read-only).
list_follow_leader_positionsreadOpen positions of the lead trader one of your follows copies (live follows only).
upsert_lead_tradermarket-makerRegister as a lead trader, or edit your lead profile (profit share, bio, status, minimum allocation).
upsert_followfullFollow a lead trader (moves the allocation into a new copy account) or edit one of your follows.
stop_followmarket-makerStop one of your follows: the leader's fills stop being mirrored.
close_follow_positionsmarket-makerClose one follow's copy positions at market and keep the follow (it keeps mirroring).
close_all_copy_positionsmarket-makerClose the copy positions of all your follows at market and keep the follows.
add_follow_position_marginfullAdd margin to one of your copy positions from the follow's copy account (lowers its leverage; your margin account is never touched; no reduction). Not idempotent — after a timeout, read the follow before retrying, or the amount may be added twice.

Market pulse

ToolProfileDescription
get_pulsePublicGet the latest market-pulse news feed: AI-synthesized, per-asset headlines with sentiment tags.

This inventory is generated from the tool manifest. Do not edit it by hand — edit src/manifest.ts and run bun run mcp-docs:gen.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 157

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.88Registry latest20 Oct 20269
1.0.8719 Oct 20269
1.0.8618 Oct 20269
1.0.8517 Oct 20269
1.0.8315 Oct 20269
1.0.8214 Oct 20269
1.0.8113 Oct 20269
1.0.8010 Oct 20269
1.0.779 Oct 20269
1.0.767 Oct 20269
1.0.74-develop.367860f7 Oct 20269
1.0.756 Oct 20269
1.0.744 Oct 20269
1.0.73-develop.af0f5d03 Oct 20269
1.0.731 Oct 20269
1.0.721 Oct 20269
1.0.7030 Sept 20269
1.0.6929 Sept 20269
1.0.6725 Sept 20269
1.0.6624 Sept 20269

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
monaco-research/monaco-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:10 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b20443a77f230c597d8725cda4822f29ee089b286fb23af06454bf562d5f7774