query-ptax-bcb
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"]
}
}
}Maintenance
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
- AlicenseAqualityDmaintenanceEnables 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.9MIT
- AlicenseAqualityDmaintenanceProvides 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.5MIT
- FlicenseNot gradedqualityDmaintenanceProvides 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.
- FlicenseNot gradedqualityBmaintenanceProvides tools to query Brazilian Central Bank public data, including SGS time series and PTAX exchange rates.
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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