Skip to main content
Glama

FIX-MCP

FIX protocol simulation platform for capital markets operations. AI-powered SRE copilot with real-time diagnostics, incident runbooks, and MCP tool integration for trading infrastructure management.


Quick Start

git clone https://github.com/henryurlo/fix-mcp-server.git
cd fix-mcp-server
docker compose up -d

Open http://localhost:3000.

Login: henry / henry (admin) · admin / admin · or click Demo Mode.

Service

URL

What it serves

Mission Control

http://localhost:3000

Sleek trading ops dashboard with scenario lifecycle

REST API

http://localhost:8000

MCP tool dispatch, system status

MCP stdio

docker compose run

For AI agents via MCP protocol

No Node or Python on your host — everything runs in containers.


Mission Control

Three tabs:

Tab

Purpose

Mission Control

Live topology, FIX heartbeat panel, scenario picker + interactive terminal

Telemetry

Real-time metrics — sparklines, order book, FX rates

Scenario Library

Browse all scenarios by severity/difficulty, inspect runbooks, success criteria

Core Layout

┌──────────────────┬─────────────────────────────────────┐
│ Topology Graph   │ FIX Terminal                        │
│ (ecosystem)      │ fix-cli> show sessions              │
│                  │ fix-cli> query orders               │
├──────────────────┼─────────────────────────────────────┤
│ Runbook Panel    │ MCP Audit Log                       │
│ (live steps)     │ [+ SRE Copilot slides in →]         │
└──────────────────┴─────────────────────────────────────┘

Scenarios

13 training scenarios covering a full trading day (02:00–16:32 ET). Each includes:

  • Runbook — 4-6 diagnostic/fix steps with exact MCP tool calls

  • Success criteria — explicit conditions that define "resolved"

  • Hints — key problems, flag meanings, common mistakes

  • Severity & difficulty — from beginner to advanced

Scenario

Severity

Time

Est

morning_triage

Critical

06:15

25m

bats_startup_0200

Medium

02:05

15m

predawn_adrs_0430

Medium

04:35

15m

preopen_auction_0900

High

09:02

20m

open_volatility_0930

High

09:35

20m

venue_degradation_1030

Critical

10:32

30m

twap_slippage_1000

High

10:05

20m

ssr_and_split_1130

Critical

11:34

35m

vwap_vol_spike_1130

Critical

11:35

25m

iex_recovery_1400

Medium

14:03

15m

is_dark_failure_1415

High

14:15

25m

eod_moc_1530

High

15:31

20m

afterhours_dark_1630

Medium

16:32

15m


MCP Tools (22)

Category

Tools

Diagnostic

run_premarket_check, check_fix_sessions, check_ticker, query_orders, validate_orders, dump_session_state

Session Recovery

fix_session_issue, session_heartbeat, reset_sequence

Order Actions

send_order, cancel_replace, release_stuck_orders

Algo Suite

send_algo_order, check_algo_status, modify_algo, cancel_algo

Reference/Venue

update_ticker, load_ticker, update_venue_status, list_scenarios


AI Copilot

The SRE Copilot is FIX-aware with:

  • Full decision trees for session diagnostics, order triage, and algo management

  • Scenario-specific context injection (situation, key problems, flag meanings, common mistakes, success criteria)

  • Tool call approval gates for irreversible operations

  • Concise, actionable output — quantitative impact with FIX message types


Architecture

┌──────────────────────────────────────────────┐
│              Mission Control (Next.js)       │
│          http://localhost:3000               │
└──────────────────────┬───────────────────────┘
                       │ REST proxy
┌──────────────────────▼───────────────────────┐
│              REST API                        │
│         http://localhost:8000                │
│  /api/status /api/orders /api/                │
│  /api/scenarios /api/scenario/{name}         │
│  /api/tool (POST) /api/reset (POST)          │
└──────────────────────┬───────────────────────┘
                       │
┌──────────────────────▼───────────────────────┐
│        FIX Engine (Python)                   │
│  OMS · FIXSessionManager                     │
│  ReferenceDataStore · AlgoEngine             │
└──────────────────────┬───────────────────────┘
                       │
┌──────────────────────▼───────────────────────┐
│  PostgreSQL (orders) · Redis (pub/sub)       │
└──────────────────────────────────────────────┘

Tech Stack

  • Backend: Python 3.11, MCP SDK, asyncio, stdlib http.server

  • Frontend: Next.js 16, React 19, React Flow, Zustand 5, Tailwind CSS v4, lucide icons

  • Infra: PostgreSQL 16, Redis 7, Docker Compose

  • Protocol: FIX 4.2 / 4.4 simulation

  • AI: OpenRouter API (any compatible model; default qwen/qwen3.6-plus)


MCP Integration (external clients)

{
  "mcpServers": {
    "fix-mcp": {
      "command": "npx",
      "args": ["-y", "@anthropic-ai/mcp-remote@latest"],
      "env": { "MCP_URL": "http://localhost:8000/mcp" }
    }
  }
}

Development

# Backend (Python)
pip install -e .
python -m fix_mcp.api           # REST on :8000

# Frontend (Node)
npm install
npm run dev                     # Next.js on :3000

The Next.js route handler reads BACKEND_URL — defaults to http://127.0.0.1:8000 for local dev.


Built by Henry Urlo.

Available Tools

22 tools
cancel_algoA

Cancel an active algo and send OrderCancelRequest for all open child slices.

Inputs: algo_id (required), reason.

cancel_replaceC

Cancel or replace an existing order via FIX 35=F or 35=G.

Inputs: order_id (required), action (required), new_venue, new_quantity, +2 more.

check_algo_statusB

Check status of algo orders: schedule deviation, execution quality, IS shortfall, over-participation, and child order health.

Inputs: algo_id, symbol, status.

check_fix_sessionsA

Check FIX session health: status, sequence numbers, heartbeat age, latency.

Inputs: venue.

check_tickerA

Look up a symbol or CUSIP. Returns full record, pending corporate actions, and affected open order count.

Inputs: symbol, cusip.

dump_session_stateB

Return full session diagnostics for a venue including sequence numbers, latency, heartbeat age, and associated orders.

Inputs: venue (required).

fix_session_issueC

Resolve a FIX session issue: resend_request (gap recovery), reset_sequence, or reconnect.

Inputs: venue (required), action (required).

grep_logsA

Search log files for a pattern and return matching lines.

Inputs: pattern (required), file (required).

list_scenariosB

List all available trading scenarios or load one into the runtime. Use action='list' to see all scenarios with their context summaries. Use action='load' with scenario_name to switch the active scenario.

Inputs: action, scenario_name.

load_tickerC

Load a new symbol into the reference store and release orders pending that symbol.

Inputs: symbol (required), cusip (required), name (required), listing_exchange (required), +2 more.

modify_algoA

Modify an active algo: pause, resume, or update POV participation rate.

Inputs: algo_id (required), action (required), new_pov_rate.

query_ordersA

Query OMS orders with optional filters. Returns order details including notional value and SLA countdowns for institutional orders.

Inputs: client_name, symbol, status, venue, +1 more.

release_stuck_ordersB

Release all stuck orders across all venues by removing venue_down flags.

Inputs: no named parameters.

reset_sequenceB

Reset FIX sequence numbers for a venue session.

Inputs: venue (required).

run_premarket_checkB

Flagship pre-market health check: sessions, corp actions, stuck orders, SLA deadlines, validation summary.

Inputs: no named parameters.

send_algo_orderA

Submit a new algorithmic order (TWAP, VWAP, POV, IS, DARK_AGG, ICEBERG). Creates a parent algo order with execution schedule and initial child slices.

Inputs: symbol (required), side (required), quantity (required), algo_type (required), +6 more.

send_orderB

Send a new order via FIX NewOrderSingle. Validates symbol, checks corp actions, auto-routes if no venue supplied.

Inputs: symbol (required), side (required), quantity (required), order_type (required), +3 more.

session_heartbeatC

Send a heartbeat and return the heartbeat status for a specific venue session.

Inputs: venue (required).

tail_logsB

Return the last N lines of a log file.

Inputs: file (required), lines.

update_tickerA

Rename a symbol and bulk-update all open orders. Flags stop orders for manual review.

Inputs: old_symbol (required), new_symbol (required), reason (required).

update_venue_statusA

Change venue status (active/degraded/down). Use fix_session_issue to recover a degraded/down venue.

Inputs: venue (required), status (required).

validate_ordersC

Validate a set of orders: check symbol validity, venue status, duplicate ClOrdIDs, and client status.

Inputs: order_ids, symbol, status.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between check_fix_sessions and dump_session_state, both dealing with session diagnostics, which could cause confusion. Additionally, fix_session_issue and reset_sequence have overlapping functionality for session recovery, though their descriptions help differentiate them.

    Naming Consistency5/5

    Tool names follow a consistent snake_case pattern with clear verb_noun structures throughout, such as cancel_algo, check_ticker, and send_order. There are no deviations in naming conventions, making the set predictable and readable.

    Tool Count3/5

    With 22 tools, the count is borderline high for a trading/FIX server, potentially feeling heavy and overwhelming. While the domain is complex, some tools like grep_logs and tail_logs might be considered utility functions that could be consolidated, slightly exceeding an ideal scope.

    Completeness5/5

    The tool set provides comprehensive coverage for FIX trading operations, including order management (send, cancel, modify, query), session health (check, fix, reset), algo trading (send, modify, cancel, check), and administrative tasks (premarket checks, ticker management, order validation). No obvious gaps are present, supporting full lifecycle workflows.

    Related MCP Connectors