bvb-mcp
Read-only MCP server for the Bucharest Stock Exchange, exposing instrument data, OHLCV candles, and fundamentals through a public backend with no authentication.
README
bvb-mcp
Read-only MCP server for the Bucharest Stock Exchange (Bursa de Valori
București, BVB). It exposes BVB's own public backend — the TradingView-UDF
datafeed at wapi.bvb.ro and the market-list pages at www.bvb.ro — as MCP
tools: instrument universe, symbol search and metadata, and OHLCV candles.
No account, no API key, no token: the BVB backend is public and unauthenticated. Every tool is read-only; there is nothing to trade through here.
Features
- OHLCV candles for any BVB ticker or index (
get_candles), with a cleanresolutionparameter that hides the datafeed's1D-not-Dquirk. - Full instrument universe scraped from the exchange's market-list pages
(
list_instruments) — ticker + ISIN + name — plus the index universe (list_indices). - Datafeed symbol search (
search_symbol) and per-symbol metadata (get_symbol_info), with diagnostics (server_time,datafeed_config). - Browser-like
User-AgentandReferer: https://www.bvb.ro/on every request (defensive; no cookies, no token). - One automatic retry on HTTP 429, honouring
Retry-After(capped at 30s). - stdio transport by default, HTTP (
/mcp) on request.
Tools
All tools are read-only (there are no write tools):
| Tool | Description |
|---|---|
list_instruments |
List a market's instrument universe (ticker + ISIN + name) by scraping the BVB market-list page. Markets: shares, bonds, fund-units (ETFs), warrants, certificates (structured) |
list_indices |
List the BVB index universe (BET, BET-TR, BET-FI, ROTX, …) |
search_symbol |
Datafeed symbol search by ticker/name (server-capped at ~30 results) |
get_symbol_info |
Resolve a ticker to its metadata: name, type, session, timezone, currency, sector/industry |
get_candles |
OHLCV candles for a ticker/index at minute/daily/weekly/monthly resolution |
get_fundamentals |
Company details + valuation snapshot scraped from the detail page: identity, Indicatori bursieri (market cap, P/E, P/BV, EPS, div yield, dividend), issue info, and ownership structure |
financial_summary |
One-call bundle for a fundamental ("Buffett-style") analysis: get_fundamentals + a price summary (last close, 52-week range, 1y/5y change). Returns data, not a verdict |
server_time |
Datafeed server time (reachability check) |
datafeed_config |
Datafeed configuration: instrument-type codes and supported resolutions |
Notes on the data surface
- Search is capped.
search_symbolmirrors the datafeed's own search, which returns roughly 30 results for broad queries. Uselist_instruments(orlist_indices) to enumerate the full universe. - The
1Dquirk. The datafeed advertises a bareDfor daily bars but the history endpoint only accepts1D(bareDreturns HTTP 500).get_candlestakes a friendlyresolution(1,5,15,30,60,1D,1W,1M;D/W/Mare accepted too) and sends the correct code. - Index metadata is partial.
list_indicesalways returns every index'ssymbol, butname/isinare populated only for the indices BVB renders a server-side profile card for; the rest load via client-side tabs and come back asnull. - Rights / structured. BVB publishes no standalone "rights" market page, and
"structured products" (datafeed type
T) are split across thewarrantsandcertificatespages —structuredis accepted as an alias forcertificates. - No multi-year statements.
get_fundamentals/financial_summaryexpose BVB's current snapshot (valuation ratios, dividend, ownership) — BVB does not publish structured multi-year income/balance/cash-flow statements, so a full 10-year ROE/margin/FCF track record is not available. Pair withget_candlesfor the price trend; the client (LLM) does the analysis.
Configuration
All configuration is via environment variables, and all of it is optional — the BVB backend needs no credentials.
| Variable | Default | Purpose |
|---|---|---|
BVB_DATAFEED_URL |
https://wapi.bvb.ro |
Datafeed base URL |
BVB_WEB_URL |
https://www.bvb.ro |
Market-list site base URL |
BVB_MCP_USER_AGENT |
a Chrome-like UA | User-Agent sent on every request |
BVB_LANG |
ro |
Language for the datafeed config endpoint |
Getting started
Run straight from the repository with uv:
uvx --from git+https://github.com/florinel-chis/bvb-mcp bvb-mcp
The server speaks stdio by default; add --transport http --port 8000 to serve
MCP over HTTP at /mcp instead. HTTP binds 127.0.0.1 by default, and a
non-loopback --host is refused unless --allow-remote is also passed — read
the Safety section before using that flag.
MCP client configuration
Add the server to your MCP client's configuration (stdio, via uvx):
{
"mcpServers": {
"bvb": {
"command": "uvx",
"args": ["--from", "git+https://github.com/florinel-chis/bvb-mcp", "bvb-mcp"]
}
}
}
Or run the Docker image (build it first, see below):
{
"mcpServers": {
"bvb": {
"command": "docker",
"args": ["run", "-i", "--rm", "bvb-mcp"]
}
}
}
Docker
A small (~200 MB) multi-stage image that works both ways an MCP client might use
it — spawned per call over stdio, or as a long-running HTTP server. Both
paths are verified against BVB's live backend. The container only needs outbound
network to reach wapi.bvb.ro / www.bvb.ro; no credentials or volumes.
Build:
docker build -t bvb-mcp .
stdio — what an MCP client spawns (use bvb-mcp as the image name in the
docker config above):
docker run -i --rm bvb-mcp
HTTP — a shared, long-running server at http://127.0.0.1:8000/mcp/:
docker run --rm -p 127.0.0.1:8000:8000 bvb-mcp \
--transport http --host 0.0.0.0 --port 8000 --allow-remote
--host 0.0.0.0 binds inside the container so the port mapping works — which is
why --allow-remote is needed; the 127.0.0.1: prefix on -p keeps the
endpoint reachable from this machine only (it is unauthenticated — see Safety).
If host port 8000 is taken, map another, e.g. -p 127.0.0.1:8010:8000.
Share without a registry — hand the image to someone as a file they
docker load, no Docker Hub / GHCR needed:
docker save bvb-mcp:latest | gzip > bvb-mcp.tar.gz # you: export
docker load < bvb-mcp.tar.gz # them: image is now local
Safety
- The HTTP transport has no authentication: anyone who can reach the
/mcpendpoint can call every tool. Keep it bound to127.0.0.1(the CLI default; with Docker, publish as-p 127.0.0.1:8000:8000) or put it behind an authenticating reverse proxy. Never expose it directly on a public network. - All tools are read-only — this server cannot place orders or move money.
- Use at your own risk. Nothing here is investment advice.
Data & terms
This server ships code, not data. It fetches from BVB's own public backend at request time and returns whatever BVB serves. Redistributing or otherwise using BVB price data is subject to BVB's terms and any applicable market-data licensing, and is your responsibility as the operator — the software makes no representation about your right to store, redistribute, or trade on the data it relays.
Development
uv sync
uv run pytest -q
uv run ruff check .
Tests are fully offline: HTTP is stubbed with respx against captured BVB
response fixtures in tests/fixtures/.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.