Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyFinance

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

NameWhat it isRequired
XBBG_MCP_LIB_DIROptional directory containing Bloomberg runtime libraries. Leave unset to use BLPAPI_ROOT, an authorized vendored SDK layout, or Python blpapi fallback.No
XBBG_MCP_HOSTBloomberg API host. Defaults to localhost.No
XBBG_MCP_PORTBloomberg API port. Defaults to 8194.No
XBBG_MCP_AUTH_METHODBloomberg auth method: none, user, app, userapp, dir, manual, or token.No
XBBG_MCP_MAX_ROWSMaximum rows returned to the MCP client per response. Defaults to 500.No
XBBG_MCP_MAX_CELLSMaximum data cells across returned rows and columns. Defaults to 50000.No
XBBG_MCP_MAX_METADATA_PROPERTIESMaximum metadata properties retained per response. Defaults to 50000.No
XBBG_MCP_MAX_METADATA_BYTESMaximum metadata bytes parsed or returned per response. Defaults to 65536.No
XBBG_MCP_MAX_STRING_CHARSMaximum characters per string value returned to the MCP client. Defaults to 2048.No
XBBG_MCP_MAX_STRING_BYTESMaximum UTF-8 bytes per string value, including a truncation marker. Defaults to 8192; minimum 3.No
XBBG_MCP_MAX_RESULT_BYTESMaximum 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

Python 3.11 to 3.15 and authorized Bloomberg access (Terminal with DAPI, B-PIPE or similar), plus Bloomberg's runtime library. The readme's MCP section is cut off here.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.