Access real-time Tesouro Direto bond data, market status, and investment analysis tools for Brazil's Treasury Direct pla
Add new capabilities to Claude beyond text generation
Example: Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example: Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example: Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Time estimate: 15-60 minutes depending on server complexity
Prerequisites
Yahoo Finance
Access real-time financial data and market trends with Yahoo Finance tools for in-depth investment research and analysis
Paper Invest
Experience realistic stock trading with Paper Invest, the advanced stock trading simulator for authentic stock market si
Bitcoin SV Wallet
Securely manage your Bitcoin SV Wallet, handle transactions, and interact with NFTs, all with local private key security
Actual Budget
Analyze spending, savings rates, and balances with Actual Budget—an advanced personal money management app for better bu
mcpSovereign SDK
mcpSovereign SDK — a two-sided AI dataset marketplace, AI prompt marketplace and AI tools marketplace where agents buy/s
Tesouro Direto reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Strong directory entry: Tesouro Direto surfaces stars and publisher context so we could sanity-check maintenance before adopting.
We wired Tesouro Direto into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Tesouro Direto has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
According to our notes, Tesouro Direto benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Useful MCP listing: Tesouro Direto is the kind of server we cite when onboarding engineers to host + tool permissions.
We wired Tesouro Direto into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Tesouro Direto is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Strong directory entry: Tesouro Direto surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Tesouro Direto is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
showing 1-10 of 41
Share your MCP server with the developer community
Select a client to integrate this server.
Claude Desktop configuration
{
"mcpServers": {
"tesouro-direto": {
"command": "npx",
"args": [
"-y",
"tesouro-direto-mcp"
],
"env": {
"USE_MCP_CACHE": "true"
}
}
}
}Connects to Brazil's Treasury Direct API to retrieve real-time bond market data, bond details, and search Brazilian government bonds by various criteria.
Tesouro Direto is a community-built MCP server published by atilioa that provides AI assistants with tools and capabilities via the Model Context Protocol. Access real-time Tesouro Direto bond data, market status, and investment analysis tools for Brazil's Treasury Direct pla It is categorized under finance.
You can install Tesouro Direto in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
A Model Context Protocol (MCP) server implementation for integrating with the Tesouro Direto API, enabling natural language access to Brazilian treasury bond data.
Query market data, bond details, and search/filter bonds using everyday language through MCP-compatible clients.
market_data: Retrieve general treasury bond market data (opening/closing times, status)bond_data: Get detailed information about a specific bondsearch_bonds: Search/filter bonds by type, maturity, and other criteriaIn a MCP-compatible client, you can use the following prompts:
To install Tesouro Direto MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @AtilioA/tesouro-direto-mcp --client claude
With npx, add this to your ~/.cursor/mcp.json, or claude_desktop_config.json if you are using its desktop app:
{
"mcpServers": {
"tesouro-direto": {
"command": "npx",
"args": [
"-y",
"tesouro-direto-mcp"
],
"env": {
"USE_MCP_CACHE": "true"
}
}
}
}
# Clone the repository
git clone https://github.com/AtilioA/tesouro-direto-mcp.git
cd tesouro-direto-mcp
# Install dependencies
pnpm install
# Build the project
pnpm run build
You can run the MCP server directly after building:
node dist/index.js
Or use it with any MCP-compatible client (e.g., MCP Inspector):
npx @modelcontextprotocol/inspector dist/index.js
market_dataRetrieve general market data, including opening/closing times and current status.
bond_dataGet detailed information for a specific bond by its code.
search_bondsSearch and filter bonds by type (SELIC, IPCA, PREFIXADO), maturity date, and more.
| Variable | Description | Default |
|---|---|---|
USE_MCP_CACHE | Enable the in-memory cache for API responses | true |
Set these in your environment or in your MCP client configuration.
src/
├── api/ # API client for Tesouro Direto
│ └── tesouroDireto.ts
├── cache/ # Caching implementation
│ └── apiCache.ts
├── resources/ # MCP resources implementation
│ └── index.ts
├── tools/ # MCP tools implementation
│ ├── bondData.ts
│ ├── marketData.ts
│ └── searchBonds.ts
├── types/ # Type definitions
│ └── index.ts
├── utils/ # Utility functions
│ ├── errorHandler.ts
│ └── logger.ts
├── client.ts # Example MCP client
├── index.ts # Entry point
└── server.ts # MCP server implementation
pnpm run build / npm run build: Build the projectpnpm start / npm start: Start the serverpnpm run dev / npm run dev: Start the server in development mode with auto-reloadContributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the GNU Affero General Public License v3.0. See the LICENSE file for details.
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.