Lucyd

trade.lucyd由 lucyd.trade 发布官方发布者v0.1.4更新于 Oct 26, 2026

Trade Bitcoin Up/Down prediction markets on Lucyd: markets, order books, orders, positions.

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

Lucyd 让助手接入比特币涨跌预测市场交易所,可浏览市场、读取订单簿,并用钱包下单交易。

可以做什么
  • 列出并查看市场,包括规则、行权价、结束日期与涨跌结果代币编号
  • 读取订单簿的买卖盘、最优买卖价与中间价,以及按市场或交易者筛选的近期成交
  • 查询持仓、盈亏历史、交易者统计与排行榜
  • 下单(限价或市价)、平仓、撤单、授权交易并领取已结算市场的收益(需本地服务器与钱包密钥)
  • 查看服务健康状态、结算进度与实时成交流状态
适用场景
适合让助手用自然语言研究或交易短周期比特币涨跌预测市场,或跟踪某个钱包的持仓与盈亏。仅需市场数据时,用托管端点即可。
运行要求
远程端点无需安装、无需认证。交易需本地运行服务器:Node.js 18 或更新版本(或下载二进制文件),设置 LUCYD_PRIVATE_KEY 环境变量,钱包需持有测试 USDC 及少量 Sepolia ETH 用于授权和领取,并需访问 Lucyd API、订单簿与 Sepolia RPC 节点的网络。
安装前请注意
交易需要 LUCYD_PRIVATE_KEY 钱包密钥,用于签署订单和交易;请使用专用钱包,只放准备用于交易的资金。服务器会提示助手交易前征得同意,但这取决于助手,建议调低 LUCYD_MAX_ORDER_USD 或设置 LUCYD_READ_ONLY=true。相关工具可下单、撤单、授权合约和领取资金。目前运行在 Sepolia 测试网,使用测试 USDC。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Lucyd,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/trade.lucyd%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "lucyd": {
      "type": "http",
      "url": "https://mcp.lucyd.trade/mcp"
    }
  }
}

README

Lucyd MCP server

Connect an AI agent (Claude, Cursor or any MCP client) to Lucyd, a prediction markets exchange. Ask in plain language to browse markets, read the order book, trade, close positions and collect winnings.

Lucyd currently runs on the Ethereum Sepolia testnet with test USDC.

What it can do

ToolWhat it does
list_marketsMarkets with filters by state and period
get_marketOne market: rules, strike, end date, outcome token ids
get_order_bookBids and asks of an outcome, best bid, best ask, mid
list_tradesRecent trades, by market or trader
get_positionsTokens held, average price, value and profit
get_trader_statsProfit, volume, win rate of a wallet
get_pnl_historyProfit over time
top_tradersLeaderboard
get_statusWhether the service, settlement and live trades are healthy
get_walletYour address, ETH and USDC balances, approvals
get_open_ordersYour resting orders
get_order_historyYour past and current orders with status and fills
place_orderLimit or market order (buy or sell up or down)
close_positionSell everything you hold on a market right away
cancel_ordersCancel by id, all on a market, or all
approve_tradingOne-time approvals for the Exchange contract
set_auto_redeemTurn automatic payout of winnings on or off
redeemCollect the payout of a resolved market

Example requests:

  • "Show the open 1h markets and the order book of the current one"
  • "Buy 10 up tokens in the current 15m market at 0.55 or better"
  • "Close my position in the 5m market"
  • "What are my positions and total profit this week?"
  • "Cancel all my orders"

Without a wallet key the server works read-only: markets, books, trades and any wallet's public stats.

Hosted, read-only

For market data only, nothing to install: add https://mcp.lucyd.trade/mcp as a custom connector (remote MCP server, no authentication) in Claude, ChatGPT or any client that supports Streamable HTTP. It has the market data tools: markets, order books, trades, and positions and stats of any wallet address. Trading needs your own wallet key, so it works only with the local server below.

To run your own hosted copy, set LUCYD_HTTP_ADDR (for example 0.0.0.0:3006) and LUCYD_HTTP_HOSTS (the host names it answers to); the server then serves MCP at /mcp and refuses to start with a wallet key.

Install

The easiest way needs only Node.js 18 or newer: the client runs npx -y @lucyd/mcp, which downloads the binary for your system on first run and checks its SHA-256. Nothing else to install, see the configs below.

Without Node.js, download the binary for your system from data.testnet.lucyd.trade/mcp (open the latest version folder; SHA256SUMS there lists the checksums) and put it anywhere, for example ~/bin/lucyd-mcp (lucyd-mcp.exe on Windows). On macOS and Linux make it executable with chmod +x lucyd-mcp. Then use its path instead of npx in the configs below.

Or build from source with Rust:

bash
cargo install --git https://github.com/lucyd-trade/mcp-server

Connect your agent

Replace the key with your trading wallet key. Restart the client afterwards.

Claude Code

bash
claude mcp add lucyd -e LUCYD_PRIVATE_KEY=0xYOUR_KEY -- npx -y @lucyd/mcp

Claude Desktop: edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\).

Cursor: edit ~/.cursor/mcp.json.

Both use the same format:

json
{  "mcpServers": {    "lucyd": {      "command": "npx",      "args": ["-y", "@lucyd/mcp"],      "env": {        "LUCYD_PRIVATE_KEY": "0xYOUR_KEY"      }    }  }}

If the client on Windows cannot start npx, use "command": "cmd" with "args": ["/c", "npx", "-y", "@lucyd/mcp"].

Before the first trade

The wallet needs USDC to buy and a little Sepolia ETH to pay gas for one-time approvals and redemptions. Then ask the agent to check your wallet and approve trading, or call approve_trading directly. Trading itself costs no gas: the exchange settles fills on chain.

Settings

VariableDefaultMeaning
LUCYD_PRIVATE_KEYnoneWallet key that signs orders and transactions. Without it trading tools are off
LUCYD_MAX_ORDER_USD100Largest buy order in USDC
LUCYD_READ_ONLYfalsetrue turns off every tool that trades or sends transactions
LUCYD_RPC_URLhttps://ethereum-sepolia-rpc.publicnode.comSepolia RPC node
LUCYD_API_URLhttps://api.testnet.lucyd.tradeMarkets API
LUCYD_CLOB_URLhttps://clob.testnet.lucyd.tradeOrder book

Safety

  • The key never leaves your machine. The server signs locally and sends only signed orders and transactions.
  • Use a separate wallet for the agent and keep only what you are ready to trade in it.
  • The server tells the agent to ask you before trading, but that is up to the agent. Set LUCYD_MAX_ORDER_USD low, or LUCYD_READ_ONLY=true if you only want data.

How it works

The server runs locally and talks to the agent over stdio. Market data comes from the public API. Orders are signed with EIP-712 and sent to the order book over WebSocket (protocol in the API docs). Approvals and redemptions are plain transactions on Sepolia.

ContractAddress
Exchange0x6588c789c6b6df8f8b6b92e6433f813cc2d1d4d0
ConditionalTokens (outcome tokens)0xB62eFc43C16b4E2Bf1aAAD33002368e55708538D
USDC (6 decimals)0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
AutoRedeemer0x42Bf669f0A3DCc95510001Ddbc43D56FdE67268F

License

MIT

来源:README.md,提交 0176d14

工具

9

get_market

Get market

Full details of one market, including its rules and the ids of its up and down outcome tokens.

输入参数market必填

get_order_book

Get order book

Order book of a market outcome: bids (best first) and asks with prices in USDC per token and sizes in tokens, plus best bid, best ask and mid. Buying down at p is the same book as selling up at 1 - p.

输入参数market必填outcome

get_pnl_history

Get P&L history

Profit and loss over time of a wallet, as a series of points. Defaults to the configured wallet.

输入参数rangeaddress

get_positions

Get positions

Positions of a wallet: tokens held per market and outcome, average price, current value and profit. Settled markets show the payout. Defaults to the configured wallet.

输入参数limitstatemarkettrader

get_status

Service status

Health of the Lucyd service: API and database, settlement of ended markets on time, live trade stream. Use it when something looks stuck, e.g. a market is not resolving.

无需输入参数。

get_trader_stats

Get trader stats

Stats of a wallet: total and realized profit, volume, markets traded, win rate. Defaults to the configured wallet.

输入参数address

list_markets

List markets

List prediction markets on Lucyd. Each market asks whether the BTC price will be Up or Down at its end date versus the strike (strike is the price times 1e8). Returns address (the market id), state, period, start and end dates, strike, winner and volume.

输入参数limitorderstateoffsetperiod

list_trades

List trades

Recent trades, newest first. Filter by market and/or trader. Amounts are in USDC and tokens.

输入参数tofromlimitmarkettrader

top_traders

Top traders

Leaderboard of traders, best first.

输入参数sortlimit

版本历史

2
  1. v0.1.4最新Oct 26, 2026
  2. v0.1.3Oct 20, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分