Skip to main content
Glama
Open Stocks MCP

Open Stocks MCP

Open Stocks MCP

An MCP (Model Context Protocol) server providing access to stock market data and trading capabilities through multiple broker APIs.

Features

🚀 Current Status: v0.6.5 - Multi-Broker Support (Robinhood + Schwab)

  • ✅ MCP tools across Robinhood + Schwab (see Tool Reference for current breakdown)

  • ✅ Multi-broker architecture - Support for Robinhood and Charles Schwab

  • ✅ Complete trading functionality - stocks, options, order management

  • ✅ Live trading validated - Robinhood stock and options trading tested with real orders

  • ✅ Production-ready - HTTP transport, Docker support, comprehensive testing

  • ✅ Schwab integration complete - OAuth authentication, tools ready for testing (see Tool Reference)

  • 🔧 Account details fixed - Real financial data instead of N/A values

Related MCP server: IBKR MCP Server

Installation

pip install open-stocks-mcp

For development:

git clone https://github.com/Open-Agent-Tools/open-stocks-mcp.git
cd open-stocks-mcp
uv sync   # installs all deps including dev group

Quick Start

1. Set Up Credentials

Create a .env file:

For Robinhood:

ROBINHOOD_USERNAME=your_email@example.com
ROBINHOOD_PASSWORD=your_password

For Schwab (optional):

SCHWAB_API_KEY=your_api_key
SCHWAB_APP_SECRET=your_app_secret
SCHWAB_CALLBACK_URL=https://127.0.0.1:8182/
SCHWAB_TOKEN_PATH=~/.tokens/schwab_token.json

# Enable both brokers
ENABLED_BROKERS=robinhood,schwab

Note: Schwab requires a developer account and API approval (several days). See Schwab Setup Guide for full setup instructions.

2. Start the Server

HTTP Transport (Recommended)

open-stocks-mcp-server --transport http --port 3001

STDIO Transport

open-stocks-mcp-server --transport stdio

3. Test the Server

# Health check (HTTP transport)
curl http://localhost:3001/health

# Prometheus metrics (no auth required)
curl http://localhost:3001/metrics

# Interactive testing
uv run mcp dev src/open_stocks_mcp/server/app.py

The /metrics endpoint exposes:

  • open_stocks_mcp_tool_calls_total (counter by tool)

  • open_stocks_mcp_tool_avg_calls_per_minute (gauge by tool; average over the rolling window)

  • open_stocks_mcp_tool_latency_ms (gauge by tool and quantile: 0.50, 0.95, 0.99)

Distributed tracing setup (OpenTelemetry, Jaeger, Tempo):

MCP Tool Execution Timeout

Each MCP tools/call invocation is bounded by a configurable deadline. Tools that exceed the deadline return a structured JSON error instead of blocking the server indefinitely.

  • YAML key: timeout.tool_execution_timeout_seconds (default: 30)

  • Environment override: OPEN_STOCKS_MCP_TOOL_EXECUTION_TIMEOUT_SECONDS (e.g., 60)

When a tool times out its response body is:

{
  "status": "error",
  "error_type": "ToolExecutionTimeout",
  "failure_class": "timeout",
  "tool": "<tool_name>",
  "timeout_seconds": 30,
  "error": "Tool '...' exceeded the 30s execution limit"
}

The MCP result has isError: true; HTTP /mcp returns status 200 (not 500) so the client can inspect the structured error. Broker-level request timeouts (Robinhood 16 s, Schwab 30 s) remain in effect independently and count toward this deadline.

Operational Circuit Breaker Defaults

Broker call protection is enabled by default and reports state in MCP health_check, MCP rate_limit_status, HTTP /health, and HTTP /status.

  • OPEN_STOCKS_MCP_CIRCUIT_BREAKER_ENABLED (default: true)

  • OPEN_STOCKS_MCP_CIRCUIT_BREAKER_FAILURE_THRESHOLD (default: 5)

  • OPEN_STOCKS_MCP_CIRCUIT_BREAKER_COOLDOWN_SECONDS (default: 60)

State meanings:

  • closed: requests flow normally.

  • open: broker calls fail fast until cooldown expires.

  • half_open: one probe call is allowed; success resets to closed, failure returns to open.

Docker Deployment

Production Docker Setup:

cd examples/open-stocks-mcp-docker
docker-compose up -d

Features:

  • Persistent session storage

  • Automatic log rotation

  • Health monitoring

  • Security headers and CORS

Kubernetes / Orchestrated Deployment: See examples/kubernetes/README.md for Kustomize manifests covering HTTP transport, non-root security context, PVC-backed token/log persistence, and health probes.

MCP Client Integration

Claude Desktop

Add to your MCP settings (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "open-stocks": {
      "command": "open-stocks-mcp-server",
      "args": ["--transport", "stdio"]
    }
  }
}

HTTP Transport Integration

{
  "mcpServers": {
    "open-stocks": {
      "command": "python",
      "args": ["-m", "mcp_http_client", "http://localhost:3001/mcp"]
    }
  }
}

Available Tools

Reference docs and runnable examples:

🏦 Multi-Broker Support

Robinhood Tools:

  • All existing Robinhood functionality maintained

  • No breaking changes to existing API

Schwab Tools:

  • Account & Portfolio - account numbers, balances, positions, day trades

  • Market Data - quotes, price history, instrument search, market hours, movers

  • Trading - market/limit buy/sell, order management, transactions

  • Options - chains, expirations, positions, buy/sell, spreads, cancellation

  • Streaming - real-time account activity, options quotes, and level2 snapshot

  • Dividends/Income - dividends, dividends by symbol, interest payments, stock loan payments

All Schwab tools use schwab_ prefix (e.g., schwab_get_portfolio, schwab_buy_stock_market).


Robinhood Tools by Category

Account & Portfolio

  • Account information and details

  • Portfolio positions and holdings

  • Day trading metrics and history

  • Stock and options order history

Market Data

  • Real-time stock quotes and fundamentals

  • Market movers and top performers

  • Sector analysis and market trends

  • Historical price data

Options Trading

  • Options chains and market data

  • Position aggregation and analysis

  • Historical options data

  • Options instrument search

Watchlists & Profiles ✅ Watchlist Management Tested

  • Watchlist management - All 5 tools working (add/remove symbols tested with AMC)

  • User profile and settings

  • Investment preferences

  • Account features

Market Research

  • Earnings data and analysis

  • Stock ratings and news

  • Dividend information

  • Corporate actions and splits

Analytics & Monitoring

  • Portfolio analytics

  • Performance metrics

  • Server health monitoring

  • Interest and loan payments

Notifications

  • Account notifications

  • Margin calls and interest

  • Subscription management

  • Referral tracking

Advanced Instruments

  • Multi-symbol instrument lookup

  • Enhanced search capabilities

  • Level II market data (Gold required)

  • Direct instrument access

Trading Capabilities

Stock Orders (✅ Live Tested):

  • ✅ Market orders - Buy/sell tested with XOM and AMC

  • ✅ Limit orders - Buy/sell tested with XOM ($106) and AMC ($3)

  • ✅ Stop-loss orders - Sell tested with AMC (25 shares at $2.50)

  • Individual and bulk order cancellation

  • ❌ Deprecated: Trailing stop orders, fractional shares (uncommon use cases)

Options Orders (✅ Live Tested):

  • ✅ Options limit orders (buy/sell) - API bugs fixed

  • ✅ Options discovery and contract search

  • ✅ Credit and debit spread strategies - API bugs fixed, ready for testing

  • Live validation: F $9 put sell order placed successfully

Order Management:

  • Cancel individual or all orders (stock and options)

  • View open positions

  • Order status tracking

Authentication

The server handles Robinhood's authentication requirements:

  • App-Push Approval: Automatic handling of app-based device approval (approve via Robinhood mobile app).

  • SMS/Email MFA Code: Set ROBINHOOD_MFA_CODE before login attempts to complete code-based verification (time-sensitive, typically 5-10 minutes).

  • Session Persistence: Cached and encrypted authentication to reduce re-verification.

Development

Testing

uv run pytest                           # All tests (works after uv sync)
uv run pytest -m "journey_account"      # Fast account tests (~1.8s)
uv run pytest -m "journey_market_data"  # Market data tests (~3.8s)
uv run pytest -m "not slow and not exception_test"  # Recommended for development
uv run pytest -m rate_limited           # Opt-in live API tests that may hit broker rate limits
RUN_RATE_LIMITED=1 uv run pytest        # Include rate-limited tests in a full run
uv run pytest -m performance tests/performance -v  # Mocked, CI-safe benchmarks
RUN_PERFORMANCE=1 uv run pytest         # Include performance tests in a full run

# See CLAUDE.md for complete journey testing guide

Code Quality

ruff check . --fix              # Lint and fix
ruff format .                   # Format code
mypy .                          # Type check

YAML Configuration

Open Stocks MCP can load configuration from open-stocks-mcp.yaml or config.yaml in the current working directory. You can also set an explicit path with OPEN_STOCKS_CONFIG=/path/to/config.yaml or OPEN_STOCKS_CONFIG_FILE=/path/to/config.yaml (OPEN_STOCKS_MCP_CONFIG remains supported for backward compatibility).

Environment variables always win over YAML values, including:

  • MCP_SERVER_NAME, LOG_LEVEL

  • RATE_LIMIT_CALLS_PER_MINUTE, RATE_LIMIT_CALLS_PER_HOUR, RATE_LIMIT_BURST_SIZE

  • CACHE_TTL_MARKET_SECONDS, CACHE_TTL_ACCOUNT_SECONDS, CACHE_MAX_SIZE

  • ENABLE_CACHE

  • OPEN_STOCKS_MCP_BATCH_SIZE, OPEN_STOCKS_MCP_QUEUE_MAX_WAIT

Feature flags support safe defaults plus per-environment overrides:

environment: production
feature_flags:
  brokers.robinhood:
    default: true
  brokers.schwab:
    default: false
    environments:
      production: true

Unknown feature flags resolve to disabled (false).

See config.yaml.example for the supported schema.

Google ADK Evaluation

# Set environment variables
export GOOGLE_API_KEY="your-google-api-key"
export ROBINHOOD_USERNAME="email@example.com"
export ROBINHOOD_PASSWORD="password"

# Start Docker server
cd examples/open-stocks-mcp-docker && docker-compose up -d

# Run evaluation
MCP_HTTP_URL="http://localhost:3001/mcp" adk eval examples/google_adk_agent tests/evals/0_list_available_tools_test.json --config_file_path tests/evals/test_config.json

Project Scope

Completed in v0.7.0-dev:

  • ✅ Multi-broker architecture - Abstract broker layer supporting multiple brokers

  • ✅ Schwab integration - tools across account, market data, trading, options, streaming, and dividends/income (see Tool Reference)

  • ✅ OAuth authentication - Schwab OAuth 2.0 flow with automatic token refresh

  • ✅ Graceful degradation - Server starts even if broker authentication fails

  • ✅ Backward compatibility - All Robinhood tools unchanged, no breaking changes

Completed in v0.6.4:

  • ✅ Enhanced Options Tools - New open_option_positions_with_details() enriches positions with call/put type

  • ✅ Stock trading API fixes - Market, limit, and stop-loss buy/sell functions now working correctly

  • ✅ Live stock trading validation - XOM and AMC orders successfully placed (market, limit, stop-loss)

  • ✅ Tool deprecation - Removed 4 uncommon trading functions (buy_stock_stop_loss, trailing stops, fractional shares)

  • ✅ Options trading API fixes - buy_option_limit, sell_option_limit, and spread strategies now working

  • ✅ Live options validation - F $9 put successfully traded

  • ✅ Options discovery - find_options function working correctly

  • ✅ Options spreads fixed - Credit and debit spread functions corrected (API signature, data structure, symbol extraction)

  • ✅ Watchlist management complete - All 5 watchlist tools working with live testing

  • ✅ Watchlist API fixes - Fixed response format changes and parameter binding issues

  • ✅ All trading functions ready - Phase 7 complete, ready for Phase 8

Next Priority (Schwab Testing):

  • ⏳ Schwab journey tests (blocked by API credentials)

  • ⏳ Live Schwab trading validation

  • ⏳ Multi-broker integration tests

  • ⏳ Schwab-specific documentation

Out of Scope:

  • Crypto trading tools

  • Banking/ACH transfers

  • Account modifications

  • Deposit/withdrawal functionality

Contributing

License

Apache License 2.0 - see LICENSE file for details.

Security

Important Security Notes:

  • Live trading capabilities - Real orders are placed with actual money

  • Never commit credentials to version control

  • Use proper file permissions for .env files

  • Trading validation complete - Both stock and options trading tested

  • Always verify trades before execution in production

  • Options trading note: Selling options (like puts) can result in assignment and stock ownership

For security concerns, please see our security policy.


Disclaimer: This software is for educational and development purposes. Trading stocks and options involves substantial risk. Always verify trades and understand the risks before executing any financial transactions.

Available Tools

150 tools
account_detailsA

Gets comprehensive account details including buying power and cash balances.

Inputs: no named parameters. Returns: object

account_featuresB

Gets comprehensive account features and settings.

Inputs: no named parameters. Returns: object

account_infoB

Gets basic Robinhood account information.

Inputs: no named parameters. Returns: object

account_profileB

Gets trading account profile and configuration.

Inputs: no named parameters. Returns: object

account_settingsC

Gets account settings and preferences.

Inputs: no named parameters. Returns: object

add_to_watchlistC

Adds symbols to a watchlist.

Args:
    watchlist_name: Name of the watchlist
    symbols: List of stock symbols to add

Inputs: watchlist_name (required), symbols (required). Returns: object

aggregated_portfolioA

Get a unified portfolio view aggregated across all registered brokers.

Combines positions and summary values from Robinhood and Schwab into a single
normalized response. Brokers that are not authenticated contribute a degraded
(status=unavailable) entry so partial information is always returned.

Returns:
    Dict with aggregated totals, per-broker rollups, positions list,
    partial_failure flag, and unavailable_brokers list.

Inputs: no named parameters. Returns: object

aggregate_option_positionsA

Gets aggregated option positions collapsed by underlying stock.

Inputs: no named parameters. Returns: object

all_option_positionsB

Gets all option positions ever held.

Inputs: no named parameters. Returns: object

all_watchlistsB

Gets all user-created watchlists.

Inputs: no named parameters. Returns: object

basic_profileB

Gets basic user profile information.

Inputs: no named parameters. Returns: object

broker_comparisonA

Get side-by-side broker comparison for pricing, holdings, and orders.

Args:
    symbols: Optional list of symbols to filter by.
    include_orders: Whether to include recent orders.
    max_orders: Maximum number of orders to return per broker.

Inputs: symbols, include_orders, max_orders. Returns: object

broker_statusA

Gets authentication status for all configured brokers.

Returns information about which brokers are available, authenticated,
or experiencing issues. Use this to troubleshoot authentication problems.

Returns:
    Dictionary with broker authentication status for each broker

Inputs: no named parameters. Returns: object

build_holdingsB

Builds comprehensive holdings with dividend information and performance metrics.

Returns detailed holdings data including cost basis, equity, dividends, and performance.

Inputs: no named parameters. Returns: object

build_user_profileB

Builds comprehensive user profile with equity, cash, and dividend totals.

Returns complete financial profile including total equity, cash balances, and dividend totals.

Inputs: no named parameters. Returns: object

buy_option_limitC

Places a limit buy order for an option.

Args:
    instrument_id: The option instrument ID
    quantity: The number of option contracts to buy
    limit_price: The maximum price per contract

Inputs: instrument_id (required), quantity (required), limit_price (required). Returns: object

buy_stock_limitB

Places a limit buy order for a stock.

Args:
    symbol: The stock symbol to buy (e.g., "AAPL")
    quantity: The number of shares to buy
    limit_price: The maximum price per share

Inputs: symbol (required), quantity (required), limit_price (required). Returns: object

buy_stock_marketB

Places a market buy order for a stock.

Args:
    symbol: The stock symbol to buy (e.g., "AAPL")
    quantity: The number of shares to buy

Inputs: symbol (required), quantity (required). Returns: object

cancel_all_option_orders_toolB

Cancels all open option orders.

Inputs: no named parameters. Returns: object

cancel_all_stock_orders_toolB

Cancels all open stock orders.

Inputs: no named parameters. Returns: object

cancel_option_order_by_idC

Cancels a specific option order.

Args:
    order_id: The ID of the order to cancel

Inputs: order_id (required). Returns: object

cancel_stock_order_by_idC

Cancels a specific stock order.

Args:
    order_id: The ID of the order to cancel

Inputs: order_id (required). Returns: object

complete_profileA

Gets complete user profile combining all profile types.

Inputs: no named parameters. Returns: object

day_tradesB

Gets pattern day trading information and tracking.

Returns day trade count, remaining day trades, PDT status, and buying power information.

Inputs: no named parameters. Returns: object

dividendsB

Gets all dividend payment history for the account.

Inputs: no named parameters. Returns: object

dividends_by_instrumentA

Gets dividend history for a specific stock symbol.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

find_instrumentsC

Searches for instrument information by various criteria.

Args:
    query: Search query string (can be symbol, company name, or other criteria)

Inputs: query (required). Returns: object

find_optionsB

Finds tradable options with optional filtering.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")
    expiration_date: Optional expiration date in YYYY-MM-DD format
    option_type: Optional option type ("call" or "put")

Inputs: symbol (required), expiration_date, option_type. Returns: object

health_checkA

Gets health status of the MCP server.

Inputs: no named parameters. Returns: object

instruments_by_symbolsA

Gets detailed instrument metadata for multiple symbols.

Args:
    symbols: List of stock ticker symbols (e.g., ["AAPL", "GOOGL", "MSFT"])

Inputs: symbols (required). Returns: object

interest_paymentsA

Gets interest payment history from cash management.

Inputs: no named parameters. Returns: object

investment_profileB

Gets investment profile and risk assessment.

Inputs: no named parameters. Returns: object

latest_notificationB

Gets the most recent notification.

Inputs: no named parameters. Returns: object

list_brokersA

Lists all registered brokers and their availability.

Returns:
    List of broker names and their authentication status

Inputs: no named parameters. Returns: object

list_toolsA

Provides a list of available tools and their descriptions.

Inputs: no named parameters. Returns: object

margin_callsB

Gets margin call information.

Inputs: no named parameters. Returns: object

margin_interestB

Gets margin interest charges and rates.

Inputs: no named parameters. Returns: object

market_hoursB

Gets current market hours and status.

Inputs: no named parameters. Returns: object

metrics_summaryB

Gets comprehensive metrics summary for monitoring.

Inputs: no named parameters. Returns: object

notificationsB

Gets account notifications and alerts.

Args:
    count: Number of notifications to retrieve (default: 20)

Inputs: count. Returns: object

open_option_ordersB

Retrieves all open option orders.

Inputs: no named parameters. Returns: object

open_option_positionsB

Gets currently open option positions.

Inputs: no named parameters. Returns: object

open_option_positions_with_detailsA

Gets currently open option positions with enriched details including call/put type.

This enhanced version includes complete option instrument details for each position:
- option_type: "call" or "put"
- strike_price: Strike price of the option
- option_symbol: OCC option symbol
- tradability: Trading status
- state: Option state (active, expired, etc.)
- underlying_symbol: Underlying stock symbol
- enrichment_success_rate: Percentage of positions successfully enriched

Use this instead of open_option_positions() when you need complete option details.

Inputs: no named parameters. Returns: object

open_stock_ordersB

Retrieves all open stock orders.

Inputs: no named parameters. Returns: object

option_credit_spreadB

Places a credit spread order (sell short option, buy long option).

Args:
    short_instrument_id: The option instrument ID to sell (short leg)
    long_instrument_id: The option instrument ID to buy (long leg)
    quantity: The number of spread contracts
    credit_price: The net credit received per spread

Inputs: short_instrument_id (required), long_instrument_id (required), quantity (required), credit_price (required). Returns: object

option_debit_spreadB

Places a debit spread order (buy long option, sell short option).

Args:
    short_instrument_id: The option instrument ID to sell (short leg)
    long_instrument_id: The option instrument ID to buy (long leg)
    quantity: The number of spread contracts
    debit_price: The net debit paid per spread

Inputs: short_instrument_id (required), long_instrument_id (required), quantity (required), debit_price (required). Returns: object

option_historicalsB

Gets historical price data for an option contract.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")
    expiration_date: Expiration date in YYYY-MM-DD format
    strike_price: Strike price as string
    option_type: Option type ("call" or "put")
    interval: Time interval (default: "hour")
    span: Time span (default: "week")

Inputs: symbol (required), expiration_date (required), strike_price (required), option_type (required), +2 more. Returns: object

option_market_dataC

Gets market data for a specific option contract.

Args:
    option_id: Unique option contract ID

Inputs: option_id (required). Returns: object

options_chainsC

Gets complete option chains for a stock symbol.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

options_ordersA

Retrieves a list of recent options order history and their statuses.

Inputs: no named parameters. Returns: object

portfolioB

Provides a high-level overview of the portfolio.

Inputs: no named parameters. Returns: object

positionsB

Gets current stock positions with quantities and values.

Inputs: no named parameters. Returns: object

pricebook_by_symbolC

Gets Level II order book data for a symbol (requires Gold subscription).

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

price_historyC

Gets historical price data for a stock.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")
    period: Time period ("day", "week", "month", "3month", "year", "5year")

Inputs: symbol (required), period. Returns: object

rate_limit_statusA

Gets current rate limit usage and statistics.

Inputs: no named parameters. Returns: object

referralsA

Gets referral program information.

Inputs: no named parameters. Returns: object

remove_from_watchlistC

Removes symbols from a watchlist.

Args:
    watchlist_name: Name of the watchlist
    symbols: List of stock symbols to remove

Inputs: watchlist_name (required), symbols (required). Returns: object

schwab_accountB

Get Schwab account details including balances and positions.

Args:
    account_hash: Account hash from schwab_account_numbers
    include_positions: Whether to include positions (default: True)

Inputs: account_hash (required), include_positions. Returns: object

schwab_account_balancesA

Get account balances for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers

Inputs: account_hash (required). Returns: object

schwab_account_numbersB

Get Schwab account numbers and their hashes.

Inputs: no named parameters. Returns: object

schwab_accountsA

Get all Schwab linked accounts with balances and positions.

Args:
    include_positions: Whether to include positions (default: True)

Inputs: include_positions. Returns: object

schwab_build_user_profileB

Build a normalized Schwab user profile from account and preference data.

Returns a complete financial profile including total equity, cash balances, and position counts across all accounts.

Inputs: no named parameters. Returns: object

schwab_buy_stock_limitB

Place a limit buy order for stock.

Args:
    account_hash: Account hash from schwab_account_numbers
    symbol: Stock ticker symbol
    quantity: Number of shares to buy
    price: Limit price

Inputs: account_hash (required), symbol (required), quantity (required), price (required). Returns: object

schwab_buy_stock_marketB

Place a market buy order for stock.

Args:
    account_hash: Account hash from schwab_account_numbers
    symbol: Stock ticker symbol
    quantity: Number of shares to buy

Inputs: account_hash (required), symbol (required), quantity (required). Returns: object

schwab_cancel_all_option_ordersB

Cancel all open option orders for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    max_results: Maximum orders to fetch before filtering

Inputs: account_hash (required), max_results. Returns: object

schwab_cancel_all_stock_ordersA

Cancel all open equity orders for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    max_results: Maximum orders to fetch before filtering

Inputs: account_hash (required), max_results. Returns: object

schwab_cancel_option_orderB

Cancel a specific option order.

Args:
    account_hash: Account hash from schwab_account_numbers
    order_id: Option order ID to cancel

Inputs: account_hash (required), order_id (required). Returns: object

schwab_cancel_orderB

Cancel a specific Schwab order.

Args:
    account_hash: Account hash from schwab_account_numbers
    order_id: Order ID to cancel

Inputs: account_hash (required), order_id (required). Returns: object

schwab_check_margin_statusC

Derive margin-call status from Schwab account balances.

Inputs: account_hash (required). Returns: object

schwab_find_tradable_optionsB

Find tradable option contracts filtered by expiration, type, and strike.

Args:
    symbol: Stock ticker symbol
    expiration_date: Filter to contracts expiring on this date (YYYY-MM-DD)
    option_type: 'call' or 'put'
    strike: Strike price to filter on

Inputs: symbol (required), expiration_date, option_type, strike. Returns: object

schwab_get_aggregate_positionsA

Aggregate Schwab positions across all linked accounts.

Inputs: no named parameters. Returns: object

schwab_get_all_account_dataA

Get a complete snapshot of all Schwab accounts and user preferences.

Aggregates user preferences, account numbers, and all account data with positions.

Inputs: no named parameters. Returns: object

schwab_get_all_option_positionsB

Get all Schwab option positions across linked accounts.

Inputs: no named parameters. Returns: object

schwab_get_build_holdingsB

Build enriched holdings from Schwab positions and quotes.

Inputs: no named parameters. Returns: object

schwab_get_day_tradesB

Get day-trade counts derived from Schwab transaction history.

Inputs: no named parameters. Returns: object

schwab_get_dividendsB

Get dividend payments for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    start_date: Optional start date (YYYY-MM-DD)
    end_date: Optional end date (YYYY-MM-DD)

Inputs: account_hash (required), start_date, end_date. Returns: object

schwab_get_dividends_by_symbolB

Get dividend payments for a specific symbol in a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    symbol: Stock symbol to filter dividends by (case-insensitive)
    start_date: Optional start date (YYYY-MM-DD)
    end_date: Optional end date (YYYY-MM-DD)

Inputs: account_hash (required), symbol (required), start_date, end_date. Returns: object

schwab_get_instrument_by_cusipB

Get instrument details by CUSIP identifier.

Args:
    cusip: CUSIP identifier (leading zeros are preserved, e.g. '037833100')

Inputs: cusip (required). Returns: object

schwab_get_interest_paymentsB

Get interest payments for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    start_date: Optional start date (YYYY-MM-DD)
    end_date: Optional end date (YYYY-MM-DD)

Inputs: account_hash (required), start_date, end_date. Returns: object

schwab_get_margin_interestC

Get Schwab margin-interest charges from transaction history.

Inputs: account_hash (required), start_date, end_date. Returns: object

schwab_get_market_hoursC

Get market hours for a given market and optional date.

Args:
    market: Market type ('equity', 'option', 'bond', 'forex', 'future')
    date: Optional ISO date string (e.g. '2026-05-20'). Defaults to today.

Inputs: market, date. Returns: object

schwab_get_moversB

Get market movers for a given index.

Args:
    index: Index to query (e.g. '$DJI', '$SPX', 'NASDAQ', 'NYSE', '$COMPX',
           'EQUITY_ALL', 'INDEX_ALL', 'OPTION_ALL', 'OPTION_CALL', 'OPTION_PUT',
           'OTCBB')
    sort_order: Optional sort order ('PERCENT_CHANGE_UP', 'PERCENT_CHANGE_DOWN',
                'VOLUME', 'TRADES')
    frequency: Optional frequency in minutes (0, 1, 5, 10, 30, 60)

Inputs: index (required), sort_order, frequency. Returns: object

schwab_get_movers_sp500C

Get market movers for the S&P 500 index ($SPX).

Args:
    sort_order: Optional sort order ('PERCENT_CHANGE_UP', 'PERCENT_CHANGE_DOWN',
                'VOLUME', 'TRADES')
    frequency: Optional frequency in minutes (0, 1, 5, 10, 30, 60)

Inputs: sort_order, frequency. Returns: object

schwab_get_open_option_positionsA

Get open Schwab option positions with non-zero net quantity.

Inputs: no named parameters. Returns: object

schwab_get_open_stock_ordersC

Get open (cancellable) equity orders for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    max_results: Maximum orders to fetch from API before filtering

Inputs: account_hash (required), max_results. Returns: object

schwab_get_orderB

Get details for a specific Schwab order.

Args:
    account_hash: Account hash from schwab_account_numbers
    order_id: Order ID to retrieve

Inputs: account_hash (required), order_id (required). Returns: object

schwab_get_stock_loan_paymentsB

Get stock loan (securities lending) payments for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    start_date: Optional start date (YYYY-MM-DD)
    end_date: Optional end date (YYYY-MM-DD)

Inputs: account_hash (required), start_date, end_date. Returns: object

schwab_get_total_dividendsA

Get aggregate dividend totals with year grouping for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    start_date: Optional start date (YYYY-MM-DD). Schwab enforces a 60-day
        default lookback; pass an explicit start_date for older history.
    end_date: Optional end date (YYYY-MM-DD)

Inputs: account_hash (required), start_date, end_date. Returns: object

schwab_get_transactionC

Get details for a specific Schwab transaction.

Args:
    account_hash: Account hash from schwab_account_numbers
    transaction_id: Transaction ID to retrieve

Inputs: account_hash (required), transaction_id (required). Returns: object

schwab_get_user_preferencesC

Get Schwab user preferences including account list and streamer info.

Consolidates account profile, settings, and user profile data.

Inputs: no named parameters. Returns: object

schwab_instrumentB

Get instrument information for a symbol.

Args:
    symbol: Stock ticker symbol

Inputs: symbol (required). Returns: object

schwab_open_option_ordersA

Get open option orders for a Schwab account.

Returns only orders with at least one option leg and a working/open status
(WORKING, PENDING_ACTIVATION, QUEUED, ACCEPTED, AWAITING_CONDITION,
AWAITING_MANUAL_REVIEW, AWAITING_PARENT_ORDER).

Args:
    account_hash: Account hash from get_schwab_account_numbers()
    max_results: Maximum orders to fetch before filtering (default 50)

Inputs: account_hash (required), max_results. Returns: object

schwab_option_buy_to_openD

Buy an option to open a position (Schwab).

Inputs: account_hash (required), symbol (required), quantity (required), option_type (required), +2 more. Returns: object

schwab_option_chainB

Get option chain for a symbol.

Args:
    symbol: Stock ticker symbol
    contract_type: Type of contracts ('CALL', 'PUT', 'ALL')
    strike_count: Number of strikes above/below at-the-money price
    include_underlying_quote: Whether to include underlying quote

Inputs: symbol (required), contract_type, strike_count, include_underlying_quote. Returns: object

schwab_option_chain_by_expirationA

Get option chain filtered by expiration dates.

Args:
    symbol: Stock ticker symbol
    from_date: Only return expirations after this date (YYYY-MM-DD)
    to_date: Only return expirations before this date (YYYY-MM-DD)
    contract_type: Type of contracts ('CALL', 'PUT', 'ALL')

Inputs: symbol (required), from_date, to_date, contract_type. Returns: object

schwab_option_expirationsC

Get option expiration dates for a symbol.

Args:
    symbol: Stock ticker symbol

Inputs: symbol (required). Returns: object

schwab_option_sell_to_closeC

Sell an option to close a position (Schwab).

Inputs: account_hash (required), symbol (required), quantity (required), option_type (required), +2 more. Returns: object

schwab_options_positionsC

Get current options positions for an account.

Args:
    account_hash: Account hash from schwab_account_numbers

Inputs: account_hash (required). Returns: object

schwab_order_buy_option_limitB

Place a limit buy-to-open order for an option contract.

Args:
    account_hash: Account hash from schwab_account_numbers
    option_symbol: OCC option symbol (e.g. "AAPL  251219C00150000")
    quantity: Number of contracts to buy
    price: Limit price as a string (e.g. "5.50")

Inputs: account_hash (required), option_symbol (required), quantity (required), price (required). Returns: object

schwab_order_option_credit_spreadA

Place a vertical credit spread option order.

For CALL: bear call spread. For PUT: bull put spread.

Args:
    account_hash: Account hash from schwab_account_numbers
    option_type: "CALL" or "PUT"
    short_symbol: OCC symbol for the leg you sell (collects premium)
    long_symbol: OCC symbol for the hedge/protective leg
    quantity: Number of spread contracts
    net_credit: Net credit received as a string (e.g. "2.00")

Inputs: account_hash (required), option_type (required), short_symbol (required), long_symbol (required), +2 more. Returns: object

schwab_order_option_debit_spreadB

Place a vertical debit spread option order.

For CALL: bull call spread. For PUT: bear put spread.

Args:
    account_hash: Account hash from schwab_account_numbers
    option_type: "CALL" or "PUT"
    long_symbol: OCC symbol for the leg you buy (main directional position)
    short_symbol: OCC symbol for the hedge/short leg
    quantity: Number of spread contracts
    net_debit: Net debit paid as a string (e.g. "3.00")

Inputs: account_hash (required), option_type (required), long_symbol (required), short_symbol (required), +2 more. Returns: object

schwab_ordersC

Get orders for a Schwab account.

Args:
    account_hash: Account hash from schwab_account_numbers
    max_results: Maximum number of orders to return (default: 50)

Inputs: account_hash (required), max_results. Returns: object

schwab_order_sell_option_limitA

Place a limit sell-to-close order for an option contract.

Args:
    account_hash: Account hash from schwab_account_numbers
    option_symbol: OCC option symbol (e.g. "AAPL  251219C00150000")
    quantity: Number of contracts to sell
    price: Limit price as a string (e.g. "4.00")

Inputs: account_hash (required), option_symbol (required), quantity (required), price (required). Returns: object

schwab_order_sell_stopA

Place a stop sell order for stock.

Args:
    account_hash: Account hash from schwab_account_numbers
    symbol: Stock ticker symbol
    quantity: Number of shares to sell
    stop_price: Stop trigger price as a string (e.g. "148.00")

Inputs: account_hash (required), symbol (required), quantity (required), stop_price (required). Returns: object

schwab_place_orderA

Place a generic Schwab order using a raw order specification.

Args:
    account_hash: Account hash from schwab_account_numbers
    order_spec: Order specification dict as accepted by the Schwab API
        (typically produced via schwab order builder helpers)

Inputs: account_hash (required), order_spec (required). Returns: object

schwab_portfolioB

Get Schwab portfolio positions for a specific account.

Args:
    account_hash: Account hash from schwab_account_numbers

Inputs: account_hash (required). Returns: object

schwab_price_historyC

Get price history for a stock symbol.

Args:
    symbol: Stock ticker symbol
    period_type: Type of period ('day', 'month', 'year', 'ytd')
    period: Number of periods
    frequency_type: Frequency type ('minute', 'daily', 'weekly', 'monthly')
    frequency: Frequency value

Inputs: symbol (required), period_type, period, frequency_type, +1 more. Returns: object

schwab_quoteB

Get current quote for a stock symbol from Schwab.

Args:
    symbol: Stock ticker symbol (e.g., 'AAPL', 'TSLA')

Inputs: symbol (required). Returns: object

schwab_quotesB

Get current quotes for multiple stock symbols from Schwab.

Args:
    symbols: List of stock ticker symbols

Inputs: symbols (required). Returns: object

schwab_replace_orderB

Replace (modify) an existing Schwab order.

Args:
    account_hash: Account hash from schwab_account_numbers
    order_id: ID of the order to replace
    order_spec: New order specification dict (use order builder helpers)

Inputs: account_hash (required), order_id (required), order_spec (required). Returns: object

schwab_search_instrumentsC

Search for instruments by symbol or name.

Args:
    query: Symbol or company name to search

Inputs: query (required). Returns: object

schwab_sell_stock_limitC

Place a limit sell order for stock.

Args:
    account_hash: Account hash from schwab_account_numbers
    symbol: Stock ticker symbol
    quantity: Number of shares to sell
    price: Limit price

Inputs: account_hash (required), symbol (required), quantity (required), price (required). Returns: object

schwab_sell_stock_marketA

Place a market sell order for stock.

Args:
    account_hash: Account hash from schwab_account_numbers
    symbol: Stock ticker symbol
    quantity: Number of shares to sell

Inputs: account_hash (required), symbol (required), quantity (required). Returns: object

schwab_stream_account_activityA

Get latest account activity events from Schwab streaming.

Inputs: no named parameters. Returns: object

schwab_stream_level2C

Get a Level 2 snapshot from Schwab streaming cache for a symbol.

Inputs: symbol (required), venue. Returns: object

schwab_stream_option_quotesA

Get real-time option quote snapshots from Schwab streaming.

Args:
    symbols: List of Schwab option symbols (e.g. ['AAPL  260619C00150000'])

Inputs: symbols (required). Returns: object

schwab_stream_quotesB

Get real-time equity quote snapshots from Schwab streaming.

Args:
    symbols: List of equity ticker symbols.

Inputs: symbols (required). Returns: object

schwab_transactionsC

Get Schwab transactions with optional date/type/symbol filters.

Inputs: account_hash (required), start_date, end_date, transaction_types, +1 more. Returns: object

schwab_transactions_by_dateB

Get Schwab transactions constrained by required start and end dates.

Inputs: account_hash (required), start_date (required), end_date (required), transaction_types, +1 more. Returns: object

search_stocks_toolB

Searches for stocks by symbol or company name.

Args:
    query: Search query (symbol or company name)

Inputs: query (required). Returns: object

security_profileB

Gets security profile and settings.

Inputs: no named parameters. Returns: object

sell_option_limitB

Places a limit sell order for an option.

Args:
    instrument_id: The option instrument ID
    quantity: The number of option contracts to sell
    limit_price: The minimum price per contract

Inputs: instrument_id (required), quantity (required), limit_price (required). Returns: object

sell_stock_limitB

Places a limit sell order for a stock.

Args:
    symbol: The stock symbol to sell (e.g., "AAPL")
    quantity: The number of shares to sell
    limit_price: The minimum price per share

Inputs: symbol (required), quantity (required), limit_price (required). Returns: object

sell_stock_marketB

Places a market sell order for a stock.

Args:
    symbol: The stock symbol to sell (e.g., "AAPL")
    quantity: The number of shares to sell

Inputs: symbol (required), quantity (required). Returns: object

sell_stock_stop_lossC

Places a stop loss sell order for a stock.

Args:
    symbol: The stock symbol to sell (e.g., "AAPL")
    quantity: The number of shares to sell
    stop_price: The stop price that triggers the order

Inputs: symbol (required), quantity (required), stop_price (required). Returns: object

session_statusA

Gets current session status and authentication information.

Inputs: no named parameters. Returns: object

stock_earningsB

Gets earnings reports for a stock.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

stock_eventsA

Gets corporate events for a stock (for owned positions).

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

stock_infoB

Gets detailed company information and fundamentals.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

stock_level2_dataA

Gets Level II market data for a stock (Gold subscription required).

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

stock_loan_paymentsA

Gets stock loan payment history from the stock lending program.

Inputs: no named parameters. Returns: object

stock_newsB

Gets news stories for a stock.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

stock_ordersB

Retrieves a list of recent stock order history and their statuses.

Inputs: no named parameters. Returns: object

stock_priceB

Gets current stock price and basic metrics.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

stock_quote_by_idA

Gets stock quote using Robinhood's internal instrument ID.

Args:
    instrument_id: Robinhood's internal instrument ID

Inputs: instrument_id (required). Returns: object

stock_ratingsB

Gets analyst ratings for a stock.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

stocks_by_tagA

Gets stocks filtered by market category tag.

Args:
    tag: Market category tag (e.g., 'technology', 'biopharmaceutical', 'upcoming-earnings')

Inputs: tag (required). Returns: object

stock_splitsB

Gets stock split history for a stock.

Args:
    symbol: Stock ticker symbol (e.g., "AAPL")

Inputs: symbol (required). Returns: object

subscription_feesB

Gets Robinhood Gold subscription fees.

Inputs: no named parameters. Returns: object

top_100_stocksA

Gets top 100 most popular stocks on Robinhood.

Inputs: no named parameters. Returns: object

top_moversB

Gets top 20 movers on Robinhood.

Inputs: no named parameters. Returns: object

top_movers_sp500A

Gets top S&P 500 movers for the day.

Args:
    direction: Direction of movement, either 'up' or 'down' (default: 'up')

Inputs: direction. Returns: object

total_dividendsA

Gets total dividends received across all time.

Inputs: no named parameters. Returns: object

unified_add_to_watchlistB

Adds symbols to a watchlist across supported brokers.

Args:
    watchlist_name: Name of the watchlist
    symbols: List of stock symbols to add
    brokers: Optional list of broker names to target

Inputs: watchlist_name (required), symbols (required), brokers. Returns: object

unified_remove_from_watchlistB

Removes symbols from a watchlist across supported brokers.

Args:
    watchlist_name: Name of the watchlist
    symbols: List of stock symbols to remove
    brokers: Optional list of broker names to target

Inputs: watchlist_name (required), symbols (required), brokers. Returns: object

unified_watchlist_by_nameB

Gets a specific watchlist by name across supported brokers.

Args:
    watchlist_name: Name of the watchlist
    brokers: Optional list of broker names to include

Inputs: watchlist_name (required), brokers. Returns: object

unified_watchlistsA

Gets all watchlists aggregated across supported brokers.

Args:
    brokers: Optional list of broker names to include (e.g., ["robinhood", "schwab"])

Inputs: brokers. Returns: object

user_profileC

Gets comprehensive user profile information.

Inputs: no named parameters. Returns: object

watchlist_by_nameA

Gets contents of a specific watchlist by name.

Args:
    watchlist_name: Name of the watchlist to retrieve

Inputs: watchlist_name (required). Returns: object

watchlist_performanceA

Gets performance metrics for a watchlist.

Args:
    watchlist_name: Name of the watchlist to analyze

Inputs: watchlist_name (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.3/5.0

    Scored across 150 tools

    Disambiguation1/5

    Many tools are near-duplicates or have heavily overlapping purposes, such as open_option_positions, open_option_positions_with_details, all_option_positions, and aggregate_option_positions. The same problem appears across account profile tools, search tools, dividend tools, and order tools, making reliable tool selection very difficult.

    Naming Consistency1/5

    Naming conventions are wildly inconsistent: some tools use verb_noun, some use noun_verb, some are prefixed schwab_ or unified_, and some end in _tool. Similar operations use different verbs and structures, such as buy_stock_market, schwab_buy_stock_limit, schwab_order_buy_option_limit, and cancel_all_option_orders_tool.

    Tool Count1/5

    150 tools is an extreme count for an MCP server, far beyond what an agent can reasonably navigate. The high count is largely caused by redundant variants and broker-specific duplicates rather than genuinely distinct capabilities.

    Completeness3/5

    The server does cover a broad range of brokerage functionality: stock and option trading, orders, positions, watchlists, market data, dividends, transactions, and account info. However, there are notable gaps and rough edges, such as no clear watchlist create/delete lifecycle, several undocumented helper tools, and inconsistent coverage between Robinhood and Schwab.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that integrates with the AlphaVantage financial data API, providing access to stock market data, technical indicators, and fundamental financial information.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for Interactive Brokers, enabling account management, trading operations, and market data queries.
      8
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An advanced MCP server for real-time worldwide stock market data, technical indicators, financials, news, and Python sandboxing with AI models, supporting US and Indian markets.
      29
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server for the Robinhood Crypto Trading API that enables real trading with 13 synthetic order types, risk controls, and durable background jobs. It provides quotes, holdings, cost basis, and over 70 tools across 8 opt-in modules.
      1
      288 npm
      11
      Apache 2.0