# Lucyd MCP [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/lucyd-trade/mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 313  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/lucyd-mcp

## Description
MCP server for Lucyd prediction markets: let AI agents browse markets and trade

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "lucyd-mcp": {
    "command": "npx",
    "args": ["-y","@lucyd/mcp"],
    "env": {
      "LUCYD_PRIVATE_KEY": "",
      "LUCYD_MAX_ORDER_USD": "",
      "LUCYD_READ_ONLY": "",
      "LUCYD_RPC_URL": "",
      "LUCYD_API_URL": "",
      "LUCYD_CLOB_URL": ""
    }
  }
}
```

**Requires environment variables:** `LUCYD_PRIVATE_KEY`, `LUCYD_MAX_ORDER_USD`, `LUCYD_READ_ONLY`, `LUCYD_RPC_URL`, `LUCYD_API_URL`, `LUCYD_CLOB_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/lucyd-mcp/readme_

