schwab-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
schwab-mcp
MCP server that connects Claude to your Charles Schwab brokerage account via the Schwab Trader API. Built for wheel strategy management, options analysis, and portfolio monitoring.
Tools Available
Read (always safe)
Tool | Description |
| Balances, buying power, positions summary |
| Current holdings with P&L breakdown |
| Real-time quotes for any symbols |
| Options chain with greeks, OI, premiums |
| Open/recent orders |
| Historical OHLCV candles |
Write (dry_run=true by default)
Tool | Description |
| Sell CC against shares you own |
| Sell CSP (wheel entry) |
| Submit any custom order payload |
| Cancel an open order |
Safety: All write tools default to
dry_run=true, which shows the order preview without submitting. You must explicitly setdry_run=falseto execute.
Related MCP server: firstrade-mcp-server
Setup
1. Register a Schwab Developer App
Go to developer.schwab.com
Create a separate developer account (not your brokerage login)
Click "Create App" in the Dashboard
Select "Accounts and Trading Production" as the API product
Set callback URL to
https://127.0.0.1:8182Wait for approval (status changes from "Approved — Pending" to "Ready For Use", typically 1-3 days)
Copy your App Key and App Secret
2. Configure
cp .env.example .env
# Edit .env with your App Key and App Secret3. Install Dependencies
npm install4. Authenticate
npm run authThis opens your browser for Schwab OAuth login. You'll:
Log in with your brokerage credentials
Select which account(s) to authorize
Get redirected to a localhost URL
Paste that URL back into the terminal
Tokens are saved to tokens.json. The refresh token is valid for 7 days — you'll need to re-auth after that.
5. Add to Claude Desktop
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"schwab": {
"command": "node",
"args": ["/absolute/path/to/schwab-mcp/src/index.js"],
"env": {}
}
}
}Restart Claude Desktop. You should see the Schwab tools appear.
Example Prompts
Once connected, you can ask Claude things like:
"What are my current positions and P&L?"
"Show me the AAPL options chain for calls expiring in the next 2 weeks"
"What covered calls could I sell on my AAPL shares for ~30 delta?"
"Preview a cash-secured put on SPY at the $540 strike"
"What are my open orders?"
"Cancel order 123456789"
"Show me a 3-month price chart for TSLA"
Architecture
Claude Desktop
│ (stdio)
▼
schwab-mcp (this server)
│ (HTTPS + OAuth2)
▼
Schwab Trader API
│
▼
Your Brokerage AccountToken Lifecycle
Access token: Expires every 30 minutes, auto-refreshed by the client
Refresh token: Valid for 7 days, then you must re-run
npm run authConsider a cron job to refresh tokens periodically to avoid expiration
Notes
The Schwab API may take 1-3 days to approve your app after registration
Option symbols use OCC format:
AAPL 260417C00200000(padded, strike × 1000)Rate limits apply — the client doesn't currently implement backoff (TODO)
This is for personal use only per Schwab's Individual Trader API terms
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Agentic brokerage access to a US brokerage account: quotes, orders, positions, cash and documents.
Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.
Connect Claude, ChatGPT, Codex, Claude Code or another MCP client to your real multi-broker investment portfolio. Fortunest tracks stocks, ETFs and crypto across brokers and exchanges; its MCP server lets your agent read holdings, returns, allocation, risk, trades and tax lots, calculated by Fortunest rather than guessed by the model. Reads run on their own; every change waits for your approval in the Fortunest app, and no tool places an order or moves money. Sign-in is OAuth 2.1 and needs Fortunest Pro (14-day trial, no card). A free demo that needs no account is listed as Fortunest demo.
Read-only access to your own bank, card and brokerage accounts for Claude, ChatGPT and other AI agents: balances, transactions, spending, subscriptions, cashflow and investment holdings. It can never move money.
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
- AlicenseAqualityCmaintenanceEnables LLM hosts to read and manage a Firstrade brokerage account, including positions, balances, quotes, option chains/greeks, order history, and safe order placement with enforced preview-before-trade confirmation.154MIT
- AlicenseAqualityCmaintenanceEnables Claude to log into Fidelity through Playwright browser automation and view accounts, positions, and quotes, as well as stage, preview, or place orders, initiate transfers, and capture screenshots. Orders default to dry-run previews, and the user always completes login and 2FA themselves.121MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude to a Tastytrade brokerage account to read balances, positions, option chains, screeners and realized P&L, and to preview and place multi-leg orders only after a broker dry-run, an operator live-trading switch and an explicit per-order confirmation in chat.MIT