Python · PyPI MCP Server

tesourodireto-mcp

An MCP server for Brazilian government bonds (Tesouro Direto): historical prices and yields, current rates, per-maturity statistics and the ANBIMA yield curve. It is the Python counterpart of the R package GetTDData.

Monthly downloads

139

PyPI downloads in the last 30 days.

All-time downloads

139

Cumulative downloads tracked from PyPI.

GitHub stars

★ 4

1 forks.

Last GitHub push

2026-11-10

Stats updated 2026-11-15

Install

Quickstart

# Run directly with uvx (recommended for MCP clients)
uvx tesourodireto-mcp

# Or install from PyPI
pip install tesourodireto-mcp

MCP Client Configuration

Add this entry to your claude_desktop_config.json or .cursor/mcp.json (or see the MCP Servers Hub for all three servers together):

{
  "mcpServers": {
    "tesourodireto": {
      "command": "uvx",
      "args": [
        "tesourodireto-mcp"
      ]
    }
  }
}

What AI Agents Can Query

Example Prompts

Companion & Counterpart Software

Related Datasets

Related Publications

Cite this package

@manual{perlin_tesourodireto_mcp,
  author = {Perlin, Marcelo S.},
  title = {tesourodireto-mcp: An MCP server for Brazilian government bonds (Tesouro Direto): historical prices and yields, current rates, per-maturity statistics and the ANBIMA yield curve. It is the Python counterpart of the R package GetTDData.},
  year = {2026},
  note = {Python Model Context Protocol (MCP) server},
  url = {https://github.com/msperlin/tesourodireto-mcp}
}