H

Hitl Finance MCP

by Blahaj-gif · io.github.Blahaj-gif/hitl-finance-mcp

An MCP server that gives AI assistants read access to real brokerage accounts and market data, with 39 tools for prices, technical analysis, SEC filings, and macro indicators, while order execution requires human approval via a separate dashboard.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-blahaj-gif-hitl-finance-mcp": {
      "command": "uvx",
      "args": [
        "hitl-finance-mcp"
      ],
      "env": {
        "WEBULL_APP_KEY": "<YOUR_VALUE>",
        "WEBULL_APP_SECRET": "<YOUR_VALUE>",
        "WEBULL_REGION_ID": "th",
        "WEBULL_ENVIRONMENT": "prod",
        "FINANCE_BROKER": "webull",
        "SAXO_ACCESS_TOKEN": "<YOUR_VALUE>",
        "SAXO_ENVIRONMENT": "sim",
        "IBKR_BASE_URL": "https://localhost:5000/v1/api",
        "IBKR_TLS_INSECURE": "<VALUE>",
        "SEC_USER_AGENT": "<VALUE>",
        "BLS_API_KEY": "<YOUR_VALUE>",
        "FINMCP_BAR_CACHE": "1",
        "WEBULL_ACCOUNT_ID": "<VALUE>",
        "WEBULL_MAX_RETRIES": "3",
        "WEBULL_PAPER_APP_KEY": "<VALUE>",
        "WEBULL_RETRY_BACKOFF": "0.75",
        "WEBULL_PAPER_APP_SECRET": "<VALUE>",
        "WEBULL_MIN_REQUEST_INTERVAL": "0.25"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-blahaj-gif-hitl-finance-mcp": {
      "command": "uvx",
      "args": [
        "hitl-finance-mcp"
      ],
      "env": {
        "WEBULL_APP_KEY": "<YOUR_VALUE>",
        "WEBULL_APP_SECRET": "<YOUR_VALUE>",
        "WEBULL_REGION_ID": "th",
        "WEBULL_ENVIRONMENT": "prod",
        "FINANCE_BROKER": "webull",
        "SAXO_ACCESS_TOKEN": "<YOUR_VALUE>",
        "SAXO_ENVIRONMENT": "sim",
        "IBKR_BASE_URL": "https://localhost:5000/v1/api",
        "IBKR_TLS_INSECURE": "<VALUE>",
        "SEC_USER_AGENT": "<VALUE>",
        "BLS_API_KEY": "<YOUR_VALUE>",
        "FINMCP_BAR_CACHE": "1",
        "WEBULL_ACCOUNT_ID": "<VALUE>",
        "WEBULL_MAX_RETRIES": "3",
        "WEBULL_PAPER_APP_KEY": "<VALUE>",
        "WEBULL_RETRY_BACKOFF": "0.75",
        "WEBULL_PAPER_APP_SECRET": "<VALUE>",
        "WEBULL_MIN_REQUEST_INTERVAL": "0.25"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-blahaj-gif-hitl-finance-mcp": {
      "command": "uvx",
      "args": [
        "hitl-finance-mcp"
      ],
      "env": {
        "WEBULL_APP_KEY": "<YOUR_VALUE>",
        "WEBULL_APP_SECRET": "<YOUR_VALUE>",
        "WEBULL_REGION_ID": "th",
        "WEBULL_ENVIRONMENT": "prod",
        "FINANCE_BROKER": "webull",
        "SAXO_ACCESS_TOKEN": "<YOUR_VALUE>",
        "SAXO_ENVIRONMENT": "sim",
        "IBKR_BASE_URL": "https://localhost:5000/v1/api",
        "IBKR_TLS_INSECURE": "<VALUE>",
        "SEC_USER_AGENT": "<VALUE>",
        "BLS_API_KEY": "<YOUR_VALUE>",
        "FINMCP_BAR_CACHE": "1",
        "WEBULL_ACCOUNT_ID": "<VALUE>",
        "WEBULL_MAX_RETRIES": "3",
        "WEBULL_PAPER_APP_KEY": "<VALUE>",
        "WEBULL_RETRY_BACKOFF": "0.75",
        "WEBULL_PAPER_APP_SECRET": "<VALUE>",
        "WEBULL_MIN_REQUEST_INTERVAL": "0.25"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-blahaj-gif-hitl-finance-mcp": {
      "command": "uvx",
      "args": [
        "hitl-finance-mcp"
      ],
      "env": {
        "WEBULL_APP_KEY": "<YOUR_VALUE>",
        "WEBULL_APP_SECRET": "<YOUR_VALUE>",
        "WEBULL_REGION_ID": "th",
        "WEBULL_ENVIRONMENT": "prod",
        "FINANCE_BROKER": "webull",
        "SAXO_ACCESS_TOKEN": "<YOUR_VALUE>",
        "SAXO_ENVIRONMENT": "sim",
        "IBKR_BASE_URL": "https://localhost:5000/v1/api",
        "IBKR_TLS_INSECURE": "<VALUE>",
        "SEC_USER_AGENT": "<VALUE>",
        "BLS_API_KEY": "<YOUR_VALUE>",
        "FINMCP_BAR_CACHE": "1",
        "WEBULL_ACCOUNT_ID": "<VALUE>",
        "WEBULL_MAX_RETRIES": "3",
        "WEBULL_PAPER_APP_KEY": "<VALUE>",
        "WEBULL_RETRY_BACKOFF": "0.75",
        "WEBULL_PAPER_APP_SECRET": "<VALUE>",
        "WEBULL_MIN_REQUEST_INTERVAL": "0.25"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-blahaj-gif-hitl-finance-mcp": {
      "command": "uvx",
      "args": [
        "hitl-finance-mcp"
      ],
      "env": {
        "WEBULL_APP_KEY": "<YOUR_VALUE>",
        "WEBULL_APP_SECRET": "<YOUR_VALUE>",
        "WEBULL_REGION_ID": "th",
        "WEBULL_ENVIRONMENT": "prod",
        "FINANCE_BROKER": "webull",
        "SAXO_ACCESS_TOKEN": "<YOUR_VALUE>",
        "SAXO_ENVIRONMENT": "sim",
        "IBKR_BASE_URL": "https://localhost:5000/v1/api",
        "IBKR_TLS_INSECURE": "<VALUE>",
        "SEC_USER_AGENT": "<VALUE>",
        "BLS_API_KEY": "<YOUR_VALUE>",
        "FINMCP_BAR_CACHE": "1",
        "WEBULL_ACCOUNT_ID": "<VALUE>",
        "WEBULL_MAX_RETRIES": "3",
        "WEBULL_PAPER_APP_KEY": "<VALUE>",
        "WEBULL_RETRY_BACKOFF": "0.75",
        "WEBULL_PAPER_APP_SECRET": "<VALUE>",
        "WEBULL_MIN_REQUEST_INTERVAL": "0.25"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-blahaj-gif-hitl-finance-mcp": {
      "command": "uvx",
      "args": [
        "hitl-finance-mcp"
      ],
      "env": {
        "WEBULL_APP_KEY": "<YOUR_VALUE>",
        "WEBULL_APP_SECRET": "<YOUR_VALUE>",
        "WEBULL_REGION_ID": "th",
        "WEBULL_ENVIRONMENT": "prod",
        "FINANCE_BROKER": "webull",
        "SAXO_ACCESS_TOKEN": "<YOUR_VALUE>",
        "SAXO_ENVIRONMENT": "sim",
        "IBKR_BASE_URL": "https://localhost:5000/v1/api",
        "IBKR_TLS_INSECURE": "<VALUE>",
        "SEC_USER_AGENT": "<VALUE>",
        "BLS_API_KEY": "<YOUR_VALUE>",
        "FINMCP_BAR_CACHE": "1",
        "WEBULL_ACCOUNT_ID": "<VALUE>",
        "WEBULL_MAX_RETRIES": "3",
        "WEBULL_PAPER_APP_KEY": "<VALUE>",
        "WEBULL_RETRY_BACKOFF": "0.75",
        "WEBULL_PAPER_APP_SECRET": "<VALUE>",
        "WEBULL_MIN_REQUEST_INTERVAL": "0.25"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
WEBULL_APP_KEY secret No Webull app key for OpenAPI. Used for broker feed and account tools.
WEBULL_APP_SECRET secret No Webull app secret for OpenAPI.
WEBULL_REGION_ID No Webull region code. Also controls the Yahoo .BK ticker fallback. Default: th
WEBULL_ENVIRONMENT No Set to 'prod' (default) for live trading, or 'paper' (aliases: uat, sandbox, simulated) for Webull's sandbox environment. Note: 'paper' repoints the entire client to the sandbox, including quotes. Default: prod
FINANCE_BROKER No Which broker adapter the account and order tools use, and where prices come from: webull, saxo or ibkr. Only the tools the configured broker can serve are registered, so the tool list never advertises one that would refuse. Webull is the only adapter that has been run against a live account; saxo and ibkr are written from published documentation and say so in every result they produce. Default: webull
SAXO_ACCESS_TOKEN secret No Only for FINANCE_BROKER=saxo. A 24-hour simulation token comes from Saxo's Developer Portal with no approval process and no live money; live access needs the OAuth2 code flow. UNVERIFIED ADAPTER.
SAXO_ENVIRONMENT No sim or live. Selects Saxo's simulation gateway or the live one. Default: sim
IBKR_BASE_URL No Only for FINANCE_BROKER=ibkr. This is the Client Portal Web API, not the TWS socket API: run IBKR's Client Portal Gateway and log in at https://localhost:5000 in a browser first. A paper account works and is the better choice. UNVERIFIED ADAPTER. Default: https://localhost:5000/v1/api
IBKR_TLS_INSECURE No Set to 1 to accept the Client Portal Gateway's self-signed certificate unverified, or point IBKR_CACERT at it instead. This is a decision about the connection carrying your orders, so it is never made for you.
SEC_USER_AGENT No A descriptive user agent with a real contact address (e.g., 'Your Name (you@example.com)') required for SEC EDGAR tools. Requests are refused locally without one.
BLS_API_KEY secret No Optional free BLS API key to raise limit from 25 to 500 queries/day and enable longer history.
FINMCP_BAR_CACHE No Set to '0' to disable the on-disk bar cache shared between the MCP server and dashboard. Default: 1
WEBULL_ACCOUNT_ID No Pin a specific Webull account. Required if your login has more than one account; otherwise the server refuses to guess.
WEBULL_MAX_RETRIES No Maximum number of retries for rate-limited Webull API calls before falling back. Default: 3
WEBULL_PAPER_APP_KEY No Optional paper mode app key for Webull's sandbox. Required only if using WEBULL_ENVIRONMENT=paper and you have a separate sandbox app.
WEBULL_RETRY_BACKOFF No Base seconds for exponential backoff on HTTP 429 responses from Webull. Default: 0.75
WEBULL_PAPER_APP_SECRET No Optional paper mode app secret for Webull's sandbox.
WEBULL_MIN_REQUEST_INTERVAL No Minimum seconds between Webull API calls to avoid rate limiting. Default: 0.25

Similar servers