BLPAPI-MCP
A MCP server providing financial data from Bloomberg's blpapi.
Note: A Bloomberg Terminal must be running (BBComm must be accessible) for data access.
Installation
Using UV
uv add git+https://github.com/djsamseng/blpapi-mcp
Run the MCP Server
uv run blpapi-mcp --sse --host 127.0.0.1 --port 8000
Using blpapi-cmp from Cursor
- For project only: create .cursor/mcp.json in your project directory
- For global: create
~/.cursor/mcp.json - Replace the host and port with the MCP server running from above
{
"mcpServers": {
"server-name": {
"url": "http://127.0.0.1:8000/sse",
}
}
}
Using blpapi-mcp from Claude Code
- Replace the url with the MCP server running from above
claud mcp add --transport sse blpapi-mcp http://127.0.0.1:8000/sse
Using blpapi-mcp from Aider
Development
Requirements
curl -LsSf https://astral.sh/uv/install.sh | sh
- Clone this repository
git clone https://github.com/djsamseng/blpapi-mcp
- Setup the venv
uv venv
source .venv/bin/activate
- Run the MCP server
uv run blpapi-mcp --sse --host 127.0.0.1 --port 8000
- Run a test client that starts up it's own server in stdio mode
uv run examples/clients/blp_stdio_client.py
- Run a test client that uses an existing running sse server
uv run examples/clients/blp_sse_client.py --host http://127.0.0.1 --port 8000
Trademark Note
This project not affiliated with Bloomberg Finance L.P. The use of the name Bloomberg is only descriptive as towards what this package is used with.
Metadata
Release files for iflow-mcp_djsamseng-blpapi-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iflow_mcp_djsamseng_blpapi_mcp-0.1.0.tar.gz | 52.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_djsamseng_blpapi_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.8 kB
Release files / iflow_mcp_djsamseng_blpapi_mcp-0.1.0.tar.gz
| Download URL | iflow_mcp_djsamseng_blpapi_mcp-0.1.0.tar.gz |
|---|---|
| Size | 52.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9e4807f4c4ba9a438d159a0e42224210a263c8d8a50cbada7cf227aaf29efd6
|
|
BLAKE2b-256 checksum How to use checksums |
7c3b59c28435e7bacdfd46b2d1a2b3b273181613c2d9704941c2b7ceac28b794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_djsamseng_blpapi_mcp-0.1.0-py3-none-any.whl
| Download URL | iflow_mcp_djsamseng_blpapi_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bd2d2b9073fd46b9b0d065207f36b82bc550710789b2d7d8da9e669c9d8e0b9
|
|
BLAKE2b-256 checksum How to use checksums |
df13949ee0f8f7e2db7d0508a2a56afad62613ec871a7bbdb375521dda1eaa0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|