Skip to main content
Glama

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

  1. Open Settings -> MCP.

  2. Add a new MCP Server.

  3. Name: Citadelle

  4. Type: command

  5. Command: npx

  6. Args: -y citadelle-mcp@latest (This ensures the AI always fetches the newest protocol updates).

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

RPC_URL

Your EVM RPC endpoint (use the Backend Proxy for security)

https://api.citadelleoption.tech/api/rpc

WEB_UI_BASE_URL

The domain of the Citadelle Web UI for deep-links

https://citadelleoption.tech

API_BASE_URL

The URL of the Citadelle API Indexer

https://api.citadelleoption.tech/api

CONTRACT_ADDRESS

The EVM address of the Citadelle Options smart contract

0xe268a55dD2672Ddb6d7727283B27d9BE601c421a

πŸ› οΈ Local Development

If you wish to contribute or run the MCP server locally from source:

  1. Clone the repository and install dependencies:

    npm install
  2. Create a .env file from the example:

    cp .env.example .env
  3. Build the TypeScript code:

    npm run build
  4. To link it locally to an MCP client like Cursor, point the MCP settings to your local dist/index.js file:

    • Command: node

    • Args: /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 npx to fetch the @latest version.

  • Cursor/Windsurf: Restart the MCP Server from the settings panel, or manually run npx clear-npx-cache in your terminal before restarting.

License

MIT

Available Tools

3 tools
get_markets_liquidityA

Fetches all Citadelle options markets directly from the EVM blockchain and filters them by available liquidity.

ParametersJSON Schema
NameRequiredDescriptionDefault
assetSymbolNoOptional asset symbol to filter (e.g., SOL, BTC, ETH)

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It usefully adds that data is fetched 'directly from the EVM blockchain' and that liquidity filtering occurs, but it does not explain what 'available liquidity' means, whether results are paginated, or what the return format is. This is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no filler or redundancy. It front-loads the core action and resource, then adds the filtering behavior and data source.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only listing tool with one optional parameter, the description is mostly sufficient, but it leaves the exact meaning of 'available liquidity' unclear and provides no return-shape information despite there being no output schema. An agent could call it correctly, but might misjudge what results are returned.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema covers 100% of the single parameter assetSymbol, including its optionality and examples. The description itself does not mention this parameter, but the schema already documents it, so the baseline of 3 applies. No additional semantic value is added beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Fetches'), a clear resource ('all Citadelle options markets'), and a distinct source ('directly from the EVM blockchain'). It also states the selection criterion ('filters them by available liquidity'), which clearly differentiates this tool from the sibling tools get_wallet_portfolio and generate_trade_link.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the toolβ€”when market liquidity data is neededβ€”but it does not explicitly mention alternatives or state when not to use it. The sibling tools are clearly different in purpose, but no direct routing guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_wallet_portfolioA

Fetches open Citadelle options positions for a specific EVM wallet directly from the blockchain.

ParametersJSON Schema
NameRequiredDescriptionDefault
walletAddressYesThe EVM wallet address (0x string)

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does provide some useful behavioral context: it is a read operation ('fetches'), limited to open positions, and sourced directly from the blockchain. However, it does not disclose error behavior, data format, pagination, or whether network conditions or blockchain provider requirements apply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence that conveys the action, resource, scope, and data source with no wasted words. It is appropriately concise for a simple one-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity tool with one fully documented parameter, the description gives enough to invoke it correctly and states what the result represents ('open Citadelle options positions'). However, since there is no output schema, return shape and field details are left unspecified, though this is a minor gap for such a simple getter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already fully documents the only parameter with 'The EVM wallet address (0x string)', so the baseline is 3. The description's phrase 'specific EVM wallet' reinforces the parameter's meaning but adds no new semantic details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('fetches'), a concrete resource ('open Citadelle options positions'), and an explicit scope ('for a specific EVM wallet'). It is clearly distinguishable from the sibling tools, which are about market liquidity and trade link generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool should be used when an agent needs open options positions for a specific EVM wallet, but it does not explicitly state when to use this tool over alternatives or when not to use it. No exclusions or sibling comparisons are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 3 tool updatesv1.0.3
    • First observedgenerate_trade_link
    • First observedget_markets_liquidity
    • First observedget_wallet_portfolio

TDQS

A4.1/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a clearly distinct concern: market liquidity, wallet positions, and trade execution. There is no overlap or plausible confusion between them.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    1
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to securely trade on Hyperliquid perpetual exchange, including order placement, position management, market data retrieval, and vault operations via natural language.
    31 PyPI
    21
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    4
    MIT