# xbbg-mcp Last updated: 2026-10-20. Stdio MCP server for Bloomberg request/response workflows backed by `xbbg-async`. This binary is intended for coding agents such as Claude Code and OpenCode that can launch a local MCP server process and call tools over stdio. ## What it exposes The current server exposes request/response tools only: - `bdp` - reference data - `bdh` - historical data - `bds` - bulk data - `bdib` - intraday bars - `bql` - Bloomberg Query Language - `bsrch` - Bloomberg search - `bflds` - field metadata lookup - `resolve_venues` - resolve composite equity and preferred inputs to validated auction venues - `auction_snapshot` - primary-venue auction and imbalance reference data - `check_entitlements` - entitlement-ID check for a Bloomberg service - `delay_status` - per-ticker delayed/real-time status for this session, with an optional feed-EID entitlement check - `request` - generic raw/custom request path Responses are returned as bounded structured JSON with Arrow schema metadata so an agent can inspect the shape without receiving an unbounded payload. Limits cover rows, cells, strings, metadata inspection/retention, and the final serialized payload; a row limit alone is not the output bound. ## Auction venues and snapshots `resolve_venues` routes composite equity tickers or ISINs to their primary exchange listing and preferreds to venue pricing sources. Explicit exchange listings are respected. The recipe keeps one row per input, including duplicates and input order, with `status` (`resolved`, `unresolved`, `unsupported`, or `mismatch`) and `error`. The result also includes the lookup, security `kind`, equity `composite` ticker, venue topic, venue FIGI, routing method, exchange, MIC, and pricing source. Original input strings are retained in `security`; lookups are trimmed, and bare valid ISINs become `/isin/`. ```json { "securities": ["IBM US Equity", "AAPL US Equity"], "pcs_overrides": {"NEW YORK": "SNY2"} } ``` `pcs_overrides` is optional on both tools. Its keys are preferred exchange names, trimmed, uppercased, and collapsed to single internal spaces; values are trimmed and uppercased pricing-source codes. Overrides take precedence over the built-in mapping; a blank or missing-value code such as `N.A.` disables the mapping for that exchange. Conflicting spellings of the same normalized exchange key are rejected. Every route is validated before it can be reported as resolved; an unknown preferred exchange needs a `pcs_overrides` entry. `auction_snapshot` first resolves the venue, then reads the requested fields using Bloomberg reference data on that venue. Failed or mismatched inputs retain their status/error row with null data fields. Results contain `input_order`, `security`, `venue_topic`, `status`, `error`, then the selected typed fields. ```json { "securities": ["IBM US Equity", "AAPL US Equity"], "groups": ["imbalance", "quotes"], "fields": ["IN_AUCTION_RT"] } ``` The optional `groups` list accepts `imbalance`, `indicative`, `state`, `halts`, `results`, `composite`, `quotes`, and `default` (trimmed, case-insensitive). Groups expand in the supplied order, followed by the explicit `fields` in their supplied order; field names are trimmed and uppercased and duplicates are removed, keeping their first occurrence. Unknown groups are invalid parameters. If the combined selection is empty, the default auction group is used: imbalance, indicative, state, halts, and results, in that order. Explicit fields or groups replace that implicit default; include `default` in `groups` to extend it. Both tools require at least one nonblank security (there is no count limit; results are bounded by the output limits) and accept at most 128 pricing-source overrides. `auction_snapshot` accepts up to eight group entries, 256 explicit fields, and 256 unique fields after expansion. Every input string, including override keys and values, is limited to 1,024 UTF-8 bytes; blank securities, fields, group names, or override keys are rejected rather than silently dropped. Blank override values are allowed to disable a mapping. **Timing and delayedness:** time-of-day fields are terminal-local, not exchange-local. Bloomberg can serve delayed values without marking them in the rows. The delayed flag for this session is available from `delay_status`, from `on_delayed` on `bdp`, `bdh`, `bdib`, and `request`, or by requesting `IS_DELAYED_STREAM` and `EXCHANGE_DELAY` with `bdp`; see [Delayed data](#delayed-data). Temporal cells use the existing Arrow JSON string conventions: `Date32` is `YYYY-MM-DD`, and `Time64` is `HH:MM:SS[.fraction]` without an invented date or timezone. Timestamps include both date and time; UTC ends in `Z`, other declared timezones include their offset, and timestamps without a timezone have no suffix. Fractional seconds are preserved without rounding, including the microseconds in auction snapshots. Null cells remain JSON `null`. The same serialization applies to typed request columns such as `value_time` and `value_ts`; the Arrow schema retains the original temporal type, unit, and timezone. Both tools use the same bounded JSON envelope with Arrow schema metadata as `bdp`. Result limits can omit rows or fields; always inspect the truncation flags and counts before treating the returned rows as the complete input set. ## Entitlement IDs Set `return_eids: true` only on routes backed by Bloomberg operations that support `returnEids`: | MCP route | Bloomberg operation | EID option | | --- | --- | --- | | `bdp`, `bds` | `ReferenceDataRequest` (including BDS/bulk) | `return_eids: true` | | `bdh` | `HistoricalDataRequest` | `return_eids: true` | | `bdib` | `IntradayBarRequest` | `return_eids: true` | | `request` | `IntradayTickRequest` | `return_eids: true` | The dedicated `bdp`, `bds`, `bdh`, and `bdib` tools advertise `return_eids` directly. Use the generic `request` tool for intraday ticks: ```json { "service": "//blp/refdata", "operation": "IntradayTickRequest", "extractor": "intraday_tick", "security": "AAPL US Equity", "start_datetime": "2024-01-15T09:30:00", "end_datetime": "2024-01-15T10:00:00", "event_types": ["TRADE"], "return_eids": true } ``` When retained within the metadata and output budgets, results expose the EID map as structured JSON at `metadata["xbbg.eid_data"]`, alongside `schema`, `row_count`, `returned_rows`, `truncated`, and `rows`. `truncated` is an object of flags, not a single boolean. Consult `metadata_counts["xbbg.eid_data"]` when present for total/returned EID and security counts, `valid`, and `counts_complete`; an unknown total is `null`, not zero. `truncation_counts.omitted_priority_metadata` identifies priority metadata that could not be retained. Pass the collected IDs to the read-only `check_entitlements` tool; `service` defaults to `//blp/refdata`: ```json { "eids": [101, 202], "service": "//blp/refdata" } ``` The check result includes `service`, `eids`, `entitled`, and `failed_eids`, plus total, returned, and omitted counts for both ID lists and per-component `truncated` flags. Failed IDs receive the shared cell/byte allowance before the echoed input IDs. A shortened list must not be interpreted as the full entitlement result. ### Delayed data Bloomberg serves delayed data without marking the rows: a delayed `bdp` snapshot, a delayed "today" row from `bdh`, and intraday bars or ticks that stop at the current time minus the delay. `IS_DELAYED_STREAM` is the delayed flag for the requesting session. `EXCHANGE_DELAY` is the exchange's standard delay as text, such as `15 Minutes`, and is set for real-time securities too. `delay_status` reads both fields, `EXCH_CODE`, and the feed EIDs in one reference-data request and returns one row per unique ticker, in input order: ```json { "tickers": ["VOD LN Equity", "AAPL US Equity"], "check_identity": false } ``` | Column | Meaning | | --- | --- | | `ticker` | Requested security | | `delayed` | This session receives delayed data (`IS_DELAYED_STREAM`); `null` when unknown | | `delay_minutes` | Minutes behind real time, parsed from `EXCHANGE_DELAY`; `null` when real-time or unknown | | `exchange_delay` | Raw `EXCHANGE_DELAY` text | | `exch_code` | `EXCH_CODE` | | `realtime_eid1` to `realtime_eid4` | Real-time feed EIDs `FEED_EID1` to `FEED_EID4`; `null` when Bloomberg returns none | | `delayed_eid` | Delayed-feed EID `FEED_DELAYED_EID1`; `null` when none | | `realtime_entitled` | The session identity is entitled to every real-time feed EID; `null` unless `check_identity` is set and the ticker has at least one | | `delayed_entitled` | The session identity is entitled to `delayed_eid`; `null` unless `check_identity` is set and the EID exists | | `error` | Bloomberg security error message, else `null` | `check_identity` defaults to `false`, which works on any Desktop Terminal. Setting it to `true` also runs one entitlement check of all returned feed EIDs against `//blp/mktdata` and maps the failures back to each ticker. That needs an authorized identity: SAPI/B-PIPE authorization configured through `XBBG_MCP_AUTH_METHOD` (see [Runtime environment](#runtime-environment)), or a Desktop API user enrolled in EMRS. Otherwise the call fails. `on_delayed` runs the same check alongside a data request on `bdp`, `bdh`, `bdib`, and the generic `request` tool (`ReferenceDataRequest`, `HistoricalDataRequest`, `IntradayBarRequest`, or `IntradayTickRequest`). `bds` does not offer it, and the generic `request` tool rejects it as an invalid parameter for any other operation, including BDS/bulk. - `bdp` adds whichever of `IS_DELAYED_STREAM` and `EXCHANGE_DELAY` you did not request to the same request; the added fields are not returned as rows. - `bdh`, `bdib`, and intraday-tick requests send one extra small reference-data request, only when the window reaches the last 24 hours: `end_date` on or after yesterday (UTC), or `end_datetime` no earlier than 24 hours ago. Older windows skip the check and add no metadata. | `on_delayed` | Result | | --- | --- | | omitted | No check | | `warn` | Data plus `metadata["xbbg.delayed"]` | | `ignore` | Data plus `metadata["xbbg.delayed"]` | | `raise` | The call fails with an error containing `Bloomberg is delivering delayed data; on_delayed=raise` and the delayed tickers | MCP results have no warnings channel, so `warn` and `ignore` behave the same here: inspect the metadata. It is keyed by ticker; tickers whose flag Bloomberg did not return (an invalid security, or a field that does not apply) are absent: ```json { "VOD LN Equity": { "delayed": true, "delay_minutes": 15 }, "AAPL US Equity": { "delayed": false, "delay_minutes": null } } ``` `xbbg.delayed` is priority metadata: `metadata_counts["xbbg.delayed"]` reports returned and omitted properties, and `truncation_counts.omitted_priority_metadata` lists it if it could not be retained. ## Install from GitHub Releases For macOS arm64 and Linux amd64, install the latest wrapper + binary pair with: ```bash curl -fsSL https://raw.githubusercontent.com/underloam/xbbg/main/scripts/install-xbbg-mcp.sh | sh ``` To install a specific release: ```bash curl -fsSL https://raw.githubusercontent.com/underloam/xbbg/main/scripts/install-xbbg-mcp.sh | sh -s -- 1.0.0 ``` The installer places two files in `~/.local/bin/` by default: - `xbbg-mcp` - launcher wrapper - `xbbg-mcp-real` - compiled binary GitHub release assets include only the launcher wrapper and compiled xbbg binary. They do **not** include Bloomberg SDK files or the Bloomberg runtime. You must provide those locally from a source you are authorized to use under your Bloomberg agreements and entitlements. GitHub Release tar/zip assets remain the raw binary channel. The MCPB asset is the directory and one-click local connector channel for MCPB-aware clients and registries. The `xbbg-mcp` binary finds and loads the Bloomberg runtime itself, at startup, before it serves anything; the launcher script only passes what the binary cannot know (the directory of the Python `blpapi` package, and the checkout it runs from). The search order is the one every xbbg host shares: 1. `XBBG_MCP_LIB_DIR` (a runtime directory or library file) 2. `BLPAPI_LIB_DIR` 3. `BLPAPI_ROOT` 4. `XBBG_DEV_SDK_ROOT` (relative to the checkout when the launcher runs from one) 5. locally staged authorized SDK under `vendor/blpapi-sdk/` (checkout only) 6. hint directories: `XBBG_MCP_HINT_DIRS`, an OS path list the launcher sets to the official Python `blpapi` package directory 7. a Bloomberg Terminal install (`~/blp/DAPI`, `/opt/bloomberg/DAPI`; the usual `DAPI` directories on Windows) 8. the operating system's library search path variables (`PATH` on Windows, `LD_LIBRARY_PATH` on Linux, `DYLD_LIBRARY_PATH` then `DYLD_FALLBACK_LIBRARY_PATH` on macOS) 9. the operating system's own library search, where a system-wide install lives (the `ldconfig` cache and default library directories on Linux, `/usr/local/lib` and `/usr/lib` on macOS, the directory of `xbbg-mcp.exe` and the system directory on Windows) 10. runtimes provisioned into the xbbg cache (`XBBG_CACHE_DIR`), read only when nothing before them loaded If nothing loads and `XBBG_MCP_LIB_DIR` is not set, setting `XBBG_SDK_SOURCE` (and optionally `XBBG_SDK_VERSION`) provisions a runtime into the shared xbbg cache automatically before starting the server. You can also manage the cache directly before any Bloomberg runtime exists with `xbbg-mcp sdk --source ` or `xbbg-mcp sdk --installed`. A candidate that cannot be opened, or that is too old to export a function the binary calls, is skipped and the next one is tried; `XBBG_MCP_LIB_DIR` is the exception, because it names the runtime to use: when it does not load, nothing else is tried (including `XBBG_SDK_SOURCE`). If none loads, the binary exits with status 1 and lists every candidate it refused and why. Set `RUST_LOG=info` to log which runtime was loaded and by which rule. The launcher no longer sets `DYLD_LIBRARY_PATH`, `LD_LIBRARY_PATH` or `PATH`. If you install Bloomberg's Python package, the wrapper can usually run without any extra shell configuration: ```bash pip install blpapi --index-url https://blpapi.bloomberg.com/repository/releases/python/simple/ ``` Windows release assets are attached as `.zip` files, but the convenience installer currently targets macOS/Linux only. ## Install MCPB Claude Desktop and MCPB-aware registries can use the `xbbg-mcp-v.mcpb` asset attached to GitHub Releases. The MCPB currently supports macOS arm64, Linux amd64, and Windows amd64. The raw platform tar/zip assets remain available for manual installs and troubleshooting. The MCPB does not include Bloomberg SDK files, Bloomberg runtime libraries, credentials, or market data. Configure `XBBG_MCP_LIB_DIR`, `BLPAPI_LIB_DIR`, `BLPAPI_ROOT`, or install Bloomberg's official Python `blpapi` package so the binary can find the authorized Bloomberg runtime locally. On Windows the MCPB PowerShell launcher passes the same hint (the Python `blpapi` package directory) and starts `xbbg-mcp.exe` with the standard handles inherited; the binary runs the search above, including `PATH` (a Bloomberg Terminal install puts `C:\blp\DAPI` there). `xbbg-mcp.exe` is 64-bit and needs `blpapi3_64.dll`. It is loaded by absolute path, so no DLL version gate, working-directory or `PATH` rewriting is needed: a runtime that is too old fails to provide a required function and is skipped with that reason in the startup error. ## Troubleshooting The server writes only to stderr, which MCP hosts such as Claude Desktop capture in their server logs. When stdin is closed by the host it prints `xbbg-mcp: stdin closed; shutting down`; a failed stdin read, reader-thread failure, or abnormal service stop returns a nonzero process status. Diagnostic writes are best-effort, so a closed stderr handle cannot terminate the stdin reader or turn a failure into clean EOF. Set `RUST_LOG=info` (or `debug`) to also see the engine's and the MCP library's own log lines. ## Build from source ```bash cargo run -p xbbg-sdk --features provision -- cpp cargo build --release -p xbbg-mcp --locked ./scripts/xbbg-mcp ``` ## Claude Code ```bash claude mcp add --transport stdio xbbg -- ~/.local/bin/xbbg-mcp ``` ## OpenCode ```json { "$schema": "https://opencode.ai/config.json", "mcp": { "xbbg": { "type": "local", "command": ["/Users/you/.local/bin/xbbg-mcp"], "enabled": true } } } ``` ## Directory and registry publishing Official MCP Registry: publish the generated `server.json` after the release contains the `.mcpb` asset. GitHub MCP Registry: verify the server appears after official registry ingestion. Claude Connectors Directory: submit the MCPB as a desktop extension; remote connector submission is not the default for Bloomberg-local workflows. Smithery: publish the MCPB bundle. Glama: verify indexing after official registry publication; if automated sandbox build cannot run without Bloomberg runtime, keep the listing metadata-focused. PulseMCP: wait for official registry ingestion or use the Pulse submit page. MCP.so: submit the GitHub repo/release after canonical registry metadata is live. ## Runtime environment `xbbg-mcp` accepts the same engine-oriented connection settings as the Rust core, with MCP-prefixed names taking precedence where available. Common settings: - `XBBG_MCP_HOST` / `XBBG_HOST` - `XBBG_MCP_PORT` / `XBBG_PORT` - `XBBG_MCP_AUTH_METHOD` / `XBBG_AUTH_METHOD` - `XBBG_MCP_APP_NAME` - `XBBG_MCP_BQL_APP_NAME` – optional shared-engine BQL client-context default; independent of session authentication - `XBBG_MCP_DIR_PROPERTY` - `XBBG_MCP_USER_ID` - `XBBG_MCP_IP_ADDRESS` - `XBBG_MCP_TOKEN` - `XBBG_MCP_REQUEST_POOL_SIZE` - `XBBG_MCP_VALIDATION_MODE` / `XBBG_VALIDATION_MODE` – `disabled` (default), `lenient`, `strict` - `XBBG_MCP_SDK_LOG_LEVEL` / `XBBG_SDK_LOG_LEVEL` – `off` (default), `fatal`, `error`, `warn`, `info`, `debug`, `trace` - `XBBG_MCP_OVERFLOW_POLICY` / `XBBG_OVERFLOW_POLICY` – `drop_newest` (default), `block` - `XBBG_MCP_KEY_COLUMN` / `XBBG_KEY_COLUMN` – `ticker` (default, deprecated), `security`; names the result column holding each row's security. `ticker` collides with Bloomberg's `TICKER` field once identifiers are case-folded, and `security` becomes the default in the next major release. Supported auth methods: - `none` - `user` - `app` - `userapp` - `dir` - `directory` - `manual` - `token` The settings above are checked at startup by the configuration rules every xbbg binding shares (`xbbg-host`). A setting the engine would reject (for example `XBBG_MCP_REQUEST_POOL_SIZE=0`, or an auth method without the value it needs) stops the server before it serves anything: it prints `xbbg-mcp: invalid configuration: …` to stderr, naming the variable that set the value, and exits with status 1. On shutdown the server waits up to 10 seconds for the engine's Bloomberg sessions to stop before it exits. ### BQL client context The shared Rust engine owns the optional BQL application-name default. `XBBG_MCP_BQL_APP_NAME` sets `EngineConfig.bql_app_name` for every BQL `sendQuery` dispatched by this server, including the generic `request` tool. The `bql` tool's per-call `app_name` and explicit `clientContext.appName` elements or kwargs override the engine default. If no value is supplied, the app name is omitted and the current Bloomberg default is unchanged; no name is selected automatically. ```json { "expression": "get(name()) for('IBM US Equity')", "app_name": "example-authorized-bql-app" } ``` Use an application name authorized for your Bloomberg environment. This setting does not grant BQL entitlement or change session authentication. `XBBG_MCP_APP_NAME` remains an authentication setting, not a BQL client-context setting. An explicitly blank per-call `app_name` is rejected rather than falling back to the server's application name. The SDK's [application-mode authentication](https://bloomberg.github.io/blpapi-docs/python/3.26.6/_autosummary/blpapi.AuthOptions.html#blpapi.AuthOptions.createWithApp) and [application identity key](https://bloomberg.github.io/blpapi-docs/python/3.26.6/_autosummary/blpapi.SessionOptions.html#blpapi.SessionOptions.setApplicationIdentityKey) are separate session settings. The BQL default is a request element and never sets either SDK authentication or session-identification options. The generic `request` tool also accepts `clientContext.appName` as a dotted key in its string-valued `elements` map; nested objects are not accepted there. Fatal BQL response exceptions are retained in the MCP error message with the service and operation context. Messages still respect the string and serialized output budgets below; shortened errors include `message_truncated: true`. ### Result budgets These MCP-only environment settings use integer values; unset settings use the defaults below. Values below the minimum or invalid integers cause configuration to fail rather than silently disabling a limit. | Setting | Default | Minimum | Scope | | --- | ---: | ---: | --- | | `XBBG_MCP_MAX_ROWS` | 500 | 1 | Returned rows | | `XBBG_MCP_MAX_CELLS` | 50,000 | 1 | Returned cells and inspected schema columns; also shared entitlement-list items and validation-error record count | | `XBBG_MCP_MAX_METADATA_PROPERTIES` | 50,000 | 1 | Aggregate retained metadata properties/array items and metadata-entry inspection | | `XBBG_MCP_MAX_METADATA_BYTES` | 65,536 | 1 | Aggregate raw metadata inspection bytes before parsing, and retained metadata plus its count summaries | | `XBBG_MCP_MAX_STRING_CHARS` | 2,048 | 1 | Unicode characters per string | | `XBBG_MCP_MAX_STRING_BYTES` | 8,192 | 3 | UTF-8 bytes per string, including a truncation marker when needed | | `XBBG_MCP_MAX_RESULT_BYTES` | 1,048,576 | 2,048 | Final serialized structured JSON payload, including schema, metadata, and diagnostics; also bounds serialized error results | The final-byte limit includes JSON escaping and envelope overhead; it is not just a sum of raw string lengths and does not describe the surrounding MCP transport framing. The limits are ceilings: metadata and schema consume space before rows, so a payload may return fewer rows or columns than their individual limits allow. The cell allowance applies across returned rows and columns, not separately to every row. Even zero-row batches have bounded schema output. String values are shortened on Unicode boundaries. Column names and metadata keys are identities: oversized names are omitted rather than shortened, and duplicate column names are not silently overwritten in JSON rows. Nested Arrow values are represented by a bounded omission marker instead of recursively formatting an unbounded cell; omission counts distinguish this from an ordinary scalar value. Integer values outside JavaScript's safe range are returned as strings rather than rounded numbers. Metadata inspection is bounded before JSON parsing. Oversized entries and generic metadata that cannot be inspected within the aggregate allowance may be omitted without a full scan. `xbbg.security_errors`, `xbbg.field_errors`, `xbbg.field_exceptions`, `xbbg.delayed`, and `xbbg.eid_data` are prioritized before generic metadata and rows. Diagnostic records are retained with their structure rather than arbitrary property fragments, but string contents and the number of records remain bounded; even priority metadata can be omitted when it cannot fit. Compact field-exception dictionaries are validated before projection and emitted as bounded expanded records, never as partially clipped dictionary references. `bflds` retains refused ids in `xbbg.field_errors` even when its data table has no successful rows. See the [response diagnostic contract](../../README.md#response-diagnostics). ### Output diagnostics and errors Result envelopes are extensible. For example, a one-row result can include the following excerpt (additional counters are omitted here): ```json { "schema": [{ "name": "PX_LAST", "data_type": "Float64", "nullable": true }], "row_count": 1, "column_count": 1, "returned_rows": 1, "returned_columns": 1, "returned_cells": 1, "result_budget_bytes": 1048576, "truncated": { "rows": false, "columns": false, "cells": false, "values": false, "metadata": false, "output": false }, "rows": [{ "PX_LAST": 190.1 }] } ``` `row_count` and `column_count` describe the source batch; the `returned_*` fields describe what was emitted. `truncation_counts` reports omissions and inspection completeness, including `omitted_rows`, `omitted_columns`, `omitted_cells`, `known_omitted_value_bytes`, `omitted_complex_values`, and `known_omitted_metadata_properties`. Treat `known_*` counts as lower bounds unless completeness is established, not as evidence of an exhaustive scan. In particular, `schema_column_count_complete`, `metadata_input_count_complete`, and `metadata_property_count_complete` qualify the related diagnostics; `omitted_metadata_input_bytes` is `null` when the input count is incomplete. Optional `metadata_counts` supplies additional per-key diagnostics. Errors are bounded too: request/validation/internal failures remain errors, not success-shaped empty results. Error messages respect string and escaped-JSON byte limits; `message_truncated` indicates shortening. Existing adapter error codes are preserved, while omitted auxiliary error data is marked with `error_data_omitted`. Validation errors return bounded structured `errors` records with `path`, `message`, and a per-record `truncated` flag, plus `total_errors`, `returned_errors`, and `omitted_errors`. Space is reserved for the primary validation diagnostic even at the 2,048-byte minimum result budget: its path/message take priority over a long summary or optional `suggestion`. The path and message can be shortened and suggestions or later records omitted, but a later error does not displace the primary diagnostic. ### Serialization concurrency The server uses two async runtime workers. Small result conversions stay inline; larger or expensive conversions are offloaded to blocking workers. A shared permit limit allows at most two offloaded serializations at once, with the permit held until conversion finishes. This bounds serialization concurrency, not the total process thread count: Bloomberg engine work and stdio handling have their own lifecycle. ## Privacy Policy `xbbg-mcp` runs locally as a stdio MCP server. It does not send telemetry or usage data to underloam, GitHub, Anthropic, Smithery, Glama, or any other third party. Tool calls are handled on the user's machine and forwarded only to the Bloomberg runtime/API endpoint configured by the user (`XBBG_MCP_HOST` / `XBBG_HOST`, default `localhost:8194`) under that user's Bloomberg agreements and entitlements. Results are returned only to the MCP client process that launched the server. Bloomberg validates entitlements at request time, including per-security and per-field access. A valid local session can still return empty or partial results when the user's DAPI, SAPI/B-PIPE, or ZFP entitlement set does not cover the requested data. The server reads configuration from environment variables and does not persist request data, credentials, or Bloomberg responses to disk. ## Smoke test After building locally, verify the stdio handshake and a few live requests with: ```bash uv run python -X utf8 scripts/xbbg_mcp_smoke.py ``` That script expects a live Bloomberg connection and a locally built `target/debug/xbbg-mcp` binary, or `target/release/xbbg-mcp` if no debug build is present.