Skip to main content
Glama
claude-fidelity-mcp

claude-fidelity-mcp

by TylerFlar

@tasque/fidelity-mcp

Playwright 브라우저 자동화를 통한 Fidelity 증권 계좌용 MCP 서버입니다.

경고 — Fidelity는 공개 API를 제공하지 않습니다. 이 도구는 웹 인터페이스를 자동화하며, 이는 서비스 약관을 위반할 수 있습니다.

도구

도구

설명

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

세션 종료 및 쿠키 저장

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

아니요

기본 타임아웃(ms) (기본값: 30000)

인증 설정

FIDELITY_USERNAME 및 FIDELITY_PASSWORD를 설정하십시오. 자동 2FA를 사용하려면 Fidelity 보안 설정 > 인증기 앱 > "코드를 스캔할 수 없나요?"에서 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