Bloomberg MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Bloomberg MCP bridges the Bloomberg Terminal with AI assistants via the Model Context Protocol. It exposes 13 tools covering real-time data, historical analysis, screening, and calendars — all accessible through natural language.
You: "What are the top semiconductor stocks by relative volume today?"
Claude: runs bloomberg_dynamic_screen with SEMI_LEADERS universe, RVOL fields, ranked by rvol
→ Returns formatted table with NVDA, AMD, TSM... ranked by volume activityArchitecture
graph TB
subgraph Clients
CC[Claude Code]
WC[Web Client]
CA[Custom App]
end
subgraph "Bloomberg MCP Server"
direction TB
MCP["FastMCP Server<br/><i>13 tools exposed</i>"]
subgraph Tools["Tool Layer"]
direction LR
REF[Reference Data]
HIST[Historical Data]
INTRA[Intraday Bars/Ticks]
SEARCH[Search & Discovery]
SCREEN[Screening]
CAL[Calendars]
end
subgraph Core["Core Layer"]
direction LR
SESSION["BloombergSession<br/><i>Singleton</i>"]
REQ[Request Builder]
RESP[Response Parser]
end
end
BBG["Bloomberg Terminal<br/><i>blpapi on port 8194</i>"]
CC -- stdio --> MCP
WC -- HTTP/SSE --> MCP
CA -- HTTP/SSE --> MCP
MCP --> Tools
Tools --> Core
SESSION <--> BBG
REQ --> SESSION
SESSION --> RESP
style MCP fill:#1a73e8,stroke:#1557b0,color:#fff
style BBG fill:#ff6f00,stroke:#e65100,color:#fff
style SESSION fill:#2e7d32,stroke:#1b5e20,color:#fffRelated MCP server: Bloomberg MCP
Tools Overview
graph LR
subgraph "Market Data"
T1["bloomberg_get_reference_data<br/><i>Current snapshots</i>"]
T2["bloomberg_get_historical_data<br/><i>Time series</i>"]
T3["bloomberg_get_intraday_bars<br/><i>OHLCV candles</i>"]
T4["bloomberg_get_intraday_ticks<br/><i>Raw ticks</i>"]
end
subgraph "Discovery"
T5["bloomberg_search_securities<br/><i>Find by name/ticker</i>"]
T6["bloomberg_search_fields<br/><i>Field mnemonics</i>"]
T7["bloomberg_get_field_info<br/><i>Field metadata</i>"]
end
subgraph "Screening"
T8["bloomberg_run_screen<br/><i>Saved EQS screens</i>"]
T9["bloomberg_get_universe<br/><i>Index constituents</i>"]
T10["bloomberg_dynamic_screen<br/><i>Custom filter + rank</i>"]
end
subgraph "Calendars"
T11["bloomberg_get_economic_calendar<br/><i>Fed, BoJ, ECB...</i>"]
T12["bloomberg_get_earnings_calendar<br/><i>Earnings dates</i>"]
end
style T10 fill:#1a73e8,stroke:#1557b0,color:#fff
style T11 fill:#7b1fa2,stroke:#6a1b9a,color:#fff
style T12 fill:#7b1fa2,stroke:#6a1b9a,color:#fffTool Reference
Tool | Description | Key Parameters |
| Current field values for any security |
|
| Time series with configurable periodicity |
|
| OHLCV candles (1/5/15/30/60 min) |
|
| Raw tick-level trade/quote data |
|
| Find securities by name or partial ticker |
|
| Discover Bloomberg field mnemonics |
|
| Detailed field metadata and documentation |
|
| Execute saved Bloomberg EQS screens |
|
| Index/screen constituents with optional fields |
|
| Custom filtering, ranking, and field selection |
|
| Upcoming macro releases by region/importance |
|
| Earnings announcements by universe/timing |
|
All tools support response_format: "markdown" (default) or "json".
Installation
Prerequisites
Python 3.10+
Bloomberg Terminal running and logged in on the same machine — the server connects to the Terminal's local API on
localhost:8194. No separate API keys or tokens are needed; the Terminal session provides authentication.Bloomberg C++ SDK (
blpapi_cpp)Bloomberg Python SDK (
blpapi)
Setup
# 1. Set Bloomberg C++ SDK path
export BLPAPI_ROOT=/path/to/blpapi_cpp_3.x.x.x
# 2. Install blpapi Python SDK
pip install blpapi
# 3. Install bloomberg-mcp
pip install -e .Configure Claude Code
Add to your Claude Code MCP settings (.claude.json or via Claude Code settings UI):
{
"mcpServers": {
"bloomberg-mcp": {
"command": "python",
"args": ["-m", "bloomberg_mcp.server"],
"cwd": "/path/to/bloomberg-mcp",
"env": {
"BLOOMBERG_HOST": "localhost",
"BLOOMBERG_PORT": "8194"
}
}
}
}Restart Claude Code to load the server.
Quick Start
As a Python Library
from bloomberg_mcp.tools import get_reference_data, get_historical_data
# Current prices and fundamentals
data = get_reference_data(
securities=["AAPL US Equity", "MSFT US Equity"],
fields=["PX_LAST", "PE_RATIO", "DIVIDEND_YIELD"]
)
for sec in data:
print(f"{sec.security}: ${sec.fields.get('PX_LAST')}")
# Historical time series
hist = get_historical_data(
securities=["SPY US Equity"],
fields=["PX_LAST", "VOLUME"],
start_date="20240101",
end_date="20241231",
periodicity="DAILY"
)As an MCP Server
# stdio (default — for Claude Code)
python -m bloomberg_mcp.server
# HTTP transport (for web clients)
python -m bloomberg_mcp.server --http --port=8080
# SSE transport (for streaming clients)
python -m bloomberg_mcp.server --sse --port=8080
# Windows convenience scripts
run_server.bat # stdio
run_server.bat --http # HTTPDynamic Screening
The most powerful tool. Build custom screens with pre-validated field sets, filters, and ranking — no need to know Bloomberg field mnemonics.
How It Works
flowchart LR
A["Universe<br/><i>index, screen,<br/>or ticker list</i>"] --> B["Field Expansion<br/><i>FieldSet shortcuts<br/>→ Bloomberg fields</i>"]
B --> C["Bloomberg API<br/><i>ReferenceDataRequest<br/>+ CustomEqsRequest</i>"]
C --> D["Filter<br/><i>gt, lt, between,<br/>in, eq, ...</i>"]
D --> E["Rank & Slice<br/><i>rank_by + top_n</i>"]
E --> F["Response<br/><i>Markdown table<br/>or JSON</i>"]
style A fill:#e8f5e9,stroke:#2e7d32
style C fill:#fff3e0,stroke:#ff6f00
style F fill:#e3f2fd,stroke:#1a73e8FieldSet Shortcuts
Instead of remembering Bloomberg field mnemonics, use shorthand names:
FieldSet | Expands To | Fields |
|
| 5 |
|
| 4 |
| + | 7 |
|
| 3+1 |
|
| 4 |
|
| 6 |
|
| 5 |
|
| 3 |
|
| 2 |
|
| 2 |
| All of the above combined | 30+ |
Filter Operators
Operator | Description | Example |
| Greater than (or equal) |
|
| Less than (or equal) |
|
| Equals / not equals |
|
| Range (inclusive) |
|
| Value in list |
|
Pre-Built Universes
Universe | Description | Count |
| AAPL, MSFT, GOOGL, AMZN, META, NVDA, TSLA | 7 |
| NVDA, AMD, INTC, TSM, ASML, AVGO, QCOM... | 14 |
| TM, HMC, SONY, MUFG, SMFG, NMR, NTDOY | 7 |
| JPM, BAC, GS, MS, C, WFC | 6 |
| WMT, COST, TGT, HD, NKE, SBUX, MCD | 7 |
| CAT, DE, BA, FDX, UPS, GE, HON | 7 |
| Combined universe for daily analysis | 40+ |
You can also use Bloomberg index tickers (e.g., index:SPX Index) or saved EQS screen names (e.g., screen:My_Custom_Screen).
Example: Find Oversold High-Volume Stocks
{
"universe": "index:SPX Index",
"fields": ["PRICE", "RVOL", "TECHNICAL", "SECTOR"],
"filters": [
{"field": "RSI_14D", "op": "lt", "value": 30},
{"field": "rvol", "op": "gt", "value": 2.0}
],
"rank_by": "rvol",
"rank_descending": true,
"top_n": 20
}Project Structure
graph TB
subgraph "src/bloomberg_mcp/"
INIT["__init__.py<br/><i>Public exports</i>"]
SERVER["server.py<br/><i>FastMCP server<br/>13 @mcp.tool handlers<br/>Pydantic input models</i>"]
subgraph core["core/"]
SESSION["session.py<br/><i>BloombergSession singleton</i>"]
REQUESTS["requests.py<br/><i>Build blpapi requests</i>"]
RESPONSES["responses.py<br/><i>Parse → dataclasses</i>"]
end
subgraph tools["tools/"]
direction TB
REF["reference.py"]
HIST_T["historical.py"]
INTRA_T["intraday.py"]
SEARCH_T["search.py"]
subgraph ds["dynamic_screening/"]
MODELS["models.py<br/><i>FieldSets, SecurityRecord</i>"]
SCREEN_T["screen.py<br/><i>DynamicScreen builder</i>"]
FILTERS["filters.py<br/><i>Filter DSL</i>"]
CEQS["custom_eqs.py<br/><i>CustomEqsRequest</i>"]
end
subgraph mn["morning_note/"]
CONFIG["config.py<br/><i>Universes</i>"]
USS["us_session.py"]
JPN["japan_overnight.py"]
STORE["storage.py<br/><i>SQLite archive</i>"]
end
subgraph cal["calendars"]
ECON["economic_calendar/"]
EARN["earnings_calendar/"]
end
end
end
SERVER --> core
SERVER --> tools
core --> SESSION
style SERVER fill:#1a73e8,stroke:#1557b0,color:#fff
style SESSION fill:#2e7d32,stroke:#1b5e20,color:#fff
style ds fill:#fff3e0,stroke:#ff6f00
style mn fill:#f3e5f5,stroke:#7b1fa2bloomberg-mcp/
├── src/bloomberg_mcp/
│ ├── __init__.py # Public API exports
│ ├── server.py # FastMCP server (13 tools)
│ ├── core/
│ │ ├── session.py # BloombergSession singleton
│ │ ├── requests.py # blpapi request builders
│ │ └── responses.py # Response parsing → dataclasses
│ └── tools/
│ ├── reference.py # get_reference_data()
│ ├── historical.py # get_historical_data()
│ ├── intraday.py # get_intraday_bars/ticks()
│ ├── search.py # search_securities/fields()
│ ├── screening.py # run_screen() (saved EQS)
│ ├── dynamic_screening/ # Custom screening DSL
│ ├── morning_note/ # Japan morning note toolkit
│ ├── earnings_calendar/ # Earnings announcements
│ └── economic_calendar/ # Macro event calendar
├── tests/
│ ├── test_session.py # Unit tests (mocked blpapi)
│ ├── test_requests.py
│ ├── test_tools.py
│ └── integration/ # Requires live Bloomberg
├── examples/
│ ├── basic_usage.py # Getting started
│ ├── explore_patterns.py # Advanced screening patterns
│ └── verify_beqs_endpoint.py # BEQS API verification
├── Dockerfile
├── docker-compose.yml
├── run_server.bat # Windows launcher
├── run_server.ps1 # PowerShell launcher
└── pyproject.tomlData Flow
sequenceDiagram
participant Client as AI Assistant
participant MCP as MCP Server
participant Val as Pydantic Validation
participant Expand as Field Expander
participant Session as BloombergSession
participant BBG as Bloomberg Terminal
Client->>MCP: Tool call (JSON)
MCP->>Val: Validate input model
Val-->>MCP: Validated params
alt Dynamic Screen
MCP->>Expand: Expand FieldSet shortcuts
Expand-->>MCP: Resolved field list
end
MCP->>Session: Build & send request
Session->>BBG: blpapi Request
BBG-->>Session: blpapi Response
Session-->>MCP: Parsed dataclasses
alt Markdown format
MCP-->>Client: Formatted table
else JSON format
MCP-->>Client: Structured JSON
endDocker Deployment
For running the MCP server in a container (connects to Bloomberg Terminal on host):
graph LR
subgraph Docker
MCP["bloomberg-mcp<br/><i>:8080</i>"]
end
subgraph Host
BBG["Bloomberg Terminal<br/><i>:8194</i>"]
end
Client["AI Client<br/><i>:8765</i>"] -- "HTTP/SSE" --> MCP
MCP -- "host.docker.internal:8194" --> BBG
style MCP fill:#1a73e8,stroke:#1557b0,color:#fff
style BBG fill:#ff6f00,stroke:#e65100,color:#fff# Build and start
docker-compose up -d
# View logs
docker-compose logs -f bloomberg-mcp
# Stop
docker-compose downThe container exposes port 8765 (mapped to internal 8080) and connects to Bloomberg Terminal on the host via host.docker.internal:8194.
Common Bloomberg Fields
Field | Description |
| Last price |
| Bid / Ask |
| OHLC |
| Trading volume |
| 1-day change % |
| YTD change % |
Field | Description |
| Price/Earnings (trailing) |
| Forward P/E (consensus) |
| Price/Book |
| Price/Sales |
| EV/EBITDA |
| Dividend yield % |
| Market capitalization |
Field | Description |
| 14-day RSI |
| Realized volatility % |
| Beta |
| Moving averages |
Field | Description |
| ROE % |
| ROA % |
| ROIC % |
| Margin metrics |
Field | Description |
| Consensus rating (1=Strong Buy, 5=Sell) |
| Consensus target price |
| Consensus EPS estimate |
Security Identifier Formats
AAPL US Equity # US stock
VOD LN Equity # UK stock (London)
7203 JP Equity # Japan stock (numeric ticker)
SPX Index # Index
EUR Curncy # Currency
CL1 Comdty # Commodity future
SPY US Equity # ETFEnvironment Variables
Variable | Default | Description |
|
| Bloomberg API host |
|
| Bloomberg API port |
|
| Server bind address (HTTP/SSE only) |
|
| Server port (HTTP/SSE only) |
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
# Install dev dependencies
pip install -e ".[dev]"
# Run tests (unit tests — no Bloomberg required)
pytest
# Run integration tests (requires Bloomberg Terminal)
pytest tests/integration/
# Format and lint
black src/ tests/
ruff check src/ tests/
mypy src/Requirements
Python 3.10+
Bloomberg Terminal or B-PIPE connection with API enabled
Bloomberg C++ SDK (
blpapi_cpp)Bloomberg Python SDK (
blpapi)
License
MIT - see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Provide AI assistants with real-time access to official SEC EDGAR filings and financial data. Enab…
Macroeconomic and market data for AI agents: rates, credit, volatility, calendars and screeners.
Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.
Licensed, cited financial data for AI agents: news, filings, transcripts, research and tearsheets.
Related MCP Servers
- 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 gradedqualityDmaintenanceGives AI assistants direct access to Bloomberg Terminal data via 18 tools covering reference data, bulk data, historical analysis, technical analysis, estimates, ownership, supply chain, screening, BQL queries, and calendars.27MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and analyze financial data, stock information, company fundamentals, market insights, and 250+ tools across asset classes. Supports flexible hosted or self-hosted deployment with dynamic toolset management.360 npmApache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and analyze financial data, stock information, company fundamentals, and market insights through 250+ tools spanning stocks, ETFs, crypto, forex, commodities, economics, and more.360 npmApache 2.0