Skip to main content
Glama

FIX-MCP

用于资本市场运营的 FIX 协议模拟平台。具备实时诊断、事件运行手册和用于交易基础设施管理的 MCP 工具集成的 AI 驱动 SRE 副驾驶。


快速入门

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

打开 **http://localhost:3000**。

登录: henry / henry (管理员) · admin / admin · 或点击 演示模式 (Demo Mode)

服务

URL

服务内容

任务控制 (Mission Control)

http://localhost:3000

带有场景生命周期的流畅交易操作仪表板

REST API

http://localhost:8000

MCP 工具调度、系统状态

MCP stdio

docker compose run

通过 MCP 协议供 AI 代理使用

无需在主机上安装 Node 或 Python — 所有内容均在容器中运行。


任务控制 (Mission Control)

三个选项卡:

选项卡

用途

任务控制

实时拓扑、FIX 心跳面板、场景选择器 + 交互式终端

遥测 (Telemetry)

实时指标 — 迷你图、订单簿、外汇汇率

场景库 (Scenario Library)

按严重程度/难度浏览所有场景、检查运行手册、成功标准

核心布局

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

场景

13 个培训场景,涵盖完整的交易日(美东时间 02:00–16:32)。每个场景包括:

  • 运行手册 (Runbook) — 包含精确 MCP 工具调用的 4-6 个诊断/修复步骤

  • 成功标准 — 定义“已解决”的明确条件

  • 提示 — 关键问题、标志含义、常见错误

  • 严重程度与难度 — 从初级到高级

场景

严重程度

时间

预计时长

morning_triage

严重

06:15

25分钟

bats_startup_0200

中等

02:05

15分钟

predawn_adrs_0430

中等

04:35

15分钟

preopen_auction_0900

09:02

20分钟

open_volatility_0930

09:35

20分钟

venue_degradation_1030

严重

10:32

30分钟

twap_slippage_1000

10:05

20分钟

ssr_and_split_1130

严重

11:34

35分钟

vwap_vol_spike_1130

严重

11:35

25分钟

iex_recovery_1400

中等

14:03

15分钟

is_dark_failure_1415

14:15

25分钟

eod_moc_1530

15:31

20分钟

afterhours_dark_1630

中等

16:32

15分钟


MCP 工具 (22)

类别

工具

诊断

run_premarket_check, check_fix_sessions, check_ticker, query_orders, validate_orders, dump_session_state

会话恢复

fix_session_issue, session_heartbeat, reset_sequence

订单操作

send_order, cancel_replace, release_stuck_orders

算法套件

send_algo_order, check_algo_status, modify_algo, cancel_algo

参考/场所

update_ticker, load_ticker, update_venue_status, list_scenarios


AI 副驾驶

SRE 副驾驶具备 FIX 感知能力,包括:

  • 用于会话诊断、订单分流和算法管理的完整决策树

  • 场景特定的上下文注入(情况、关键问题、标志含义、常见错误、成功标准)

  • 针对不可逆操作的工具调用审批门控

  • 简洁、可操作的输出 — 带有 FIX 消息类型的量化影响


架构

┌──────────────────────────────────────────────┐
│              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)       │
└──────────────────────────────────────────────┘

技术栈

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

  • 前端: Next.js 16, React 19, React Flow, Zustand 5, Tailwind CSS v4, lucide 图标

  • 基础设施: PostgreSQL 16, Redis 7, Docker Compose

  • 协议: FIX 4.2 / 4.4 模拟

  • AI: OpenRouter API(任何兼容模型;默认为 qwen/qwen3.6-plus


MCP 集成(外部客户端)

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

开发

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

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

Next.js 路由处理程序读取 BACKEND_URL — 本地开发默认为 http://127.0.0.1:8000


由 Henry Urlo 构建。

Install Server
F
license - not found
B
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.

  • MCP server for Gainium — manage trading bots, deals, and balances via AI assistants

  • Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/henryurlo/fix-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server