Skip to main content
Glama
mastermils

query-ptax-bcb

by mastermils

query-ptax-bcb

一个 MCP(Model Context Protocol)服务器,直接查询 Banco Central do Brasil (BCB) 的开放数据 API,用于获取官方 PTAX 美元汇率:https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/

工具

  • get_ptax_by_date(date) — 特定日期(YYYY-MM-DD)的 PTAX 收盘汇率。

  • get_ptax_by_period(startDate, endDate) — 两个日期之间的收盘汇率序列。

  • get_ptax_latest(lookbackDays?) — 最新可用的收盘汇率(在最近 lookbackDays 天内查找,默认 7 天)。

所有返回的汇率均为官方 PTAX 的 收盘 报价,包含买入价、卖出价和报价时间(巴西利亚时间)。

Related MCP server: Frankfurter MCP

构建

npm install
npm run build

使用 MCP Inspector 测试

npm run inspector

在 Claude Desktop / Claude Code 中配置

在 MCP 配置文件(claude_desktop_config.json 或等效文件)中添加:

{
  "mcpServers": {
    "query-ptax-bcb": {
      "command": "node",
      "args": ["D:/GitHub/master-mils/query-ptax-bcb/dist/index.js"]
    }
  }
}
Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables access to Bank of Mexico (Banxico) economic data including real-time and historical USD/MXN exchange rates, inflation data, interest rates, and other financial indicators. Supports querying current rates, historical data with date ranges, and economic metadata through natural language.
    9
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides access to currency exchange rates and conversion tools using the Frankfurter API, including latest rates, historical data, and time series from sources like the European Central Bank.
    5
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time and historical foreign exchange rates for 31+ currencies, enabling currency conversion, historical rate lookups, and time series analysis using data from the Frankfurter API.
  • F
    license
    Not graded
    quality
    B
    maintenance
    Provides tools to query Brazilian Central Bank public data, including SGS time series and PTAX exchange rates.

View all related MCP servers

Related MCP Connectors

  • Convert currencies, get FX rates, and query historical ECB exchange rate data.

  • Fetch latest and historical currency exchange rates from Frankfurter. Convert amounts between curr…

  • Live & historical FX rates for AI agents, from European Central Bank data. No API keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mastermils/query-ptax-bcb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server