Labsco
MCP SERVER

Tesouro Direto MCP Server

by AtilioA

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.

Equity & Fund Market DataVerified
Summary
Treasury-bond questions get answered from the day's actual figures instead of a half-remembered rate.

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.

What it is

A read-only feed of Tesouro Direto market and bond data, in 3 tools.

What you get
  • 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.
Requirements

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.

Setup effort

One command — npx -y tesouro-direto-mcp