Bloomberg MCP Gateway
Bloomberg MCP Gateway
Production-grade MCP-шлюз, который предоставляет агенту (Hermes), размещённому на Linux, управляемый
доступ к Bloomberg Desktop API (blpapi) на рабочей станции Windows с Bloomberg Terminal,
через частную сеть Tailscale.
Протокол: stateless MCP Streamable HTTP, редакция
2026-07-28Транспорт: HTTPS через Tailscale Serve ->
http://127.0.0.1:8765Bloomberg: только Desktop API, локальный
127.0.0.1:8194(BBComm никогда не раскрывается)Аутентификация: приватные статические bearer-токены, сопоставленные с субъектами, принадлежащими серверу
Безопасность: политики, бюджеты стоимости/квот, привязанные к субъектам дескрипторы, журнал аудита, защита от перегрузки по правам доступа, ограниченное хранилище результатов
CI: детерминированный фейковый бэкенд позволяет вести разработку и тестирование без Bloomberg Terminal
Полная спецификация дизайна — в SPEC.md.
Структура
src/bloomberg_mcp/ gateway implementation (native blpapi confined to blp/)
config/ default configuration and policy examples
scripts/ PowerShell deployment and operations scripts
tests/ unit, property and contract tests (fake backend)
docs/ architecture, deployment, security and operations docsRelated MCP server: Bloomberg MCP
Настройка разработки (Windows)
Требуется Python 3.12 и uv. Вся работа выполняется в
локальном для проекта виртуальном окружении (.venv); глобальные Python-окружения никогда
не затрагиваются.
# 1. Create the isolated virtual environment
uv venv
# 2. Install the gateway with dev tooling (blpapi is fetched from the
# Bloomberg package index automatically, see pyproject.toml)
uv sync --extra dev
# 3. Run the test suite against the deterministic fake backend
uv run pytest
# 4. Lint and type-check
uv run ruff check src tests
uv run mypyБез uv эквивалентный поток на чистом Python выглядит так:
python -m venv .venv
.venv\Scripts\python -m pip install -e ".[dev]" `
--extra-index-url https://blpapi.bloomberg.com/repository/releases/python/simple/Запуск шлюза
# Fake backend (no Bloomberg Terminal required)
uv run bloomberg-mcp --backend fake
# Native backend (Bloomberg Terminal must be running and logged on)
uv run bloomberg-mcp --config config/default.yaml --policy config/policy.example.yamlПо умолчанию шлюз привязывается к 127.0.0.1:8765 и отказывается запускаться дважды
(именованный мьютекс Windows). Tailscale Serve настраивается отдельно
(scripts/configure-tailscale.ps1) для завершения HTTPS-трафика только внутри tailnet.
Статус вех
Веха | Область | Статус |
0 | Проверка окружения + фиксация совместимости | См. |
1 | Базовый универсальный шлюз (фейковый + нативный адаптер) | Реализовано |
2 | Жизненный цикл производства (переподключение, квоты, хранилище, аудит) | Реализовано |
3 | Подписки | Реализовано |
4 | Курируемые инструменты и нормализаторы | Реализовано |
Пункты проверки на стороне Bloomberg (подключение к Terminal, entitlements,
ограничения операций) требуют реально выполненного входа в Terminal; см.
docs/deployment.md и scripts/environment-probe.ps1.
Заметки по безопасности
Никогда не раскрывайте порт 8765 или порт BBComm 8194 за пределами localhost.
Bearer-токены должны иметь энтропию не менее 256 бит; ротируйте с перекрытием.
Ограничения политик не заменяют договорные и entitlement-ограничения Bloomberg.
This server cannot be deployed
Maintenance
Related MCP Connectors
Multi-tenant FastMCP server for Charles Schwab brokerage data, monetized via DPYC Tollbooth
Production MCP server for US equity and options intelligence: real-time IV radar, Monte Carlo simulation, options pressure, strategy backtesting, AI prediction, pre-trade risk analysis, and automated stock research reports.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
- FensoryOAuthcom.fensory
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA centralized gateway platform for aggregating and managing multiple Model Context Protocol (MCP) servers through a single Electron-based interface. It provides enterprise-grade security features including policy-based access control, human-in-the-loop approval workflows, and comprehensive audit logging.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server that bridges AI assistants with Bloomberg Terminal data. It exposes 18 tools for reference, historical, technical analysis, screening, and calendar data through natural language.MIT
- AlicenseNot gradedqualityBmaintenanceProvides a local Windows control plane for PowerShell and AI CLIs, exposing MCP tools for safe terminal sessions, bounded provider calls, routing, committees, and run receipts.5 npmMIT
- AlicenseNot gradedqualityAmaintenanceProvides a fail-closed MCP bridge to QMT trading terminals, enabling observe-only, simulated, manual live, and limited automatic trading with hard risk controls, two-phase trade intents, and strict authorization checks.1MIT