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 分