OURS MCP Server
Enables access to OURS perpetual markets deployed on BNB Smart Chain, including market and risk data queries plus construction of unsigned BNB Chain EVM transactions for orders, LP deposits, and market creation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OURS MCP Server show live Pyth BTC and ETH bid/ask"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OURS MCP Server (ours-mcp)
Official Model Context Protocol (MCP) server and zero-dependency stdio bridge for OURS (ours.meme) — an AI-native, isolated token-margined perpetual DEX on BNB Smart Chain (BSC) featuring 0% open/close/stop-loss fees, pure Pyth Network BTC / ETH / 24x7 Gold (XAU) bid/ask execution, and isolated LP vaults for established BNB Chain meme communities.
English Portal: https://ours.meme/en | 简体中文: https://ours.meme | 日本語: https://ours.meme/ja | 한국어: https://ours.meme/ko
48-Tool Agent & MCP Specification: https://ours.meme/agent.md
OpenAPI 3.1 Schema:
https://devapi.ours.meme/api/agent/openapi.jsonOfficial X: @OursPerp
Quick Start
Option A — Remote Streamable HTTP (Zero Install)
Connect Claude Code, Cursor, Windsurf, or any Streamable-HTTP MCP client directly to the hosted endpoint:
claude mcp add --transport http oursmeme https://devapi.ours.meme/api/mcpOr add to .cursor/mcp.json:
{
"mcpServers": {
"oursmeme": {
"url": "https://devapi.ours.meme/api/mcp"
}
}
}Option B — Local Stdio Bridge (Claude Desktop / Smithery / Glama)
For stdio-only MCP hosts (such as local Claude Desktop configs), run this zero-dependency Node.js (>=18) bridge:
git clone https://github.com/muranwirebaugh-cmyk/ours-mcp.git
cd ours-mcp
npm testclaude_desktop_config.json:
{
"mcpServers": {
"oursmeme": {
"command": "node",
"args": ["/absolute/path/to/ours-mcp/bin/ours-mcp.mjs"],
"env": {
"OURS_API_KEY": "optional_mpk_key_from_ours_meme_agent"
}
}
}
}Related MCP server: HyperNatt Terminal
What the 48 MCP Tools Cover
Market & Pure Pyth Quotes (
get_rules,list_markets,get_price,get_trending): Query live PythBTC,ETH, and 24/7 Gold (XAU) bid/ask quotes (0platform spread markup), funding skews, and 7-day realized LP / Coin-Days dividend APRs.Orderflow & Risk Telemetry (
get_market_positions,get_market_series,get_leaderboard,get_token_holders): Inspect long/short open interest distribution, liquidation levels, and isolated BNB Chain meme vault depth.Non-Custodial Transaction Builders (
build_*): Construct unsigned EVM transactions (to / data / value / chainId) for0%-entry/exit-fee perpetual orders, LP deposits, and market creation. No tool ever requests or touches private keys.Scoped On-Chain Agent Guardrails (
ours.meme/agent): Authorize bounded session keys with hardUSDCmargin caps, order-count expiries, and smart-contract-enforced settlement strictly back to your main wallet.
Multilingual Documentation
Protocol Academy (EN / 简 / 繁 / 日 / 한): https://ours.meme/en/learn
Transparent On-Chain Fee Simulator: https://ours.meme/en/calculator
Available Tools
48 toolsbuild_add_margin追加保证金ARead-only
在不扩大持仓名义规模(sizeDeltaUsd = 0)的前提下,向已有仓位追加保证金以降低实际杠杆、拉远强平价(兼容 USDC 本位与 Meme 币本位,且不影响亏损挖矿加权持仓时间)。
Inputs: side (required), market (required), account (required), agent, +2 more.
build_agent_authorize授权 agent 交易ARead-only
agent 专用通道:生成用户主钱包要签的授权交易,把 agent 的地址设为「只能交易、不能提币」的子账户。限定操作次数、有效天数(默认 3 天,最长 30 天)、可动用的精确 USDC 保证金上限,可选 gas 预算(合约每次按实际花费从用户 WBNB 报销给 agent)。签完后 agent 在开仓 / 平仓 / 止盈止损 / 撤单工具里带上 agent 参数,就能用自己的私钥直接下单。
Inputs: days (required), agent (required), account (required), maxActions (required), +4 more.
build_agent_revoke撤销 agent 授权ARead-only
agent 专用通道:生成用户主钱包要签的撤销交易,立即收回 agent 的交易权限(次数、到期、gas 报销一起清零)。可选同时把 USDC / WBNB 授权额度清零。
Inputs: agent (required), account (required), resetGasBudget (required), resetUsdcAllowance (required).
build_attach_market基于已有代币创建市场BRead-only
基于已存在的平台 Meme 代币合约创建新的永续合约市场:若调用者为原代币控制者则作为项目子市场共享原策略,若为第三方用户则自动创建完全隔离的独立永续市场(独立 GM 池、独立 LP/创建者分成与可选独立亏损挖矿池,不关联原项目分红/回购)。
Inputs: lpPct (required), token (required), under (required), lpUsdc (required), +7 more.
build_buy_token买 meme 代币ARead-only
生成用报价资产(通常是 USDC)买某市场 meme 代币的交易,最少得到数量按报价扣滑点。毕业前在内盘成交,毕业后自动走 PancakeSwap V2 路由。
Inputs: usdc (required), market (required), account (required), slippagePct (required).
build_cancel_orders撤单ARead-only
撤销未成交的委托(限价单、止盈止损,以及 status=expired 的过期市价单),一次可撤多张;保证金和剩余执行费退回钱包。订单 key 从 get_account 的 orders 获取。发送时按 step 里的 gasLimitHint 设 gas 上限。
Inputs: keys (required), account (required), agent.
build_claim领取收益ARead-only
一次生成所有可领收益的交易:亏损挖矿代币、持币分红、推广返佣、dev 收入、资金费。不填 market 时扫描该钱包有收益的全部市场,只返回金额大于 0 的项。
Inputs: account (required), kinds, market.
build_close_position平仓ARead-only
生成市价平仓交易(兼容 USDC 本位与 Meme 币本位),默认全平;传 sizeUsd 可部分平仓(按比例取回保证金)。
Inputs: side (required), market (required), account (required), slippagePct (required), +2 more.
build_deposit_lp存入 LPARead-only
生成向某市场存入资产做 LP 的交易,最少得到份额按当前份额价扣 0.5% 计算。USDC 本位市场请传 usdc(启用 MLV 共享池时普通 LP 自动存入 MLV);币本位市场(under=MEME)仅支持存入对应 Meme 代币,请传 tokens(传 usdc 会被直接拒绝,避免上链拒单白烧 Gas)。普通 LP 铸造自由份额(无锁仓限制);市场创建者(dev)自动存入创作者锁仓合约(赎回固定 7 天冷静期)。
Inputs: market (required), account (required), usdc, tokens.
build_launch_market创建市场ARead-only
生成创建新合约市场(同时发行 meme 代币,先走内盘发射曲线,募满后迁移到 PancakeSwap V2)的交易,并在服务端自动关联保存市场资料。代币名称、代号、头像为必填项,横幅、一句话介绍、X、Telegram、Discord、官网为选填项;上链被索引后自动按确定性代币地址与创建者关联生效。参数范围先用 get_launch_params 查询。
Inputs: logo (required), name (required), under (required), devBuy (required), +16 more.
build_open_position开仓ARead-only
生成开仓交易(支持 USDC 本位与 Meme 币本位永续,市价或限价),可同时挂止盈、止损并可选绑定邀请码 referralCode,一笔交易完成。返回预计成交价、可接受价、执行费和待签 steps(含精确额度授权)。
Inputs: side (required), market (required), account (required), leverage (required), +8 more.
build_remove_margin减少保证金ARead-only
在不缩减持仓名义规模(sizeDeltaUsd = 0)的前提下,从已有仓位提取多余保证金(兼容 USDC 本位与 Meme 币本位;仅可提取超出最高杠杆要求且满足链上最低 2 USD 保底线门槛的自有本金,未实现浮盈需平仓提取)。
Inputs: side (required), market (required), account (required), agent, +2 more.
build_sell_token卖 meme 代币ARead-only
生成卖出某市场 meme 代币换回报价资产的交易,最少到账按报价扣滑点。毕业前在内盘成交,毕业后自动走 PancakeSwap V2 路由。
Inputs: market (required), tokens (required), account (required), slippagePct (required).
build_set_tp_sl设置止盈止损BRead-only
为已有仓位设置止盈和 / 或止损:同一笔交易里先撤掉该仓位原有的止盈止损,再按新价格挂单(仓位平掉时另一张自动撤)。
Inputs: side (required), market (required), account (required), slippagePct (required), +3 more.
build_site_setup开白标站 / 改站点设置ARead-only
生成开白标站(或修改站点设置)的签名请求:不上链、不花 gas。用户钱包对返回的 sign.message 做 personal_sign,再把 request.body 里的 signature 换成签名结果,PUT 到 request.path(和 agent 工具同一个 API 前缀,例如 https:///api/v1/site-owners/<地址>)。签名 5 分钟内有效。一个钱包一个站。
Inputs: account (required), logo, name, site, +6 more.
build_testnet_faucet领测试 USDC(仅测试网)ARead-only
测试网(chainId 97)专用:生成给自己铸造测试 USDC 的交易,默认 10,000。gas 用的 tBNB 去官方水龙头 https://www.bnbchain.org/en/testnet-faucet 领。主网不可用。
Inputs: usdc (required), account (required).
build_trigger_settlement触发结算ARead-only
生成触发某市场收入结算的交易(任何人都可调用,付 gas):collect 归集并分配,dividend 触发分红记账,buyback 触发回购销毁。
Inputs: action (required), market (required), account (required).
build_withdraw_lp取出 LPARead-only
生成取出 LP 份额换回底层资产(USDC 本位市场退回 USDC,币本位市场退回对应 Meme 代币)的交易;不填 shares 为全部取出。普通 LP 无锁仓限制即时赎回;市场创建者(dev)固定需先申请解锁满 7 天后再调用本工具领取赎回。
Inputs: market (required), account (required), shares.
get_account账户总览ARead-onlyIdempotent
一个钱包在平台上的全部状态:持仓(含强平价)、未成交委托(限价单、止盈止损,含订单 key)、可领取的资金费 / 分红 / 挖矿、USDC 和 BNB 余额。仅允许本人 API Key / JWT 或已链上授权的子账户查询。
Inputs: account (required).
get_account_referrals邀请返佣统计ARead-onlyIdempotent
一个钱包作为邀请人的统计:邀请到的交易者数、近 7 天活跃数、他们 24 小时交易量、带来的盈利平仓费、已领返佣,按市场列出。仅允许本人 API Key / JWT 或已链上授权的子账户查询。
Inputs: account (required).
get_account_rewards账户奖励记录ARead-onlyIdempotent
一个钱包的奖励记录和合计:分红领取、亏损补贴(入账、解锁时间、领取)、持有代币所在市场的回购销毁、作为 dev 的收入结算和领取。挖矿代币按市场分开。仅允许本人 API Key / JWT 或已链上授权的子账户查询。
Inputs: limit (required), account (required).
get_account_stats账户战绩ARead-onlyIdempotent
一个钱包的历史战绩:合约已实现盈亏、交易量、胜率、清算次数、手续费(总计和分市场),LP 存取金额,已领取的分红 / 挖矿 / dev / 返佣,亏损挖矿所得。仅允许本人 API Key / JWT 或已链上授权的子账户查询。
Inputs: range (required), account (required).
get_account_trades账户成交ARead-onlyIdempotent
一个钱包的历史成交,可按市场筛选。仅允许本人 API Key / JWT 或已链上授权的子账户查询。
Inputs: limit (required), account (required), market.
get_agent_accessagent 授权状态ARead-onlyIdempotent
agent 专用通道:查询某个 agent 地址对用户账户的交易授权——是否已授权、剩余操作次数、到期时间、可动用的 USDC 额度、gas 预算和自动报销、agent 钱包的 BNB 余额。agent 自主交易前先调一次。
Inputs: agent (required), account (required).
get_candles代币 K 线ARead-onlyIdempotent
某市场 meme 代币的 K 线(来自链上内盘和 PancakeSwap V3 成交)。标的本身的行情请直接查 Hyperliquid 或 Pyth。
Inputs: market (required), interval (required).
get_creator创建者详情CRead-onlyIdempotent
单个创建者的信息,可以传钱包地址或站点名。
Inputs: creator (required).
get_creator_economicsdev 收入统计ARead-onlyIdempotent
一个 dev(市场创建者)名下所有市场的累计收入、分给 LP / 持币人 / 回购的金额、dev 自己的收入、近 30 天每日收入,以及收入分配比例的修改记录。
Inputs: account (required).
get_feed平台动态ARead-onlyIdempotent
平台最新动态:新市场、代币买卖、分红、回购。
Inputs: no named parameters.
get_launch_params发市场参数范围ARead-onlyIdempotent
创建新市场时各参数的链上允许范围:创建费、首笔 LP 最小值、杠杆范围、报价资产和毕业募集额、代币税、资金费档位、收入分配规则。调用 build_launch_market 前先读。
Inputs: no named parameters.
get_leaderboard排行榜ARead-onlyIdempotent
排行榜。pnl:交易者已实现盈亏榜(含收益率、胜率、交易量、清算次数、跟单人数);roi:交易者收益率榜(已实现盈亏 ÷ 投入保证金,需投入不少于 20 USDC、平仓不少于 2 笔);volume:交易者交易量榜;market:市场交易量榜;creator:创建者分给 LP 和持币人的收入榜。交易者榜可以用 market 只看某个市场、site 只看某个创建者站点的市场、search 按地址或前缀查名次。疑似对敲(镜像开仓)的地址不参与排名。
Inputs: board (required), limit (required), range (required), site, +2 more.
get_liquidations清算榜ARead-onlyIdempotent
清算榜:最近被清算的仓位、即将被清算的高风险仓位及汇总。
Inputs: no named parameters.
get_lp_historyLP 历史BRead-onlyIdempotent
某市场 LP 份额净值、手续费收入、交易者盈亏的按天历史。
Inputs: days (required), market (required).
get_market市场详情BRead-onlyIdempotent
单个市场的完整数据,以及它的合约地址(市场、共享池 glv、锁仓金库、代币、底池、分配器、分红、挖矿)和当前链上买一 / 卖一价。
Inputs: market (required).
get_market_economics市场收入与代币经济ARead-onlyIdempotent
某市场的收入统计(24h / 7d / 全部,v1 含平台、返佣、LP、dev、持币分红、回购各项)、回购销毁、分红发放与领取、代币成交额和手续费、亏损挖矿(已实现亏损、挖出代币)、推广返佣,以及最近的结算记录。判断持币分红收益、挖矿补贴力度时用。
Inputs: limit (required), market (required).
get_market_positions持仓分布ARead-onlyIdempotent
某市场当前所有未平仓位:多空仓位数与规模、多空平均开仓价、平均杠杆、前 10 大仓位占比,以及按规模排序的大户仓位(地址、方向、规模、保证金、杠杆、开仓价)。
Inputs: limit (required), market (required).
get_market_series市场走势ARead-onlyIdempotent
某市场的时间序列:24h 按小时,7d / 30d 按天。每个点有交易量、笔数、交易者数、新开多 / 新开空规模、清算次数和规模、交易者已实现盈亏、平仓利润费、代币成交额;按天时还有 LP 净值和池子规模。附区间合计。
Inputs: range (required), market (required).
get_market_trades市场成交BRead-onlyIdempotent
某市场最近的合约成交(开平仓、清算、ADL),含方向、规模、价格、盈亏、手续费。
Inputs: limit (required), market (required).
get_order订单状态BRead-onlyIdempotent
按订单 key 查询订单状态(已创建 / 已成交 / 已取消 / 冻结)及成交结果。
Inputs: key (required).
get_overview平台总览BRead-onlyIdempotent
各标的(BTC / ETH / XAU 等)的汇总:当前价格(Hyperliquid 中间价,美元)、池子总规模、24 小时交易量、多头占比。
Inputs: no named parameters.
get_price实时价格ARead-onlyIdempotent
某市场(或标的)当前链上执行价来源:Hyperliquid 盘口买一、卖一和中间价(美元)。开多/平空按卖一成交,开空/平多按买一成交。
Inputs: market (required).
get_rules平台规则ARead-onlyIdempotent
返回 OursMeme 的产品规则:手续费、资金费、LP、收入分配、meme 代币、分红、亏损挖矿、平台积分,以及使用这些工具的注意事项。第一次接入时先读一遍。
Inputs: no named parameters.
get_stats标的统计ARead-onlyIdempotent
某个标的在一段时间内的统计和按天序列:池子、交易量、新市场数、清算次数和规模、平台收入、交易者盈亏。
Inputs: range (required), under (required).
get_token_holders持币排行BRead-onlyIdempotent
某市场 meme 代币的持币地址数和持币排行(数量、占总量 10 亿的百分比),并标出底池、挖矿储备、分红合约、dev 等非流通地址。
Inputs: limit (required), market (required).
get_token_trades代币成交BRead-onlyIdempotent
某市场 meme 代币在内盘的最近买卖:时间、地址、方向、USDC、代币数量、成交价、手续费、交易哈希。
Inputs: limit (required), market (required).
get_trending热门市场BRead-onlyIdempotent
窗口内(1h / 6h / 24h)合约加代币成交额最高的市场(含交易者数、代币涨跌幅),以及最新创建的市场。
Inputs: limit (required), window (required).
list_creators创建者列表BRead-onlyIdempotent
市场创建者(dev)列表:名称、站点、钱包、创建的市场数。
Inputs: no named parameters.
list_markets市场列表ARead-onlyIdempotent
列出合约市场,可按标的筛选并排序。返回 slug、代号、池子规模、24h 交易量、持仓量、多头占比、资金费、LP 年化、最大杠杆、代币价格等。
Inputs: sort (required), limit (required), order (required), coinMargined (required), +2 more.
quote_token代币报价ARead-onlyIdempotent
某市场 meme 代币买或卖的报价:输入报价资产金额(买,通常是 USDC)或代币数量(卖),返回预计得到的数量和手续费。毕业前走内盘发射曲线,毕业后走 PancakeSwap V2(含代币税)。
Inputs: side (required), amount (required), market (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 48 tools
The read/write split is clear (get_* / list_* for data, build_* for transactions), and most tools target a distinct resource+action (e.g. build_add_margin vs build_remove_margin, build_launch_market vs build_attach_market). The main ambiguity lies in the analytics cluster — get_stats, get_market_series, get_market_economics, get_lp_history and get_creator_economics all return overlapping time-series/revenue views of the same market, so an agent must read carefully to pick the right one. Things like get_trending vs get_feed vs get_overview also require the long descriptions to separate.
Every tool follows a strict verb_noun pattern with a small, predictable verb vocabulary: get_*, list_*, build_*, and quote_*. Prefixes map cleanly to semantics (get = read, build = generate unsigned transaction), so an agent can infer a tool's nature and side effects from its name alone.
48 tools is heavy for any single server, though the domain is genuinely broad (perp trading, LP, meme tokens, launches, creators, analytics, agent auth, referrals, testnet). Many read-only analytics endpoints (get_stats / get_market_series / get_market_economics / get_market_positions / get_lp_history / get_token_holders) could plausibly be collapsed into fewer parameterised tools. It is defensible but unwieldy and increases selection cost.
Coverage is genuinely deep: market discovery, quoting, full position lifecycle (open/close/margin/TP-SL/cancel), LP in/out, token buy/sell, market launch and attach, creator and account reporting, claims, agent delegation/revocation, and even testnet faucet and site setup. Minor gaps remain — e.g. build_withdraw_lp references a dev 'request unlock' step with no dedicated tool for it, and there is no way to edit market metadata after launch.
Maintenance
Related MCP Connectors
Trade Hyperliquid perps, stocks, gold, oil and pre-IPO from AI agents. Hosted; keys can't withdraw.
Non-custodial DeFi tools for AI agents on Solana: swaps, perps, lending, staking, equities.
Unified financial infrastructure connecting AI agents directly to trade live/demo brokerage accounts, Web3 non-custodial wallets, real-time market data across equities, ETFs, crypto, forex, options, DeFi swaps, and prediction markets, institutional research feeds, and algorithmic strategy backtesters.
Market data for agents: perps, OI, funding, Solana wallet swaps. Paid per call in USDC over x402.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Hyperliquid perpetual futures exchange for market analysis, account management, and risk-managed trading.51MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to query liquidation radar for seven tokens, inspect recorded BTC/ETH order book depth with wall history and aggressor flow, and request Li.Fi cross-chain swap routes that agents sign themselves.MIT
- AlicenseAqualityCmaintenanceEnables AI agents to access Strike Finance market data, account positions and liquidation risk, and, when opted in, preview and place guarded perpetual futures orders.13MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to query live BTC and ETH perpetual markets, wallet analytics, leaderboards, and liquidation maps, then preview and execute guarded trades through non-custodial session keys.85 npm4MIT