citadelle-mcp
Citadelle MCP Server
An official Model Context Protocol (MCP) server for Citadelle Options - allowing AI agents (like Claude, Cursor, Windsurf) to securely interact with Citadelle options markets on the EVM / Robinhood Chain.
Features
This MCP server provides the following tools to AI Assistants:
get_markets_liquidity: Fetches all available options markets from Citadelle and filters them by available liquidity. AI can instantly know which markets are active and ready to trade.get_wallet_portfolio: Fetches the open Long and Short 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 (which is a security risk), the AI returns a secure deep-link to the Citadelle Web UI where the user can review and sign the transaction using their browser wallet.
Installation
You can run this server directly via npx in any compatible MCP client without installing it locally!
Configuring in Cursor / Windsurf
Open Settings -> MCP.
Add a new MCP Server.
Name:
CitadelleCommand:
npxArgs:
-y citadelle-mcp@latest(To always fetch the newest bug fixes) or point directly to the local dist file:node /path/to/citadelle-mcp/dist/index.js
Configuring in Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"citadelle": {
"command": "npx",
"args": ["-y", "citadelle-mcp@latest"],
"env": {
"RPC_URL": "https://rpc.testnet.chain.robinhood.com",
"WEB_UI_BASE_URL": "https://citadelle.com"
}
}
}
}Note for Cursor / Windsurf: You can set these environment variables directly within the MCP settings UI when adding the server.
Updating / Troubleshooting
If your AI assistant is returning outdated or incorrect market data, it may be using a cached version of the MCP Server. To force an update to the newest version:
Claude Desktop: Quit the application completely (Cmd+Q / Ctrl+Q) and reopen it. This forces
npxto check for the@latesttag.Cursor/Windsurf: Restart the MCP Server from the settings panel, or manually run
npx clear-npx-cachein your terminal before restarting.
Local Development
Clone the repository and install dependencies:
npm installCreate a
.envfile from the example:cp .env.example .envBuild the project:
npm run buildStart the server locally for testing:
npm start
Environment Variables
RPC_URL: Your EVM RPC endpoint (default:https://rpc.testnet.chain.robinhood.com)WEB_UI_BASE_URL: The domain of the Citadelle Web UI for trade links (default:https://citadelle.com)CONTRACT_ADDRESS: The EVM address of the Citadelle Options smart contract
License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CitadelleOp/citadelle-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server