claude-fidelity-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-fidelity-mcp show me my current portfolio positions and account balances"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@tasque/fidelity-mcp
MCP server for Fidelity brokerage accounts via Playwright browser automation.
Warning — Fidelity has no public API. This automates the web interface, which may violate their Terms of Service.
Tools
Tool | Description |
| Log in to Fidelity (supports TOTP and SMS 2FA) |
| Submit SMS 2FA code |
| List all accounts with balances |
| Get all holdings across accounts |
| Transfer cash between Fidelity accounts |
| Get current stock/ETF price |
| Place a buy/sell order (dry_run default) |
| Place multiple orders sequentially (dry_run default) |
| Check browser session status |
| Close session and save cookies |
| Save browser state to disk |
| Take a full-page screenshot |
| Get page URL and interactive elements |
Related MCP server: fidelity-mcp
Environment Variables
Variable | Required | Description |
| Yes | Fidelity login username |
| Yes | Fidelity login password |
| No | Base32 TOTP secret for automatic 2FA |
| No | Set to |
| No | Session persistence directory (default: |
| No | Session file identifier for multiple accounts |
| No | Set to |
| No | Default timeout in ms (default: |
Auth Setup
Set FIDELITY_USERNAME and FIDELITY_PASSWORD. For automatic 2FA, get your TOTP secret from Fidelity Security Settings > Authenticator app > "Can't scan the code?" and set FIDELITY_TOTP_SECRET. Without TOTP, the server falls back to SMS 2FA (requires calling fidelity_submit_2fa).
Requires Playwright Firefox: npx playwright install firefox
Development
npm install
npx playwright install firefox
npm run build
npm start # stdio modeAvailable Tools
13 toolsfidelity_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
Scored across 13 tools
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.
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.
With 13 tools, the server covers essential Fidelity operations (login, orders, transfers, debugging) without being bloated. Each tool feels necessary for the domain.
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
Playwright browser automation — navigate, click, fill forms, extract, screenshot — 17 agent tools.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Let your AI agent operate any website through a real, logged-in browser session.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables automation of browser tasks using Playwright by interacting via Claude Desktop for executing user-defined prompts and operations.1212MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read balances, positions, and transaction history, and place limit sell orders on Fidelity Investments accounts via Playwright browser automation.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Robinhood brokerage accounts via browser automation, supporting portfolio viewing, quotes, trading, and account management.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables browser automation and web interaction control through Playwright, allowing Claude Code to navigate, click, fill forms, take screenshots, and manage sessions.79 npm9MIT