Feedback

Tesouro Direto MCP Server

@atilioa Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
AGPL-3.0
Transports
stdio
Author
atilioa
Submitted by
Community
Quality
35
Stars
5

About Tesouro Direto MCP Server

Access real-time Tesouro Direto bond data, market status, and investment analysis tools for Brazil's Treasury Direct platform.

Tesouro Direto is a MCP server in the Finance category listed in the AddMCP.net directory, published by atilioa. Supported transport: stdio. Runtime: TypeScript. License: AGPL-3.0. The repository has 5 GitHub stars. Source code is hosted on github.com. Related topics: community, finance, mcp, mcp-server, tesouro-direto.

Setup

{
    "mcpServers": {
        "tesouro-direto": {
            "command": "npx",
            "args": [
                "-y",
                "tesouro-direto-mcp"
            ],
            "env": {
                "USE_MCP_CACHE": "true"
            }
        }
    }
}

Tesouro Direto MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "tesouro-direto": {
            "command": "npx",
            "args": [
                "-y",
                "tesouro-direto-mcp"
            ],
            "env": {
                "USE_MCP_CACHE": "true"
            }
        }
    }
}

Tesouro Direto MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Tesouro Direto?

A Model Context Protocol (MCP) server that integrates with the Tesouro Direto API, enabling natural language access to Brazilian treasury bond data through MCP-compatible clients.

How to use Tesouro Direto?

Install automatically via Smithery (npx -y @smithery/cli install @AtilioA/tesouro-direto-mcp --client claude) or via npm (npx -y tesouro-direto-mcp). Configure in your MCP client’s JSON file (e.g., ~/.cursor/mcp.json or claude_desktop_config.json) using the command npx -y tesouro-direto-mcp and optionally set USE_MCP_CACHE to "true". You can also build from source with pnpm install && pnpm run build.

Key features of Tesouro Direto

  • Three MCP tools: market_data, bond_data, and search_bonds
  • Smart 10-minute in-memory cache based on API update timestamps
  • Search and filter bonds by type, maturity, or other criteria
  • Retrieve detailed information about a specific bond
  • Get general treasury bond market status (opening/closing times)

Use cases of Tesouro Direto

  • Show all available Tesouro Direto bonds using natural language
  • Get detailed information on a specific bond (e.g., IPCA+ 2029)
  • Search for bonds by type (SELIC, IPCA, PREFIXADO) and maturity date
  • Check current treasury bond market status (opening/closing times)
  • Analyze top bonds with highest yields across different bond types

Frequently asked questions

1 Which MCP-compatible clients can use Tesouro Direto MCP Server?

It works with Claude Desktop (via Smithery), Cursor, and any MCP-compatible client such as MCP Inspector.

2 How does caching work?

A 10-minute in-memory cache reduces API calls while ensuring data freshness. It is enabled by default and controlled by the USE_MCP_CACHE environment variable.

3 What environment variable controls caching?

USE_MCP_CACHE – set it to "true" (or omit, as it defaults to true) to enable the cache.

4 How to build from source?

Clone the repository, run pnpm install to install dependencies, then pnpm run build to compile. The built server can be run with node dist/index.js.

5 What is the license?

Tesouro Direto MCP Server is licensed under the GNU Affero General Public License v3.0.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬