MCP Hub
Back to servers

FIX MCP Server

A production-grade MCP server for FIX protocol trading operations that enables order management, session repair, and algorithmic execution. It provides specialized tools for monitoring session health, managing ticker reference data, and executing complex trading scenarios.

glama
Updated
Mar 30, 2026

FIX MCP Server

A production-grade MCP server for FIX protocol trading operations. Exposes 15 tools, 4 resources, and 6 role-specific prompts over stdio. Backed by a full PostgreSQL + Redis stack for production deployment.

What it includes

  • 15 MCP tools — order management, FIX session repair, ticker operations, algo execution, scenario loading
  • 13 trading scenarios — 24-hour coverage from 02:05 ET pre-dawn through 16:32 ET after-hours
  • 6 role prompts — specialized system prompts for trading-ops, session-engineer, order-desk, ticker-ops, risk-compliance, algo-trader
  • Algorithmic order engine — TWAP, VWAP, POV, IS, DARK_AGG, ICEBERG with schedule tracking and execution quality metrics
  • Production stack — PostgreSQL 16 + Redis 7 via Docker Compose, async FIX TCP connector

Quick Start (local)

# Install into local venv
XDG_CACHE_HOME=/tmp ./.venv/bin/python -m pip install -e . --no-build-isolation

# Start the MCP server (stdio)
SCENARIO=morning_triage ./.venv/bin/fix-mcp-server

Quick Start (Docker)

docker compose up -d
# MCP stdio:   docker compose run --rm mcp-server
# REST API:    http://localhost:8000
# Dashboard:   http://localhost:8787

MCP Client Configuration

{
  "mcpServers": {
    "fix-mcp": {
      "command": "/home/urbano-claw/FIX-MCP/fix-mcp-server/.venv/bin/fix-mcp-server",
      "args": [],
      "cwd": "/home/urbano-claw/FIX-MCP/fix-mcp-server"
    }
  }
}

Environment Variables

VariableDefaultDescription
SCENARIOmorning_triageScenario to load on startup
FIX_MCP_CONFIG_DIRauto-discoveredConfig directory override
DATABASE_URLPostgreSQL connection string (production)
REDIS_URLRedis connection string (production)
LOG_LEVELINFOLogging level

Tools (15)

ToolCategoryDescription
query_ordersOrdersQuery OMS with filters; returns notional and SLA countdowns
check_fix_sessionsSessionsSession health, seq numbers, heartbeat age, latency
send_orderOrdersNewOrderSingle via FIX 35=D with auto-routing
cancel_replaceOrdersCancel (35=F) or replace (35=G) an existing order
check_tickerReferenceSymbol/CUSIP lookup with corporate actions and open order count
update_tickerReferenceRename symbol and bulk-update all open orders
load_tickerReferenceLoad new symbol and release pending IPO orders
fix_session_issueSessionsResend request, sequence reset, or reconnect
validate_ordersOrdersPre-flight validation against symbol, venue, and compliance rules
run_premarket_checkOpsFull pre-market health check across all systems
send_algo_orderAlgosSubmit TWAP/VWAP/POV/IS/DARK_AGG/ICEBERG parent order
check_algo_statusAlgosSchedule deviation, IS shortfall, execution quality
modify_algoAlgosPause, resume, or update POV participation rate
cancel_algoAlgosCancel algo and send cancel for all child slices
list_scenariosScenariosList or load trading scenarios

See docs/tools.md for full parameter schemas.

Scenarios (13)

NameTimeKey Problems
morning_triage06:15 ETARCA down, BATS seq gap, ticker rename ACME→ACMX
bats_startup_020002:05 ETBATS SequenceReset with unexpected NewSeqNo
predawn_adrs_043004:35 ETShell ADR rebrand RDSA→SHEL, ARCA latency 220ms
preopen_auction_090009:02 ETMOO imbalance, IEX feed stale
open_volatility_093009:35 ETGME LULD halt, BATS packet loss
venue_degradation_103010:32 ETNYSE latency 180ms, Mahwah route flap
ssr_and_split_113011:34 ETRIDE SSR trigger, AAPL 4:1 split in 26 min
iex_recovery_140014:03 ETIEX recovered, D-Limit rerouting
eod_moc_153015:31 ETMOC cutoff, GTC preservation
afterhours_dark_163016:32 ETDark pool offline, Liquidnet SessionStatus=8
twap_slippage_100010:05 ETTWAP behind schedule, GME halted mid-algo
vwap_vol_spike_113011:35 ETVWAP over-participation, BATS latency spike
is_dark_failure_141514:15 ETIS high shortfall, dark aggregator no fills

See docs/scenarios.md for full scenario details.

Role Prompts (6)

Prompt NameScope
trading-opsGeneral — all domains, primary triage
session-engineerFIX transport layer only
order-deskRouting, execution, SLA management
ticker-opsReference data, corporate actions, splits
risk-complianceSSR, LULD, large order review, EOD
algo-traderTWAP, VWAP, POV, IS, dark aggregator

See docs/prompts.md for full prompt descriptions and tool assignments.

Tests

PYTHONPATH=src ./.venv/bin/python -m pytest

16 tests covering tools, scenarios, algo orders, and session repair.

CLI Smoke Test

cd /home/urbano-claw/FIX-MCP/fix-mcp-server && PYTHONPATH=src ./.venv/bin/python -c "import asyncio; from fix_mcp import server; print(asyncio.run(server.call_tool('run_premarket_check', {}))[0].text)"

Dashboard

PYTHONPATH=src ./.venv/bin/fix-mcp-dashboard
# Open: http://127.0.0.1:8787

The dashboard is self-contained — serves both the HTML and the API from one process. Features:

  • Per-scenario guided workflow steps (all 13 scenarios have specific steps)
  • Session health cards with latency and sequence gap indicators
  • Tabbed view: Output / Sessions / Orders / Algos
  • Inline algo Pause and Cancel buttons
  • Send Order and Session Repair forms in sidebar
  • Scenario dropdown reloads runtime and refreshes workflow steps

REST API

PYTHONPATH=src ./.venv/bin/fix-mcp-api
# Endpoints: http://localhost:8000

Standalone REST API for external integrations (OMS hooks, Claude.ai, monitoring):

  • GET /health — liveness probe
  • GET /api/status — full status: scenario, sessions, orders, algos
  • GET /api/scenarios — list all 13 scenarios with context strings
  • POST /api/tool — call any MCP tool: {"tool":"...", "arguments":{...}}
  • POST /api/reset — load a scenario: {"scenario":"morning_triage"}

Documentation

  • Architecture — component diagram, data flow, engine layer
  • Tools — all 15 tools with parameter schemas and examples
  • Scenarios — all 13 scenarios with time, problems, and flags
  • Prompts — all 6 role prompts with scope and escalation paths
  • Algo Suite — algo types, execution flags, quality thresholds
  • Production — Docker deploy, DB schema, FIX gateway, go-live checklist, next building blocks

Reviews

No reviews yet

Sign in to write a review