Skip to main content
Glama
chensirui2008

Schwab Read-Only MCP

Schwab Read-Only MCP

本地 stdio MCP:从 Charles Schwab 官方 API 读取美股行情与账户数据。没有下单、撤单、修改账户或其他写入工具。

已提供工具

  • get_quotes:美股报价及基本面字段

  • get_price_history:分钟、日、周或月线 OHLCV;支持 Schwab 允许范围内的完整 ISO 时间区间和盘前盘后

  • get_technical_indicators:本地基于 Schwab K 线计算 SMA20、EMA20、RSI14、MACD(12,26,9)、布林带(20,2)、ATR14 和分交易日 VWAP

  • get_fundamentals:Schwab 可用的发行人基本面字段

  • get_option_chainget_market_hoursget_movers

  • get_accountsget_accountget_transactions

报价是否属于实时数据取决于 Schwab 账户及交易所行情授权;MCP 不会把延时行情误标为实时。K 线的最长可获取范围和粒度由 Schwab API 限制;财务报表、逐季历史财务、预期和研报并不包含在 Schwab 基本面字段内。

Related MCP server: market-data-mcp

前置条件

  1. Schwab Developer Portal 创建应用,并将回调地址完整填入该应用设置。

  2. Python 3.11+ 与 uv

cd /Users/chensirui/Develop/Equity_research/schwab_readonly_mcp
uv sync
export SCHWAB_CLIENT_ID='你的 App Key'
export SCHWAB_CLIENT_SECRET='你的 App Secret'
export SCHWAB_REDIRECT_URI='与你在 Schwab 登记的一致的回调地址'
uv run schwab-readonly-mcp auth

授权命令会打开浏览器;授权后粘贴完整的回调 URL。令牌默认保存为 ~/.config/schwab-readonly-mcp/token.json,目录权限为 0700、文件权限为 0600

连接 Codex

在本地 MCP 配置中添加:

{
  "mcpServers": {
    "schwab-readonly": {
      "command": "uv",
      "args": ["--directory", "/Users/chensirui/Develop/Equity_research/schwab_readonly_mcp", "run", "schwab-readonly-mcp", "server"],
      "env": {
        "SCHWAB_CLIENT_ID": "…",
        "SCHWAB_CLIENT_SECRET": "…",
        "SCHWAB_REDIRECT_URI": "…"
      }
    }
  }
}

不要把 App Secret 或 token 写进项目、提交到 Git,或提供给对话。

本地验证

uv run python -c "from schwab_readonly_mcp.server import create_server; print(create_server)"
Install Server
F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A read-only MCP server that provides access to Charles Schwab account data and market information, including portfolio positions, real-time quotes, options chains, price history, and account balances through AI assistants.
    9
    MIT
  • -
    license
    -
    quality
    -
    maintenance
    Real-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.
  • A
    license
    C
    quality
    C
    maintenance
    An MCP server providing stock market data and trading capabilities through multiple broker APIs including Robinhood and Schwab.
    100
    9
    Apache 2.0
  • A
    license
    C
    quality
    B
    maintenance
    Read-only MCP server that exposes Futu OpenD's investment-research quote APIs (stocks, options, futures, financials, news, etc.) as MCP tools, leveraging an already-running OpenD gateway with no separate authentication.
    53
    9
    MIT

View all related MCP servers

Related MCP Connectors

  • Multi-tenant FastMCP server for Charles Schwab brokerage data, monetized via DPYC Tollbooth

  • Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.

  • Tradier MCP — stock & options market data via the Tradier Brokerage API

View all MCP Connectors

Latest Blog Posts

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/chensirui2008/schwab-readonly-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server