tesouro-direto-mcp MCP Server

A Model Context Protocol (MCP) server implementation for integrating with the Tesouro Direto API, enabling natural language access to Brazilian treasury bond data.

Local serverstdioAGPL-3.0-only

What is the tesouro-direto-mcp Server?

tesouro-direto-mcp is an MCP project maintained in the atilioa/tesouro-direto-mcp repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server implementation for integrating with the Tesouro Direto API, enabling natural language access to Brazilian treasury bond data”. Read the project documentation for the complete scope.

Installation

The documented npm package is tesouro-direto-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares USE_MCP_CACHE. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
market_data
bond_data
search_bonds

How to install the tesouro-direto-mcp Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
USE_MCP_CACHEDeclared in the maintainer’s client configuration.Check documentation