xbbg MCP
Lets your AI agent pull Bloomberg market data through your own Bloomberg access using xbbg.
706 stars on GitHubby underloamLicense Apache-2.0Updated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Download the .mcpb file and open it with Claude Desktop.
Download the .mcpb file βWhat to fill in
| Name | What it is | Required |
|---|---|---|
XBBG_MCP_LIB_DIR | Optional directory containing Bloomberg runtime libraries. Leave unset to use BLPAPI_ROOT, an authorized vendored SDK layout, or Python blpapi fallback. | No |
XBBG_MCP_HOST | Bloomberg API host. Defaults to localhost. | No |
XBBG_MCP_PORT | Bloomberg API port. Defaults to 8194. | No |
XBBG_MCP_AUTH_METHOD | Bloomberg auth method: none, user, app, userapp, dir, manual, or token. | No |
XBBG_MCP_MAX_ROWS | Maximum rows returned to the MCP client per response. Defaults to 500. | No |
XBBG_MCP_MAX_CELLS | Maximum data cells across returned rows and columns. Defaults to 50000. | No |
XBBG_MCP_MAX_METADATA_PROPERTIES | Maximum metadata properties retained per response. Defaults to 50000. | No |
XBBG_MCP_MAX_METADATA_BYTES | Maximum metadata bytes parsed or returned per response. Defaults to 65536. | No |
XBBG_MCP_MAX_STRING_CHARS | Maximum characters per string value returned to the MCP client. Defaults to 2048. | No |
XBBG_MCP_MAX_STRING_BYTES | Maximum UTF-8 bytes per string value, including a truncation marker. Defaults to 8192; minimum 3. | No |
XBBG_MCP_MAX_RESULT_BYTES | Maximum compact-JSON bytes in the structured result, including diagnostics. Defaults to 1048576; minimum 2048. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Get the latest price for AAPL and MSFT.
Show the SPX Index daily closes for 2024.
What it is
xbbg is an independent Bloomberg client with helpers for reference data, history, intraday bars, ticks, BQL and streaming. Its MCP server offers local Bloomberg tools for xbbg users. You must already have authorized Bloomberg access, as xbbg does not provide any.
What it can do
- Reference data (BDP) and bulk data (BDS)
- Historical data (BDH) and intraday bars
- BQL and equity screening
- Field lookup
- Index members and futures helpers
- Streaming subscriptions
When to use
- βΊWhen you already use a Bloomberg Terminal and want an agent to fetch data.
- βΊWhen you want to pull history for several securities into your analysis.
- βΊWhen you want to run BQL queries by asking in plain words.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
market-dataHelps your agent pull price history and candlestick data for a stock, and show a price chart in a conversation with care for freshness.stocksLets your agent check stock and crypto prices, search for tickers, pull price history, and compare companies, using Yahoo Finance data.equity-researchHelps your agent build an equity research snapshot for a stock, combining analyst estimates, financials, price history, and macro context into a thesis.Frequently asked questions
Does it include Bloomberg data?
No. You must have your own Bloomberg access and entitlements.
Is it affiliated with Bloomberg?
No. It is an independent open-source project, not endorsed by Bloomberg.
Is it free?
It is open source under the license in the repository. Bloomberg access has its own cost.
Is blpapi required?
Not as a Python dependency. It needs Bloomberg's shared runtime library from Terminal or the SDK.
Which Python versions work?
3.11 through 3.15.
Does it need Windows?
Not stated for MCP. On Windows Terminal installs it finds the DAPI path automatically.
If it does not work
- βΊCheck that your Bloomberg Terminal or access is running and logged in.
- βΊSet BLPAPI_ROOT or use xbbg.set_sdk_path if the runtime library is not found.
- βΊRun python -c "import xbbg; print(xbbg.get_sdk_info())" to check the install.
5 new skills a week. 1 minute to read.