MCP BACEN

MCP BACEN

Provides tools to query Brazilian Central Bank public data, including SGS time series and PTAX exchange rates.

Category
Visit Server

README

MCP BACEN

Servidor MCP remoto para dados publicos do Banco Central do Brasil, nos mesmos moldes do projeto mcp-sidra, preparado para virar um app do ChatGPT com Apps SDK.

Stack

  • Node.js + TypeScript + ESM
  • @modelcontextprotocol/sdk com transporte Streamable HTTP em /mcp
  • @modelcontextprotocol/ext-apps para recurso UI opcional do Apps SDK
  • Zod para schemas de entrada e saida
  • Vitest para testes dos builders de URL e normalizacao

Ferramentas MCP

  • search e fetch: compativeis com o padrao data-only/company knowledge do ChatGPT.
  • list_sgs_series: busca no catalogo local de codigos SGS comuns.
  • get_sgs_series: consulta series temporais do SGS por codigo, com last ou startDate/endDate.
  • list_ptax_currencies: lista moedas disponiveis no endpoint PTAX Moedas.
  • get_ptax_dollar_quotes: consulta cotacoes PTAX do dolar por dia ou periodo.
  • get_ptax_currency_quotes: consulta cotacoes PTAX de outras moedas por dia ou periodo.

Todas as ferramentas sao read-only.

Desenvolvimento

npm install
npm run dev

O MCP fica disponivel em:

http://localhost:8787/mcp

Teste com o MCP Inspector:

npm run inspect

Exemplos de prompts

Liste as series SGS relacionadas a Selic.
Busque os ultimos 5 valores da serie SGS 11.
Qual foi a PTAX de fechamento do dolar em 2026-06-16?
Liste as moedas disponiveis na PTAX e depois consulte EUR em junho de 2026.

ChatGPT App

Para conectar no ChatGPT durante desenvolvimento:

  1. Rode npm run dev.
  2. Exponha a porta com um tunel HTTPS, por exemplo ngrok http 8787.
  3. Em ChatGPT, ative developer mode e crie um app apontando para https://<subdomain>.ngrok.app/mcp.

Para submissao, defina APP_DOMAIN com o dominio HTTPS final do app. O widget e opcional, mas este projeto ja inclui um recurso Apps SDK simples para renderizar resultados tabulares.

Fontes de dados

  • SGS: https://api.bcb.gov.br/dados/serie/bcdata.sgs.{codigo}/dados?formato=json
  • PTAX: https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata
  • Dados abertos BCB: https://dadosabertos.bcb.gov.br

Observacoes:

  • O endpoint SGS ultimos/{N} aceita no maximo 20 valores.
  • Consultas SGS com dataInicial e dataFinal devem ser divididas em janelas de ate 10 anos.
  • PTAX usa sintaxe OData, por exemplo CotacaoDolarDia(dataCotacao=@dataCotacao)?@dataCotacao='06-16-2026'&$format=json.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured