
jkoelker/schwab-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
jkoelker/schwab-mcp は [https://github.com/jkoelker/schwab-mcp.] からインポートされた MCP サーバー候補です
概要
jkoelker/schwab-mcp は [https://github.com/jkoelker/schwab-mcp.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
Schwab Model Context Protocol (MCP) Server は、Schwab のアカウントを LLM ベースのアプリケーション (Claude デスクトップや他の MCP クライアントなど) に接続し、市場データを取得したり、アカウントのステータスを確認し、(オプション) 指示に従って注文を指示します。
##特徴
Market Data:リアルタイムの引用符、価格履歴、オプションチェーン、および市場の動き。 アカウント管理:残高、ポジション、取引の表示 Trading:複雑な戦略(OCO、ブラケット)を含む、設備とオプションの包括的なサポート。 Safety First:クリティカルなアクション(取引のような)は、デフォルトでDiscord承認ワークフローの後ろにゲートされます。 *LLMインテグレーション:Agentic AIワークフロー用に特別に設計されています。
クイックスタート
前提条件
- Python 3.10以上
- uv(推奨)または[[T0]
- Schwab開発者アプリキーとシークレット(Schwab Developer Portalから)
インストール
uv tool または [pip] を介してインストールするほとんどのユーザーは、最も簡単です。
##認証
サーバーを実行する前に、Schwab でトークンファイルを生成する必要があります。
これは、Schwabにログインするためのブラウザウィンドウを開きます。 完了すると、トークンは `~/ に保存されます.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Schwab Model Context Protocol Server
The Schwab Model Context Protocol (MCP) Server connects your Schwab account to LLM-based applications (like Claude Desktop or other MCP clients), allowing them to retrieve market data, check account status, and (optionally) place orders under your supervision.
Features
- Market Data: Real-time quotes, price history, option chains, and market movers.
- Account Management: View balances, positions, and transactions.
- Trading: comprehensive support for equities and options, including complex strategies (OCO, Bracket).
- Safety First: Critical actions (like trading) are gated behind a Discord approval workflow by default.
- LLM Integration: Designed specifically for Agentic AI workflows.
Quick Start
Prerequisites
- Python 3.10 or higher
- uv (recommended) or
pip - A Schwab Developer App Key and Secret (from the Schwab Developer Portal)
Installation
For most users, installing via uv tool or pip is easiest:
# Using uv (recommended for isolation)
uv tool install 'schwab-mcp[ta] @ git+https://github.com/jkoelker/schwab-mcp.git'
# Using pip
pip install 'schwab-mcp[ta] @ git+https://github.com/jkoelker/schwab-mcp.git'
The ta extra installs pandas and pandas-ta-classic for the technical-analysis
tools (SMA, RSI, …). Without it those tools are skipped at startup with a
warning; pass --no-technical-tools to run without them deliberately. Add the
signal extra (schwab-mcp[ta,signal]) for Signal approvals.
Pass secrets through environment variables (or schwab-mcp save-credentials)
rather than command-line flags, which are visible to other local users in
ps and end up in shell history:
export SCHWAB_CLIENT_ID=YOUR_KEY
export SCHWAB_CLIENT_SECRET=YOUR_SECRET
export SCHWAB_MCP_DISCORD_TOKEN=BOT_TOKEN # only for Discord approvals
Authentication
Before running the server, you must authenticate with Schwab to generate a token file.
# If installed via uv tool or pip (with SCHWAB_CLIENT_ID / SCHWAB_CLIENT_SECRET exported)
schwab-mcp auth --callback-url https://127.0.0.1:8182
# If running from source
uv run schwab-mcp auth --callback-url https://127.0.0.1:8182
This will open a browser window for you to log in to Schwab. Once complete, a token will be saved to ~/.local/share/schwab-mcp/token.yaml.
Running the Server
Start the MCP server to expose the tools to your MCP client.
# Credentials come from SCHWAB_CLIENT_ID / SCHWAB_CLIENT_SECRET (see above).
# Basic Read-Only Mode (Safest)
schwab-mcp server
# Streamable HTTP (for reverse proxies / remote MCP connectors)
schwab-mcp server --http --host 127.0.0.1 --port 8000
# With Trading Enabled (Requires Discord Approval; token from SCHWAB_MCP_DISCORD_TOKEN)
schwab-mcp server \
--discord-channel-id CHANNEL_ID \
--discord-approver YOUR_USER_ID
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →