big-mcp-b3

big-mcp-b3

MCP server for B3 (Brazilian stock exchange) data, offering tools for real-time quotes, historical prices, dividends, FIIs, fundamental analysis, options, and indices via natural language.

Category
Visit Server

README

🇧🇷 big-mcp-b3

MCP Server completo para dados da B3 — cotações, FIIs, proventos, fundamentos, opções e índices.

npm version License: MIT MCP Compatible

✨ Features

  • 10 tools para dados do mercado financeiro brasileiro
  • Sem chave de API obrigatĂłria — funciona imediatamente com brapi.dev (gratuita)
  • TypeScript moderno — tipagem forte, async/await
  • Zero dependĂŞncias pesadas — apenas MCP SDK + Zod
  • CompatĂ­vel com Claude Desktop, Cursor, VS Code, Hermes

🛠️ Tools Disponíveis

Tool Descrição API
cotacao_ativo Cotação em tempo real brapi.dev
historico_ativo Histórico de preços brapi.dev
proventos_ativo Dividendos, JCP, bonificações brapi.dev
fiis_lista Lista de fundos imobiliários CVM + brapi.dev
fii_detalhes Detalhes de um FII especĂ­fico brapi.dev
fundamentus_ativo Fundamentalismo (P/L, ROE, margens) fundamentus.com.br
indices_b3 Ibovespa, IFIX, IDIV, SMLL, etc. brapi.dev
opcoes_ativo Cadeia de opções (calls e puts) brapi.dev
comparar_ativos Compara mĂşltiplos ativos lado a lado brapi.dev

🚀 Quick Start

Claude Desktop

Adicione ao claude_desktop_config.json:

{
  "mcpServers": {
    "big-mcp-b3": {
      "command": "npx",
      "args": ["-y", "big-mcp-b3"],
      "env": {
        "BRAPI_TOKEN": "seu-token-aqui"
      }
    }
  }
}

Cursor

Adicione ao .cursor/mcp.json:

{
  "servers": {
    "big-mcp-b3": {
      "command": "npx",
      "args": ["-y", "big-mcp-b3"],
      "env": {
        "BRAPI_TOKEN": "seu-token-aqui"
      }
    }
  }
}

VS Code

Crie .vscode/mcp.json:

{
  "servers": {
    "big-mcp-b3": {
      "command": "npx",
      "args": ["-y", "big-mcp-b3"],
      "env": {
        "BRAPI_TOKEN": "seu-token-aqui"
      }
    }
  }
}

Hermes

hermes mcp add big-mcp-b3 -- npx -y big-mcp-b3

Desenvolvimento Local

# Clone o repositĂłrio
git clone https://github.com/danielvm-git/big-mcp-b3.git
cd big-mcp-b3

# Instale dependĂŞncias
npm install

# Execute em modo desenvolvimento
npm run dev

# Build para produção
npm run build

đź“– Exemplos de Uso

Após configurar o MCP server, faça perguntas em linguagem natural:

Cotação: "Qual a cotação atual de PETR4?"

HistĂłrico: "Mostre o histĂłrico de VALE3 nos Ăşltimos 3 meses"

Proventos: "Quais foram os dividendos pagos por TAEE11?"

FIIs: "Liste os FIIs de shoppings"

Índices: "Como está o Ibovespa hoje?"

Opções: "Quais são as opções de PETR4 com vencimento em 2026?"

Comparação: "Compare PETR4 com VALE3 e ITUB4"

⚙️ Configuração

Variáveis de Ambiente

Variável Obrigatória Descrição
BRAPI_TOKEN NĂŁo Token da brapi.dev (gratuito, 100 req/dia)
REQUEST_TIMEOUT Não Timeout das requisições em ms (padrão: 30000)
MAX_RETRIES Não Número máximo de retentativas (padrão: 3)

Obtendo Token da brapi.dev

  1. Acesse brapi.dev
  2. Crie uma conta gratuita
  3. Copie seu token do dashboard
  4. Adicione ao .env ou na configuração do MCP

Nota: O server funciona sem token (com limite de requisições).

📊 Dados Disponíveis

Ações

  • Cotação em tempo real
  • HistĂłrico de preços (1d a 10y)
  • Dividendos e JCP
  • Opções (calls e puts)

Fundos Imobiliários

  • Lista completa via CVM
  • Cotação e variação
  • Proventos pagos

ĂŤndices

  • Ibovespa (^BVSP)
  • IFIX (^IFIX)
  • IDIV (^IDIV)
  • SMLL (^SMLL)
  • E mais...

đź”§ Desenvolvimento

Estrutura do Projeto

big-mcp-b3/
├── src/
│   ├── index.ts          # Entry point
│   ├── types/            # Definições de tipos
│   ├── services/         # Serviços de API
│   │   ├── brapi.ts      # brapi.dev
│   │   └── cvm.ts        # CVM dados abertos
│   └── tools/            # Tools MCP
│       ├── cotacao.ts    # Cotação
│       ├── historico.ts  # Histórico
│       ├── proventos.ts  # Proventos
│       ├── fiis.ts       # FIIs
│       ├── fundamentus.ts# Fundamentos
│       ├── indices.ts    # Índices
│       ├── opcoes.ts     # Opções
│       └── comparar.ts   # Comparação
├── tests/
├── docs/
├── package.json
├── tsconfig.json
└── README.md

Comandos

npm run dev      # Executa em modo desenvolvimento
npm run build    # Compila TypeScript
npm run start    # Executa versĂŁo compilada
npm test         # Executa testes

📝 Licença

MIT — veja LICENSE para detalhes.

🤝 Contribuindo

Contribuições são bem-vindas! Veja CONTRIBUTING.md para diretrizes.

đź“§ Contato


Feito com ❤️ para investidores brasileiros

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