bond_data
Retrieves detailed data for a specific bond from Tesouro Direto
Look up Tesouro Direto bonds by type or maturity window, pull one bond's detail by code, and check whether the market is open before quoting anything.
LABSCO SUMMARY
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.
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
USE CASES
Filter by bond type and the maturity window that matches the goal, then take the code that comes back into the detailed record.
Read the market status and its opening and closing times before treating any figure as current.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
bond_dataRetrieves detailed data for a specific bond from Tesouro Direto
market_dataRetrieves general market data from Tesouro Direto, including opening/closing times and status
search_bondsSearch for bonds by type (ANY,SELIC, IPCA, PREFIXADO) or maturity date range
BEFORE YOU INSTALL
3 tools when we connected.
CONTEXT COST
Rated by the size of the 3 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"tesouro-direto": {
"command": "npx",
"args": [
"-y",
"tesouro-direto-mcp"
],
"env": {
"USE_MCP_CACHE": "true"
}
}
}
}npx -y tesouro-direto-mcp