bvb-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bvb-mcp show me the fundamentals for TLV"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bvb-mcp is a Model Context Protocol server for the
Bursa de Valori București (BVB). It exposes BVB's own public backend as MCP tools:
the TradingView-UDF datafeed at wapi.bvb.ro and the server-rendered pages at
www.bvb.ro. A built-in web playground lets you try every tool from a browser.
Try it in 30 seconds
git clone https://github.com/florinel-chis/bvb-mcp && cd bvb-mcp
docker build -t bvb-mcp .
docker run --rm -p 127.0.0.1:8000:8000 bvb-mcp --transport http --host 0.0.0.0 --allow-remoteOpen http://127.0.0.1:8000/ and click an example. MCP clients connect to
http://127.0.0.1:8000/mcp. If port 8000 is taken, use -p 127.0.0.1:8010:8000
and open port 8010 instead.
Related MCP server: tokenbel/financial-data
The playground
The page at / is a real MCP client, not a separate API. It talks Streamable
HTTP JSON-RPC to the same server's /mcp endpoint:
initializenotifications/initializedtools/listtools/call
Every result it shows comes through the protocol an AI assistant would use.
Examples for every kind of data: order book, price history, fundamentals, search, the instrument universe.
Any tool, any argument. A form is generated from each tool's input schema.
Readable results:
an order-book depth ladder with spread;
an interactive price chart;
valuation cards and shareholder tables;
plain tables for lists.
Each result also has a JSON tab and an MCP request tab.
Self-contained. It's one HTML file with no external scripts, fonts or trackers. Light and dark themes follow your OS.
No extra exposure. It adds no capability beyond
/mcpitself; pass--no-uito serve the MCP endpoint only.
What you can ask
Connected to an MCP-capable assistant, questions like these become tool calls:
"Show me the order book for Antibiotice (ATB). How wide is the spread?" →
get_order_book"How has Banca Transilvania done over the last year?" →
get_candles"Give me a value-investing snapshot of OMV Petrom." →
financial_summary"Who are Hidroelectrica's largest shareholders?" →
get_fundamentals"List every ETF traded on BVB." →
list_instrumentswithmarket="fund-units""Plot the BET index weekly since 2021." →
get_candleswithticker="BET"
Tools
All ten tools are read-only. There is nothing to trade through here.
Tool | Description |
| Main-market (REGS) top-5 order book: bids/asks as |
| OHLCV candles for a ticker or index at minute/daily/weekly/monthly resolution. Index bars have |
| 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 |
| One-call bundle for a fundamental ("Buffett-style") analysis: |
| A market's instrument universe (ticker + ISIN + name), scraped from the BVB market-list page. Markets: |
| The BVB index universe (BET, BET-TR, BET-FI, ROTX, …) |
| Datafeed symbol search by ticker/name (server-capped at ~30 results) |
| Resolve a ticker to its metadata: name, type, session, timezone, currency, sector/industry |
| Datafeed server time (reachability check) |
| 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; a bareDreturns HTTP 500.get_candlestakes a friendlyresolution(1,5,15,30,60,1D,1W,1M, withD/W/Maccepted too) and sends the correct code.Order book via postback. The book only renders on the detail page's server-side trading tab.
get_order_bookreplays that tab's ASP.NET postback. It locates everything by visible text (the tab label, the section heading, the column headers), never by generated element ids, so a re-rendered page doesn't break it.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 and 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 does the analysis.
Connect an MCP client
stdio via uvx, no install or clone needed:
{
"mcpServers": {
"bvb": {
"command": "uvx",
"args": ["--from", "git+https://github.com/florinel-chis/bvb-mcp", "bvb-mcp"]
}
}
}stdio via Docker (build the image first):
{
"mcpServers": {
"bvb": {
"command": "docker",
"args": ["run", "-i", "--rm", "bvb-mcp"]
}
}
}HTTP: point any Streamable-HTTP client at http://127.0.0.1:8000/mcp while
the server from Try it in 30 seconds is running.
Running it
From the repository with uv:
uvx --from git+https://github.com/florinel-chis/bvb-mcp bvb-mcp # stdio
uvx --from git+https://github.com/florinel-chis/bvb-mcp bvb-mcp --transport http # http://127.0.0.1:8000/Flag | Default | Meaning |
|
|
|
|
| HTTP bind address. Non-loopback is refused unless |
|
| HTTP port |
| off | Permit a non-loopback |
| off | HTTP: serve only |
Docker
A small (~200 MB) multi-stage image that runs as a non-root user and works both ways
an MCP client might use it. Both paths have been verified against BVB's live backend.
The container only needs outbound network access to wapi.bvb.ro / www.bvb.ro; it
needs no credentials or volumes.
docker build -t bvb-mcp .
# stdio: what an MCP client spawns
docker run -i --rm bvb-mcp
# HTTP: a long-running server with the playground at http://127.0.0.1:8000/
docker run --rm -p 127.0.0.1:8000:8000 bvb-mcp --transport http --host 0.0.0.0 --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, because it is unauthenticated (see
Safety).
You can also share the image without a registry: hand someone a file they can
docker load.
docker save bvb-mcp:latest | gzip > bvb-mcp.tar.gz # you: export
docker load < bvb-mcp.tar.gz # them: image is now localConfiguration
All configuration is via environment variables, and all of it is optional: the BVB backend needs no credentials.
Variable | Default | Purpose |
|
| Datafeed base URL |
|
| Market-list site base URL |
| a Chrome-like UA |
|
|
| Language for the datafeed config endpoint |
Requests carry a browser-like User-Agent and Referer: https://www.bvb.ro/, and
a single HTTP 429 is retried once, honouring Retry-After (capped at 30 s). Under
bursty access BVB can briefly answer 401; space out large multi-symbol scans.
Safety
The HTTP transport, including the playground, has no authentication: anyone who can reach the port can call every tool. Keep it bound to
127.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; the order book is published 15 minutes delayed. 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
responses in tests/fixtures/. The playground is tested in-process: it is served
at /, self-contained, and every example names a registered tool.
Project layout:
src/bvb_mcp/
server.py # FastMCP server, CLI flags, playground route
client.py # async httpx layer: headers, 429 retry, error mapping
parse.py # HTML parsers (market lists, indices, fundamentals, order book)
tools/ # one module per domain: candles, symbols, universe, fundamentals, orderbook, diagnostics
web/index.html # the playground: a single-file MCP clientLicense
MIT
Available Tools
9 toolsdatafeed_configARead-only
Get the datafeed configuration: instrument types and resolutions.
Returns symbols_types (each {name, value}, where value is
the one-letter type code: S=Actiuni/shares, B=Obligatiuni/bonds,
R=Drepturi/rights, U=Unitati de fond/fund units, T=Structurate, F=
Futures, I=Indici/indices) and supported_resolutions (the datafeed's
advertised resolution vocabulary).
Note: the config advertises a bare "D" for daily, but the history
endpoint requires "1D" — get_candles handles that translation, so
pass its friendly resolution values rather than these raw codes.
Inputs: no named parameters. Returns: object
financial_summaryARead-only
One-call bundle for a fundamental ("Buffett-style") analysis.
Combines get_fundamentals with a price summary (last close, 52-week high/low, 1-year and ~5-year percent change) derived from daily history, so a caller has every input in a single call. It returns data, not a verdict — the analysis/judgement is left to the caller.
Caveat (see note): the inputs are a current valuation snapshot +
dividend + ownership + price trend. BVB publishes no multi-year
financial statements, so a full 10-year ROE/margin/FCF track record is
not available from this source.
Inputs: ticker (required). Returns: object
get_candlesARead-only
Fetch OHLCV candles for a BVB ticker.
Returns bars oldest-first, each {time, open, high, low, close, volume} where time is an ISO 8601 UTC timestamp and volume is
an integer. An empty list means the datafeed had no data for the window
(not an error).
The window is resolved as: to defaults to now; countback (when
given) fixes the number of bars, otherwise it is derived from the
from_/to span (capped at 5000) or defaults to 300; from_
defaults to to minus countback bars. Daily bars reach back to
the 1990s; intraday resolutions only cover a recent window.
Inputs: ticker (required), to, from_, adjusted, +3 more. Returns: Generic wrapper for non-object return types.
get_fundamentalsARead-only
Company details + valuation snapshot scraped from the detail page.
Returns identity (ticker, name, isin, type, segment, category, status), the "Indicatori bursieri" valuation ratios (market_cap, per, pbv, eps, div_yield, dividend + dividend_year), issue info (shares_outstanding, nominal_value, share_capital, first_trade_date), and the ownership structure (shareholders: name/shares/percent). Amounts are in RON; indicators the page omits come back as null.
Note: BVB does not expose multi-year income/balance/cash-flow statements as structured data, so there is no historical ROE/margin/FCF series here — pair this with get_candles (price history) for trend context.
Inputs: ticker (required). Returns: object
get_symbol_infoARead-only
Resolve one BVB ticker to its symbol metadata.
Returns: ticker, name (short name), description (issuer/full
name), exchange (always "BVB"), type (e.g. "Shares"), session
(trading hours, e.g. "0700-1830"), timezone ("Europe/Bucharest"),
currency_code (e.g. "RON"), sector, industry,
has_intraday (whether intraday bars exist), supported_resolutions,
and pricescale (the datafeed's price scaling factor). Errors if the
ticker does not resolve.
Inputs: ticker (required). Returns: object
list_indicesARead-only
List the BVB index universe (BET, BET-TR, BET-FI, ROTX, …).
Scrapes the indices overview page. Returns up to limit indices, each
{symbol, name, isin}. Every index's symbol is returned; name
and isin are populated only for indices BVB renders a server-side
profile for (others load via client-side tabs) and are otherwise null.
Pass a symbol to get_candles to chart an index.
Inputs: limit. Returns: Generic wrapper for non-object return types.
list_instrumentsARead-only
List the instrument universe for a BVB market.
Scrapes the exchange's market-list page (the datafeed search is capped
and unsuitable for enumeration). Returns up to limit instruments,
each {ticker, isin, name, market} — isin is the 12-character
BVB ISIN (or null if the page omits it), name is the issuer, and
market echoes the normalised market key.
Inputs: limit, market. Returns: Generic wrapper for non-object return types.
search_symbolARead-only
Search the datafeed for symbols matching a query.
Returns up to limit matches, each with symbol, ticker,
full_name, description (includes the ISIN as its trailing
token), isin (extracted from the description for convenience),
exchange, and type (lowercase: "share", "bond", "structured",
…).
Note: the datafeed caps this search at roughly 30 results for broad queries, so it is a lookup aid, not a way to enumerate the full universe — use list_instruments (or list_indices) for that.
Inputs: query (required), limit. Returns: Generic wrapper for non-object return types.
server_timeARead-only
Get BVB's datafeed server time.
Returns unix (server time in unix seconds) and iso (the same
instant as an ISO 8601 UTC timestamp). Useful as a reachability check
and to anchor from_/to windows for get_candles.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct aspect of the BVB datafeed: configuration, symbol lookup, time, search, candles, instrument/indices listing, fundamentals, and a bundled summary. No two tools overlap in purpose.
Eight of nine tools follow a consistent verb_noun pattern (e.g., get_symbol_info, list_instruments). Only financial_summary deviates, but it is still descriptive. Minor inconsistency.
Nine tools cover all core functionalities for a stock exchange datafeed: configuration, symbol info, search, time, candles, instrument/indices listing, fundamentals. Each tool serves a clear and necessary purpose.
The toolset covers basic CRUD for market data: search, list, get candles, get fundamentals. Missing depth like historical financial statements is noted in descriptions as unavailable, so the gap is acknowledged. Minor but acceptable.
Maintenance
Related MCP Connectors
Read-only MCP server for Belarusian securities: tokens, shares, bonds, companies.
Read-only crypto, equities, FX and commodities market data. No trading tools. API key required.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
Read-only MCP server for Sidechair. Your assistant reads your lessons, price bars and watchlist.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceReal-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.-
- AlicenseNot gradedqualityDmaintenanceRead-only MCP server providing access to Belarusian securities data: tokens, shares, bonds, companies, ticker search, and company name or UNP search.MIT
- AlicenseAqualityBmaintenanceRead-only MCP server for Blocksize real-time market data: crypto VWAP, bid/ask, FX, metals and tokenized equities, with pricing, coverage and x402 endpoint lookup. Signed-in users of the Claude, ChatGPT and Cursor connectors get 30,000 free live-data credits every month (1 credit = $0.001); subscriptions from EUR 49/month.71MIT
- AlicenseNot gradedqualityDmaintenanceProvides Brazilian financial market data (stocks, dividends, FIIs, crypto, exchange rates, macro indicators) from B3. Works with any MCP client via HTTP, read-only.MIT