Lucyd MCP logo

Lucyd MCP

Trade and analyze Lucyd prediction markets on Ethereum Sepolia through MCP tools for markets, orders, positions, and payouts.

Install Lucyd MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "lucyd-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@lucyd/mcp"
      ],
      "env": {
        "LUCYD_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "LUCYD_MAX_ORDER_USD": "YOUR_VALUE_HERE",
        "LUCYD_READ_ONLY": "YOUR_VALUE_HERE",
        "LUCYD_RPC_URL": "YOUR_VALUE_HERE",
        "LUCYD_API_URL": "YOUR_VALUE_HERE",
        "LUCYD_CLOB_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env LUCYD_PRIVATE_KEY=YOUR_VALUE_HERE --env LUCYD_MAX_ORDER_USD=YOUR_VALUE_HERE --env LUCYD_READ_ONLY=YOUR_VALUE_HERE --env LUCYD_RPC_URL=YOUR_VALUE_HERE --env LUCYD_API_URL=YOUR_VALUE_HERE --env LUCYD_CLOB_URL=YOUR_VALUE_HERE --transport stdio lucyd-mcp -- npx -y @lucyd/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @lucyd/mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

@lucyd/mcp connects AI agents to Lucyd’s prediction markets exchange on the Ethereum Sepolia testnet. It exposes market discovery, order-book, portfolio, trader-statistics, order-management, trading, and redemption tools through MCP. Run it locally over stdio for wallet-based trading, or use Lucyd’s hosted Streamable HTTP endpoint for read-only market data. Reach for it when an agent needs to inspect or trade testnet markets using a controlled wallet.

Use cases

  • Browse open prediction markets by duration or state
  • Inspect order-book prices before placing a trade
  • Track wallet positions, profit, and order fills
  • Place or cancel testnet market and limit orders
  • Redeem winnings from resolved markets

Key features

  • Market and order-book discovery
  • Wallet positions and P&L tracking
  • Limit and market trading
  • Order cancellation and history
  • Position closing and payout redemption
  • Read-only hosted MCP access

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 27d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @lucyd/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads313Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Lucyd MCP works

What @lucyd/mcp does

@lucyd/mcp gives MCP-compatible agents access to Lucyd prediction markets on Ethereum Sepolia, using test USDC. Agents can inspect markets, review outcome-token order books, examine trades and positions, and view public trader performance. With a configured wallet, they can also submit orders, close positions, cancel orders, approve exchange spending, redeem resolved-market payouts, and configure automatic redemption.

The server supports both read-only analysis and wallet-backed trading. Without a private key, market and public-wallet data remain available while trading and transaction tools are disabled. A read-only setting can also disable every tool that trades or sends transactions.

How it works

The local process communicates with an agent over stdio. Market information is retrieved from Lucyd’s public API, while order-book activity uses the Lucyd central limit order book. Orders are signed locally with EIP-712 and sent through the order-book WebSocket connection. Exchange approvals and redemption actions are submitted as Ethereum Sepolia transactions.

Lucyd currently operates this environment on the Sepolia testnet. Trading wallets need USDC for purchases and some Sepolia ETH for one-time approvals and redemptions. Filled trades do not require gas because the exchange settles them off-chain; blockchain transactions are still used for approvals and payouts.

A hosted read-only endpoint is available at https://mcp.lucyd.trade/mcp for clients that support Streamable HTTP. It provides market, order-book, trade, position, and trader-statistics data without requiring local installation or authentication. Hosted operation cannot use a wallet key for trading.

Setup and configuration

The simplest local installation uses Node.js 18 or newer and runs npx -y @lucyd/mcp. The package downloads a platform-specific binary on first use and verifies its SHA-256 checksum. Alternatives include downloading a binary directly or installing from source with Rust and Cargo.

Set LUCYD_PRIVATE_KEY to enable wallet signing. Keep the key on the local machine and use a separate wallet containing only funds intended for the agent. LUCYD_MAX_ORDER_USD limits the largest buy order and defaults to 100 USDC. Set LUCYD_READ_ONLY=true to force data-only operation. RPC, API, and order-book endpoints can be changed with LUCYD_RPC_URL, LUCYD_API_URL, and LUCYD_CLOB_URL.

Claude Desktop, Cursor, and Claude Code can launch the local process with the package command and the wallet key supplied as an environment variable. Restart the client after changing its MCP configuration.

Tools and capabilities

  • Find markets with state and time-period filters using list_markets.
  • Inspect market rules, strike values, end dates, and outcome-token IDs with get_market.
  • Read bids, asks, and pricing metrics through get_order_book.
  • Review market or trader activity with list_trades.
  • Inspect holdings, average prices, values, profit, historical P&L, and trader rankings.
  • Check service, settlement, and live-trading health with get_status.
  • View wallet balances, approvals, open orders, order history, fills, and statuses.
  • Place limit or market buy and sell orders for up or down outcomes.
  • Close positions, cancel selected or all orders, approve trading, redeem resolved markets, and toggle automatic redemption.

Limitations and notes

The exchange is a testnet deployment using test USDC, not a production-market environment. Trading requires a private key, funded USDC, and Sepolia ETH for applicable transactions. The key is used for local signing; signed orders and transactions are sent to Lucyd services or the Sepolia network.

Agents may be instructed to request confirmation before trading, but that behavior depends on the client or agent. Use a low order limit or enable read-only mode to reduce the risk of unintended transactions.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Lucyd MCP

@lucyd/mcp is an MCP server that connects AI agents to Lucyd prediction markets on Ethereum Sepolia. Its main tools browse markets, inspect order books, track trades and positions, manage orders, place trades, close positions, approve trading, and redeem payouts. It supports read-only use without a wallet key.

Install it by running `npx -y @lucyd/mcp` with Node.js 18 or newer. The command downloads and verifies the platform binary on first use. You can also download a binary directly or install from source with Rust and Cargo.

Yes, @lucyd/mcp works with Cursor through its MCP configuration file at `~/.cursor/mcp.json`. Add the server command and, for trading access, provide `LUCYD_PRIVATE_KEY` in the server’s environment configuration.

Yes, without a wallet key it provides read-only access to markets, order books, trades, and public wallet statistics. Trading, approvals, redemptions, and other transaction tools require a configured wallet.

Set `LUCYD_READ_ONLY=true` to disable every tool that trades or sends transactions. You can also keep `LUCYD_PRIVATE_KEY` unset for read-only operation and lower `LUCYD_MAX_ORDER_USD` to limit buy orders.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLucyd MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/lucyd-mcp?style=directory)](https://allmcps.com/mcp/lucyd-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/lucyd-mcp"><img src="https://allmcps.com/api/badge/lucyd-mcp?style=directory" alt="Lucyd MCP on AllMCPs" /></a>