# xbbg MCP [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/underloam/xbbg  
**GitHub Stars:** 690  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/xbbg-mcp

## Description
Intuitive Data Workflows

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "xbbg-mcp": {
    "command": "npx",
    "args": ["-y","xbbg-sdk"]
  }
}
```

## Documentation

## What xbbg MCP does

xbbg MCP exposes xbbg’s Bloomberg data workflows to an MCP-compatible client. The underlying xbbg project provides Python APIs, JavaScript and Node bindings, and a Rust request engine for executing Bloomberg requests, parsing responses, moving Arrow-shaped data, and reporting typed errors and diagnostics.

The available xbbg coverage includes reference-data requests such as BDP and BDS, historical requests through BDH, intraday bars and ticks, streaming subscriptions, BQL, BEQS, BSRCH, BQR, BTA, YAS, and related analytics. The MCP interface is suited to agent workflows that need to retrieve or work with Bloomberg data without embedding low-level request handling in each application.

## How it works

xbbg uses Bloomberg’s supported runtime rather than providing Bloomberg access itself. It can work with a local Bloomberg Desktop API environment by default, or with managed environments such as SAPI/B-PIPE and ZFP. Configuration also covers TLS, failover hosts, SOCKS5, and SDK logging.

Requests run through the shared Rust engine. Python users can consume results through Narwhals, native xbbg carriers, PyArrow, pandas, Polars, DuckDB, and other optional Narwhals-backed libraries. The broader xbbg API also supports synchronous and asynchronous operation, worker pools, and isolated subscription sessions.

## Setup and configuration

Install the Python package with `pip install xbbg`, or use the conda-forge package. Supported Python versions are 3.11 through 3.15. Optional dataframe targets are installed separately with extras such as `xbbg[pyarrow]`, `xbbg[pandas]`, `xbbg[polars]`, or `xbbg[duckdb]`.

A working Bloomberg environment is required: local Terminal/DAPI, SAPI/B-PIPE, or ZFP, depending on the deployment. xbbg requires Bloomberg’s shared runtime library, which may come from a Bloomberg Terminal or DAPI installation, a managed C++ SDK, or Bloomberg’s official `blpapi` wheel. The Python `blpapi` package is not itself required by xbbg, although installing the official wheel can provide the runtime library.

When managing the SDK directly, configure its location with `BLPAPI_ROOT` or `xbbg.set_sdk_path(...)`. On Windows, xbbg probes common DAPI installation paths automatically. Bloomberg authorization, credentials, licenses, data entitlements, and applicable agreements remain the user’s responsibility.

## Tools and capabilities

- Retrieve reference fields for one or more securities.
- Query historical Bloomberg data over a date range.
- Request intraday bars and tick data.
- Access Bloomberg request families including BQL, BEQS, BSRCH, BQR, BTA, and YAS.
- Use streaming subscriptions and asynchronous request workflows.
- Route results to pandas, Polars, PyArrow, DuckDB, or other supported dataframe consumers.

## Limitations and notes

xbbg is an independent open-source project and is not affiliated with or endorsed by Bloomberg Finance L.P. It does not grant Bloomberg service access, software licenses, credentials, or entitlements. Users must obtain those separately.

The Rust-powered v1 line differs from the legacy pure-Python 0.x line. Native runtime availability and Bloomberg environment configuration determine whether requests can execute successfully. Building from source also requires staging the Bloomberg C++ SDK.

_Full upstream README: https://allmcps.com/mcp/xbbg-mcp/readme_

