Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itMulti-tenant FastMCP server for Charles Schwab brokerage data, monetized via DPYC Tollbooth
One address for any MCP client. You sign in at schwab-mcp.fastmcp.app once, after adding it.

At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Odel could not list its tools without signing in.

Your brokerage data, conversationally. Ask your AI assistant about your positions, screen option spreads, audit today's trades against your strategy rules, and get end-of-day reports — all from natural language. The data cost? About 6 sats per session (~$0.005).
The data in schwab-mcp is nothing you can't get from ThinkOrSwim, OptionAlpha, or Schwab's own web UI. What you can't get from those tools is a personal trading assistant that blends:
Ask "How would you judge my new trades for the day?" and get a structured audit against your criteria. Ask "What are three SPS candidates aligned with my strategy and balanced with my current book?" and get sector-aware, earnings-aware, IV-aware suggestions — grounded in your actual positions, not generic advice.
The AI does the synthesis. schwab-mcp provides the data bridge. You pay per-call in Bitcoin Lightning sats — no subscription, no KYC, no vendor lock-in. A full day of morning report + evening report + follow-up analysis costs about 6 sats (< $0.01).
Multi-tenant MCP server exposing Charles Schwab brokerage data to AI agents via FastMCP. Monetized via Tollbooth DPYC™ Lightning micropayments. Serves over Streamable HTTP with direct async httpx calls to api.schwabapi.com.
Don't Pester Your Customer™ (DPYC™) — API monetization for Entrepreneurial Bitcoin Advocates
Inspired by The Phantom Tollbooth by Norton Juster, illustrated by Jules Feiffer (1961).
DPYC™ stands for Don't Pester Your Customer. It is a philosophy and protocol for API monetization that eliminates mid-session payment popups, subscription nag screens, and KYC friction.
Pre-funded balances -- Users buy credits (api_sats) via Bitcoin Lightning
before using tools. Each tool call silently debits from their balance. No
interruptions, no "please upgrade" modals. Credits expire after a
tranche_lifetime window set by the operator's pricing model.
Nostr keypair identity -- Users are identified by a Nostr public key
(npub), not an email or password. One keypair per role, managed by the
user. No account creation forms.
Identity on the connection -- Every paid tool call names the patron's
npub; the connection proves it. A client holding the nsec signs each
request (NIP-98). A client holding no key connects with OAuth and proves
the npub once through request_npub_proof / receive_npub_proof -- a
human-in-the-loop Secure Courier exchange the patron approves in their
Nostr client. The connection then holds the npub for the duration the
patron chose, across MCP restarts.
UUID-keyed tool identity -- Every tool is a ToolIdentity object with
a deterministic UUID v5 derived from a capability name. Pricing hints come
from the category field:
| Category | Pricing hint | Use case |
|---|---|---|
free | 0 sats | Balance checks, status |
read | 1 sat | Simple lookups |
write | 5 sats | Multi-step operations |
heavy | 10 sats | Expensive queries |
Actual prices (api_sats) are set dynamically by the operator's pricing model in Neon.
Rollback on failure -- If the downstream API fails after a debit, credits are automatically rolled back via a compensating tranche. The user never pays for a failed call.
Social Contract -- The DPYC™ ecosystem is a voluntary community:
All paid tools take the patron's npub; the connection proves it.
| Tool | Tier | Description |
|---|---|---|
get_brokerage_positions | write | Portfolio positions with automatic options spread detection (bull put / bear call) |
get_brokerage_balances | write | Cash, buying power, net liquidation value, day P&L |
get_stock_quote | write | Real-time quotes for one or more symbols |
get_market_movers | write | Top movers for a market index ($SPX, $DJI, $COMPX) |
get_market_hours | write | Trading hours for equity, option, bond, future, forex markets |
search_instruments | write | Search for instruments by symbol, name, or CUSIP |
get_option_chain | heavy | Filtered option chain with Greeks, IV, OTM%, and OI threshold |
get_price_history | heavy | Historical OHLCV candle data |
get_brokerage_orders | heavy | Order history with multi-leg spread support (default 30 days) |
get_brokerage_order | heavy | Single order detail by ID |
get_brokerage_transactions | heavy | Transaction history -- trades, dividends, cash movements (default 30 days) |
get_brokerage_transaction | heavy | Single transaction detail by ID |
| Tool | Description |
|---|---|
session_status | Check operator lifecycle state and readiness |
service_status | Check health and configuration of this service |
begin_oauth | Start OAuth2 flow -- returns Schwab authorization URL |
check_oauth_status | Poll whether OAuth flow completed and session is active |
get_account_numbers | List linked Schwab account numbers and hashes |
request_credential_channel | Open a Secure Courier channel for credential delivery via Nostr DM |
receive_credentials | Pick up credentials from the encrypted vault |
forget_credentials | Delete vaulted credentials for re-delivery |
update_patron_credential | Add or update a single patron credential field |
delete_patron_credential | Remove a single patron credential field |
get_patron_credential_fields | List stored patron credential field names |
check_balance | View credit balance and usage |
check_price | Preview tool cost before calling |
purchase_credits | Create a Lightning invoice to buy credits |
check_payment | Verify Lightning payment and credit the balance |
restore_credits | Restore credits from a previously paid invoice |
account_statement | View account statement summary |
account_statement_infographic | Visual SVG infographic of account (1 sat) |
check_authority_balance | Check operator's cert-sat balance at Authority |
get_pricing_model | View the active pricing model |
list_constraint_types | List available constraint types and schemas |
request_npub_proof | Request an npub ownership proof via Nostr DM; returns its nonce |
receive_npub_proof | Collect the reply into this connection, which then holds the npub |
get_operator_onboarding_status | Report operator configuration readiness |
get_patron_onboarding_status | Report patron credential readiness |
list_notarizations | List recent Bitcoin notarization records |
get_notarization_proof | Generate a Merkle inclusion proof for a patron balance |
All brokerage tools are read-only. No orders are placed.
btcpay_host + btcpay_api_key + btcpay_store_id + app_key + secret via Secure Courier (service="schwab-operator"); each patron authenticates via OAuth2 browser flow. Sessions are keyed by npub. No Schwab credentials in env varsSchwabClient wrapper with bearer auth and proactive token refresh (no third-party Schwab SDK)OAUTH_COLLECTOR_URL env var needed)btcpay_host, app_key, and secret must all be present before vaultingThis guide covers the full Tollbooth onboarding path -- from generating a Nostr identity to making your first brokerage data call. It applies to both Operators (who deploy schwab-mcp) and Patrons (who consume it through Claude.ai or another MCP client).
Every participant in the DPYC™ ecosystem is identified by a Nostr keypair -- no email, no password, no vendor lock-in.
What is an npub? It is a public key in the Nostr protocol, encoded as a bech32 string starting with npub1.... Your corresponding private key (nsec1...) stays on your device. The npub is safe to share -- it is how the system knows who you are.
How to generate one:
npub1...)Alternatively, use a CLI key generator like nak: nak key generate
Operators should keep a separate npub for their service identity, distinct from their personal Nostr account.
Before you can buy credits or operate a service, register your npub with the DPYC™ community:
how_to_join() to learn about citizenshipCitizenship is free and gives you a portable identity across the entire Tollbooth network.
The Operator collects Lightning payments from Patrons via BTCPay Server. You need:
These credentials are delivered via Secure Courier (see step 6), not set as environment variables.
Every Operator is sponsored by an Authority in the DPYC™ trust chain. The Authority certifies your purchase orders and collects a small fee (default 2%).
request_adoption(authority_npub=<your Authority's npub>, service_url=<your MCP endpoint>), signing the request with your operator nsec (NIP-98; Pricing Studio does this for you)approve_operator_request), which creates your ledger entry and provisions your Neon databaseadoption_status(authority_npub=...) on your MCP reads provisioned once it is doneBefore your service can issue credits to Patrons, you need cert-sats:
authority_purchase_credits(amount_sats=1000) on your Authority -- returns a Lightning invoiceauthority_check_payment(invoice_id="...") -- confirms settlement and credits your balanceYour cert-sat balance is consumed automatically when Patrons purchase credits from your service.
The Operator must register a Schwab Developer app and deliver both BTCPay and Schwab API credentials via Secure Courier. Credentials never appear in chat.
Schwab Developer apps use app_key and secret as the vendor field names (these map to OAuth client_id and client_secret internally). The redirect_uri registered with Schwab should have no /callback suffix -- use the base collector URL exactly as shown in the registry.
The Secure Courier is a human-in-the-loop exchange: the operator consciously replies in their Nostr client. The relay is drained destructively after pickup -- messages are consumed, not left on the wire.
request_credential_channel(service="schwab-operator", sender_npub=<operator_npub>) -- it returns a nonce, and a welcome DM arrives in your Nostr client (Oxcart){
"btcpay_host": "https://btcpay.example.com",
"btcpay_api_key": "YOUR_API_KEY",
"btcpay_store_id": "YOUR_STORE_ID",
"app_key": "YOUR_SCHWAB_APP_KEY",
"secret": "YOUR_SCHWAB_SECRET"
}
receive_credentials(sender_npub=<operator_npub>, service="schwab-operator", nonce=<that nonce>) -- credentials are validated (btcpay_host, app_key, and secret must all be present) and vaultedThis is a one-time setup per deployment. Operator credentials are encrypted and stored in the NeonVault, persisting across server restarts.
Patrons pre-fund a satoshi balance and consume brokerage tools against it -- no per-request payment interruptions. This is the Don't Pester Your Customer™ philosophy in action. Credits are denominated in api_sats and expire after the operator-configured tranche_lifetime.
purchase_credits(amount_sats=500) -- returns a Lightning invoice with a checkout linkcheck_payment(invoice_id="...") -- confirms settlement and credits your balanceYour balance depletes as you call paid tools. Recharge anytime with another purchase_credits call. Check your balance at any time with check_balance (free). Preview any tool's cost with check_price (free).
You need to authorize schwab-mcp to read your Schwab account:
begin_oauth(npub=<your_npub>) to get an authorization URLcheck_oauth_status(npub=<your_npub>) to confirm session activationget_account_numbers(npub=<your_npub>) to list your accounts and hashesupdate_patron_credential(npub=<your_npub>, field="account_hash", value=<hash>) to set your preferred accountOnce your session is active, ask your AI agent naturally:
get_brokerage_positionsget_brokerage_balancesget_stock_quoteget_market_moversget_market_hourssearch_instrumentsget_option_chainget_brokerage_ordersget_brokerage_transactionsFree tools are always available:
check_balanceaccount_statementrequest_npub_proof / receive_npub_proof, which the patron approves in their Nostr client for a duration they choose (up to 30 days).token_json) and ledger state are stored in Postgres with per-operator row isolation. No secrets in environment variables or chat history.app_key, secret) are delivered via Secure Courier with service="schwab-operator", validated at receive time, and never exposed in logs or responses.Cold start / first tool call fails: The Horizon runtime may cold-start on the first request. Retry the tool call inline -- the server warms up within a few seconds and the second call succeeds.
"proof is required": Call request_npub_proof, reply to the DM, then receive_npub_proof(patron_npub, nonce) once. Your connection then holds the npub; pass only npub on later calls. Duration is patron-chosen. The proof survives MCP restarts.
"Insufficient credit balance": Call purchase_credits to top up. Use check_balance to see your current api_sats balance and tranche_lifetime expiry.
"Operator credentials not configured": This is an operator setup issue, not the patron's problem. The operator must complete the Secure Courier flow (step 6) to deliver app_key and secret.
Credential lifecycle states: Credentials move through pending (channel opened) -> delivered (DM sent by human) -> vaulted (picked up and validated). If receive_credentials returns a lifecycle state instead of success, it is not an error -- it is telling you where in the flow you are. Follow the guidance in the response.
OAuth token stored in vault: After a successful OAuth2 flow, the token_json is persisted in NeonVault. Sessions survive server restarts via the wheel's restore_oauth_session -- which detects expiration, refreshes the token via the provider, and persists the rotated pair back to vault. If the refresh token itself expires (Schwab: 7 days), the patron must re-run begin_oauth.
| Resource | Description |
|---|---|
| tollbooth-dpyc | Operator SDK -- Python library for vault, auth, pricing, Lightning, and Nostr identity |
| dpyc-community | Governance registry -- membership, advisories, threat model, creed, and trademarks |
| dpyc-oracle | Community concierge -- free onboarding and member lookup |
| tollbooth-authority | Certification backbone -- Schnorr-signed certificates and fee collection |
| tollbooth-sample | Sample Operator -- canonical template for new MCP services |
| tollbooth-pricing-studio | iOS pricing-model editor and operator console |
| cypher-mcp | Monetized graph answers -- named Cypher templates over Neo4j/AuraDB |
| schwab-mcp | Charles Schwab brokerage data |
| thebrain-mcp | TheBrain personal knowledge graph |
| excalibur-mcp | X (Twitter) posting service with Secure Courier |
| taxsort-mcp | Tax classification with a Cloudflare Pages UI |
| optionality-mcp | Options analytics (brokerage-data operator) |
| tollbooth-oauth2-collector | OAuth2 callback handler (advocate service) |
| tollbooth-shortlinks | URL shortener utility |
| goodearth-mcp | Climate analytics for small specialty-crop farms |
| beesknees-mcp | The Bee's Knees -- a monetized multiplayer race game |
| roastify-mcp | Roastify coffee catalog and packaging artwork |
| ChartRemotely-mcp | Puts a security on a desktop chart, by voice or tool call |
| tollbooth-web | Shared browser SDK for DPYC™ operator front ends |
| DPYC Whitepaper | Technical whitepaper for the Tollbooth architecture |
| The Phantom Tollbooth on the Lightning Turnpike | Narrative introduction to Tollbooth DPYC™ |
schwab-mcp runs on Horizon. Any MCP client (Claude.ai, Claude Desktop, Cursor, your own agent) can connect:
https://schwab-mcp.fastmcp.app/mcp
Patron identity is on the connection (a NIP-98 signed request, or an OAuth connection that holds the npub after request_npub_proof / receive_npub_proof). The Schwab account is linked separately with begin_oauth / check_oauth_status. Sessions are keyed by npub.
| Variable | Description |
|---|---|
TOLLBOOTH_NOSTR_OPERATOR_NSEC | Operator's Nostr secret key -- the single bootstrap key for identity, Secure Courier DMs, and audit signing |
This is the only env var required to start. Certified operators bootstrap their Neon database URL from the Authority via encrypted Nostr DM -- NEON_DATABASE_URL is not read from the environment. The relay set comes from the shared dpyc-community registry and tranche lifetime from the operator's pricing model -- neither is an env var.
| Variable | Description |
|---|---|
SCHWAB_TRADER_API | API base URL (default https://api.schwabapi.com) |
BTCPay credentials (btcpay_host, btcpay_api_key, btcpay_store_id) and Schwab API credentials (app_key, secret) are delivered exclusively through Secure Courier (service="schwab-operator"), validated at receive time, and stored in the encrypted vault. No secrets in env vars or chat.
uv sync # or: pip install -e ".[dev]"
uv run pytest tests/ -v
schwab-mcp/
server.py # FastMCP server, OperatorRuntime, credit gating, domain tool endpoints
schwab_client.py # Thin async httpx client — bearer auth + token refresh
vault.py # Per-user session management (in-memory cache)
oauth_flow.py # OAuth2 authorization code flow (state tokens, exchange, callback)
settings.py # pydantic-settings (env vars, .env file)
models.py # Pydantic response models
tools/
account.py # Positions, balances, orders, transactions (spread detection)
market.py # Quotes, price history, market movers, market hours, instrument search
options.py # Option chain retrieval + filtering
tests/
test_schwab_client.py # httpx client, token refresh, URL building
test_server.py # Singletons, credit gating, Secure Courier callback
test_vault.py # Session management
test_account.py # Position, balance, order, transaction parsing
test_market.py # Quote + price history formatting
test_oauth_flow.py # OAuth2 state tokens and code exchange
test_options.py # Option chain filtering
The methods, algorithms, and implementations contained in this repository may represent original work by Lonnie VanZandt, first published in April 2026. This public disclosure establishes prior art under U.S. patent law (35 U.S.C. 102).
All use, reproduction, or derivative work must comply with the Apache License 2.0 included in this repository and must provide proper attribution to the original author per the NOTICE file.
If you use or build upon this work, please include the following in your documentation or source:
Based on original work by Lonnie VanZandt and Claude.ai
Originally published: April 2026
Source: https://github.com/lonniev/schwab-mcp
Licensed under Apache License 2.0
Visit the technologist's virtual cafe for Bitcoin advocates and coffee aficionados at stablecoin.myshopify.com.
The author reserves all rights to seek patent protection for the novel methods and systems described herein. Public disclosure of this work establishes a priority date of April 2026. Under the America Invents Act, the author retains a one-year grace period from the date of first public disclosure to file patent applications.
Note to potential filers: This public repository and its full Git history serve as evidence of prior art. Any patent application covering substantially similar methods filed after the publication date of this repository may be subject to invalidation under 35 U.S.C. 102(a).
The Phantom Tollbooth on the Lightning Turnpike -- the full story of how we're monetizing the monetization of AI APIs, and then fading to the background.
DPYC™, Tollbooth DPYC™, and Don't Pester Your Customer™ are trademarks of Lonnie VanZandt. See the TRADEMARKS.md in the dpyc-community repository for usage guidelines.
Apache License 2.0 -- see LICENSE and NOTICE for details.
Because in the end, the tollbooth was never the destination. It was always just the beginning of the journey.