Skip to main content
Glama
claude-fidelity-mcp

claude-fidelity-mcp

by TylerFlar

@tasque/fidelity-mcp

Playwrightブラウザ自動化を使用したFidelity証券口座用MCPサーバー。

警告 — Fidelityには公開APIがありません。本ツールはWebインターフェースを自動化するものであり、利用規約に違反する可能性があります。

ツール

ツール

説明

fidelity_login

Fidelityにログイン(TOTPおよびSMS 2FAをサポート)

fidelity_submit_2fa

SMS 2FAコードを送信

fidelity_get_accounts

全口座の残高を一覧表示

fidelity_get_positions

全口座の保有銘柄を取得

fidelity_transfer

Fidelity口座間で現金を送金

fidelity_get_quote

現在の株式/ETF価格を取得

fidelity_place_order

売買注文を発注(デフォルトは dry_run)

fidelity_batch_orders

複数の注文を順次発注(デフォルトは dry_run)

fidelity_status

ブラウザセッションの状態を確認

fidelity_logout

セッションを終了してCookieを保存

fidelity_save_session

ブラウザの状態をディスクに保存

fidelity_screenshot

ページ全体のスクリーンショットを撮影

fidelity_page_content

ページのURLとインタラクティブな要素を取得

Related MCP server: fidelity-mcp

環境変数

変数

必須

説明

FIDELITY_USERNAME

はい

Fidelityログインユーザー名

FIDELITY_PASSWORD

はい

Fidelityログインパスワード

FIDELITY_TOTP_SECRET

いいえ

自動2FA用のBase32 TOTPシークレット

FIDELITY_HEADLESS

いいえ

ブラウザを表示するには "false" に設定(デフォルト: true)

FIDELITY_SESSION_DIR

いいえ

セッション永続化ディレクトリ(デフォルト: ~/.fidelity-mcp)

FIDELITY_SESSION_TITLE

いいえ

複数アカウント用のセッションファイル識別子

FIDELITY_DEBUG

いいえ

デバッグログを有効にするには "true" に設定

FIDELITY_TIMEOUT

いいえ

デフォルトのタイムアウト(ミリ秒)(デフォルト: 30000)

認証設定

FIDELITY_USERNAME と FIDELITY_PASSWORD を設定してください。自動2FAを利用するには、Fidelityのセキュリティ設定 > Authenticatorアプリ > 「コードをスキャンできませんか?」からTOTPシークレットを取得し、FIDELITY_TOTP_SECRET に設定します。TOTPがない場合、サーバーはSMS 2FAにフォールバックします(fidelity_submit_2fa の呼び出しが必要です)。

Playwright Firefoxが必要です: npx playwright install firefox

開発

npm install
npx playwright install firefox
npm run build
npm start        # stdio mode

Available Tools

13 tools
fidelity_batch_ordersA

Place multiple buy/sell orders sequentially in a single account. Useful for portfolio rebalancing. Each order is placed one at a time. Returns results for each order.

Inputs: account_number (required), orders (required), dry_run.

fidelity_get_accountsB

List all Fidelity accounts with their names, numbers, and optionally withdrawal balances.

Inputs: include_balances.

fidelity_get_positionsA

Get all positions (holdings) across all Fidelity accounts. Returns account details with stock ticker, quantity, price, and value for each holding.

Inputs: no named parameters.

fidelity_get_quoteB

Get the current price for a stock/ETF symbol via Fidelity's trade page.

Inputs: symbol (required).

fidelity_loginA

Log in to Fidelity. Supports TOTP 2FA (automatic) and SMS 2FA (requires follow-up with fidelity_submit_2fa). Credentials can be passed directly or via env vars FIDELITY_USERNAME, FIDELITY_PASSWORD, FIDELITY_TOTP_SECRET.

Inputs: username, password, totp_secret.

fidelity_logoutA

Close the Fidelity browser session and save cookies for faster re-login next time.

Inputs: no named parameters.

fidelity_page_contentA

Get the current page URL and key HTML structure. Useful for debugging when selectors fail.

Inputs: url.

fidelity_place_orderA

Place a buy or sell order for a stock/ETF on Fidelity. Supports market and limit orders. Use dry_run=true to preview without executing. For penny stocks (<$1) and extended hours, limit orders are used automatically.

Inputs: account_number (required), symbol (required), action (required), quantity (required), +3 more.

fidelity_save_sessionA

Manually save the current browser session state (cookies/localStorage) for persistence across restarts.

Inputs: no named parameters.

fidelity_screenshotA

Take a screenshot of the current Fidelity browser page. Useful for debugging when tools return unexpected results.

Inputs: url.

fidelity_statusA

Check whether the Fidelity browser session is active and logged in.

Inputs: no named parameters.

fidelity_submit_2faA

Submit the SMS 2FA code received on your phone to complete Fidelity login. Only use this after fidelity_login returns needsSms2FA=true.

Inputs: code (required).

fidelity_transferA

Transfer cash between two Fidelity accounts. Validates available balance before submitting.

Inputs: from_account (required), to_account (required), amount (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool has a unique and clear purpose (login, logout, get accounts, place orders, etc.). No two tools overlap in functionality, and the descriptions clearly differentiate them.

    Naming Consistency5/5

    All tools follow a consistent 'fidelity_verb_noun' pattern in snake_case (e.g., fidelity_get_accounts, fidelity_place_order). This makes the set predictable and easy to navigate.

    Tool Count5/5

    With 13 tools, the server covers essential Fidelity operations (login, orders, transfers, debugging) without being bloated. Each tool feels necessary for the domain.

    Completeness4/5

    The tool set covers core workflows: login, account info, quotes, orders (single & batch), transfers, and session management. Minor gaps like order cancellation or history exist, but the surface is strong for its stated purpose.

    Related MCP Connectors

    Related MCP Servers