The sequence the tool list implies is the useful one: filter by type and maturity window, then take the code that comes back into bond_data for the detail. market_data is the sanity check around both, since opening and closing times decide whether the numbers you are reading are current. Nothing here writes, so this is a source to quote from rather than a place anything can be changed.
A read-only feed of Tesouro Direto market and bond data, in 3 tools.
- search_bonds narrows the list by type — ANY, SELIC, IPCA or PREFIXADO — and by a maturity window set with maturityAfter and maturityBefore.
- bond_data returns the detailed record for one bond, addressed by its code.
- market_data returns general market data including opening and closing times and the current status.
One environment variable, USE_MCP_CACHE, and no account or key. The AGPL-3.0 license carries into whatever you distribute on top of it.
One command — npx -y tesouro-direto-mcp
