citadelle-mcp
The Citadelle MCP server lets AI agents interact with decentralized US stock options markets on EVM, retrieving market liquidity, checking wallet positions, and generating secure trade links.
Fetch options market liquidity: Get all available options markets (e.g., AAPL, TSLA, NVDA) and filter by asset symbol to see active strikes and liquidity.
View wallet portfolio: Retrieve open long and short options positions for any provided EVM wallet address.
Generate secure trade links: Prepare a trade (buy/sell call/put) and output a deep link to the Citadelle web UI for the user to review and sign with their browser wallet.
Provides tools for interacting with Citadelle options markets on the Robinhood Chain, including fetching market liquidity, wallet positions, and generating secure trade links.
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., "@citadelle-mcp What are the current liquid markets on Citadelle?"
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.
Citadelle MCP Server
An official Model Context Protocol (MCP) server for Citadelle Options - allowing AI agents (like Claude, Cursor, and Windsurf) to securely interact with decentralized US Stock options markets on the EVM / Robinhood Chain.
🌟 Features
This MCP server equips AI Assistants with three powerful, context-aware tools:
get_markets_liquidity: Fetches all available US Stock options markets (e.g., AAPL, TSLA, NVDA) from the Citadelle Indexer and filters them by available liquidity. The AI instantly knows which markets are active, what the current strike prices are, and whether there is enough liquidity to execute a trade.get_wallet_portfolio: Fetches the open Long and Short (Written) US Stock options positions for any provided EVM wallet address.generate_trade_link: Safely prepares a transaction URL. Instead of having the AI sign a transaction directly with private keys (which is a massive security risk), the AI returns a secure deep-link to the Citadelle Web UI. The user can then review and sign the transaction safely using their browser wallet (MetaMask, Rabby, etc.).
Related MCP server: E*TRADE MCP Server
🚀 Usage Examples (Prompts)
Once the MCP Server is connected to your AI Assistant, you can use natural language to interact with Citadelle. Try these prompts:
Exploring Markets:
"I want to trade US Stocks on Citadelle. What AAPL options are currently available and have liquidity?" "Show me all available Call options for TSLA."
Checking Portfolio:
"Show me my open options portfolio for wallet 0xYourWalletAddress..." "Do I have any active put options for NVDA in my wallet?"
Executing Trades:
"Buy 100 AAPL Call Options for me." (The AI will find the best market, generate a secure trade link, and provide it to you to click and sign). "I want to write a Put option for TSLA to earn some premium. Generate a transaction link for me."
📦 Installation & Configuration
You can run this server directly via npx in any compatible MCP client without needing to install or clone the repository locally!
Configuring in Cursor / Windsurf
Open Settings -> MCP.
Add a new MCP Server.
Name:
CitadelleType:
commandCommand:
npxArgs:
-y citadelle-mcp@latest(This ensures the AI always fetches the newest protocol updates).Set the Environment Variables within the Cursor UI (see the Environment Variables section below).
Configuring in Claude Desktop
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"citadelle": {
"command": "npx",
"args": ["-y", "citadelle-mcp@latest"],
"env": {
"RPC_URL": "https://api.citadelleoption.tech/api/rpc",
"WEB_UI_BASE_URL": "https://citadelleoption.tech",
"API_BASE_URL": "https://api.citadelleoption.tech/api",
"CONTRACT_ADDRESS": "0xe268a55dD2672Ddb6d7727283B27d9BE601c421a"
}
}
}
}⚙️ Environment Variables
To ensure the AI routes your requests to the correct network and API, you must configure the following environment variables:
Variable | Description | Default / Example |
| Your EVM RPC endpoint (use the Backend Proxy for security) |
|
| The domain of the Citadelle Web UI for deep-links |
|
| The URL of the Citadelle API Indexer |
|
| The EVM address of the Citadelle Options smart contract |
|
🛠️ Local Development
If you wish to contribute or run the MCP server locally from source:
Clone the repository and install dependencies:
npm installCreate a
.envfile from the example:cp .env.example .envBuild the TypeScript code:
npm run buildTo link it locally to an MCP client like Cursor, point the MCP settings to your local
dist/index.jsfile:Command:
nodeArgs:
/absolute/path/to/citadelle-mcp/dist/index.js
🔄 Troubleshooting
If your AI assistant is returning outdated market data or generating incorrect links, it may be using a cached version of the MCP Server. To force an update:
Claude Desktop: Quit the application completely (Cmd+Q / Ctrl+Q) and reopen it. This forces
npxto fetch the@latestversion.Cursor/Windsurf: Restart the MCP Server from the settings panel, or manually run
npx clear-npx-cachein your terminal before restarting.
License
MIT
Available Tools
3 toolsgenerate_trade_linkA
Generates a URL that redirects the user to the web UI to securely execute an option trade.
Inputs: action (required), marketId (required).
get_markets_liquidityA
Fetches all Citadelle options markets directly from the EVM blockchain and filters them by available liquidity.
Inputs: assetSymbol.
get_wallet_portfolioA
Fetches open Citadelle options positions for a specific EVM wallet directly from the blockchain.
Inputs: walletAddress (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a clearly distinct concern: market liquidity, wallet positions, and trade execution. There is no overlap or plausible confusion between them.
Two tools follow the get_verb_noun pattern and the third uses generate_trade_link, which is a natural and consistent extension of the same verb-object style. All names are in snake_case with clear, readable intent.
Three tools is within the ideal range and each serves a necessary step in the user journey: viewing markets, checking portfolio, and initiating a trade. The scope is compact but well-defined.
The tool set covers the core flow of discovering markets, reviewing positions, and generating a trade link, which is sufficient for most read-and-execute workflows. Minor gaps like fetching individual position details or market history exist but do not create dead ends.
Related MCP Connectors
Stock options market for AI agents on Robinhood Chain: RFQ quotes, buy/close, P&L, x402 deposits.
Options on Robinhood Chain: live offers, prices, positions, staking; prepares trades you sign.
Non-custodial limit, stop-loss and DCA trading on Epsilon (Robinhood Chain) for AI agents
Warden MCP lets AI agents find tokens, quote swaps and trade onchain on Base, BNB Chain, Robinhood Chain, Arc and Solana, within limits you set. Market tools need no credential: list_chains, search_tokens, trending_tokens, price_history, quote_swap and swap_status. Search by name, ticker or contract address, read USD price candles, and price a swap before committing to it, including cross-chain swaps. Wallet tools act for the wallet whose owner connected the agent, by OAuth sign-in or a wk_ key. agent_permissions shows what the agent may do and its daily limits. prepare_swap builds a trade and hands the owner a review link to sign. With request_session the owner turns on hands-free trading in one tap, and execute_swap then trades within the limits they set. swap_status tracks gasless and cross-chain trades. get_wallet shows holdings on every chain. Gasless trading is available on Base, BNB Chain and Robinhood Chain. Built by Warden Protocol, the team behind Warden Token Terminal.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely interact with Charles Schwab accounts through OAuth authentication, providing access to account balances, real-time market quotes, options chains, transaction history, order management, and comprehensive market data.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to retrieve real-time stock and options market data through the E\*TRADE API using natural language. It features secure OAuth 1.0 authentication, persistent token management, and comprehensive support for stock quotes, options chains, and Greeks.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely trade on Hyperliquid perpetual exchange, including order placement, position management, market data retrieval, and vault operations via natural language.24MIT
- AlicenseAqualityDmaintenanceEnables AI agents to read Robinhood Chain stock-token positions, quote swaps, and execute swaps through the Model Context Protocol, bridging on-chain assets that Robinhood's own off-chain MCP cannot reach.4MIT