Model Context Protocol (MCP) server for Tesouro Direto API integration
Tesouro Direto MCP MCP server exists for a simple reason — assistants are far more useful when they can act on Tesouro Direto MCP directly instead of describing what you should do. Model Context Protocol (MCP) server for Tesouro Direto API integration.
A Model Context Protocol (MCP) server implementation for integrating with the Tesouro Direto API, enabling natural language access to Brazilian treasury bond data.
Installation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Once Tesouro Direto MCP is connected, these are the calls the assistant has available:
market_data — Retrieve general market data, including opening/closing times and current statusbond_data — The bond_data tool exposed by this serversearch_bonds — Search and filter bonds by type (SELIC, IPCA, PREFIXADO), maturity date, and moreYou will need one environment variable: USE_MCP_CACHE. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Among the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Tesouro Direto MCP's toolset — market_data, bond_data, search_bonds — is a fair guide to whether it matches your workflow. It is maintained by AtilioA; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| market_data | Retrieve general market data, including opening/closing times and current status. |
| bond_data | The bond_data tool exposed by this server. |
| search_bonds | Search and filter bonds by type (SELIC, IPCA, PREFIXADO), maturity date, and more. |
{
"mcpServers": {
"tesouro-direto": {
"command": "npx",
"args": ["-y", "@smithery/cli"],
"env": {
"USE_MCP_CACHE": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| USE_MCP_CACHE | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.