bradesco-rede-mcp
MCP server for real-time querying of the Bradesco Saude referenced network, exposing a search_providers tool to search for doctors, hospitals, clinics, and labs.
README
bradesco-rede-mcp
MCP server para consulta em tempo real a rede referenciada do Bradesco Saude. Expoe uma ferramenta search_providers que agentes LLM podem chamar para buscar medicos, hospitais, clinicas e laboratorios.
Instalacao
npm install -g bradesco-rede-mcp
Requer Node 20+. Sem necessidade de browser ou Playwright — o servidor faz chamadas HTTP diretas a API do Bradesco.
Configuracao no cliente MCP
Claude Desktop
Adicione ao claude_desktop_config.json:
{
"mcpServers": {
"bradesco-rede": {
"command": "node",
"args": ["/caminho/absoluto/bradesco-rede-mcp/dist/index.js"],
"env": {
"LOG_LEVEL": "info"
}
}
}
}
opencode
Adicione ao opencode.json na secao mcp, mesmo padrao: command + args + env.
Caminho absoluto e obrigatorio.
Variaveis de ambiente
Todas tem defaults. Configurar e otimizacao, nao pre-requisito.
| Variavel | Default | Descricao |
|---|---|---|
CACHE_TTL_MS |
600000 (10 min) | TTL de cache |
CACHE_MAX_ENTRIES |
100 | Tamanho maximo do LRU |
TIMEOUT_SEARCH_TOTAL_MS |
60000 (60s) | Timeout por requisicao a API (evita chamadas penduradas) |
LOG_LEVEL |
info | debug, info, warn, error |
MAX_RESULTS |
50 | Limite maximo por chamada |
BRADESCO_URL |
URL oficial | Override da URL alvo |
Testes
npm test # unit + integracao
RUN_LIVE_TESTS=true npm run test:live # live (real API, lento)
Limitacoes
- Uma busca por vez (sem concorrencia). Para v1, inflight=1 + cache em memoria e a unica protecao contra excesso de requisicoes (nao ha delay minimo entre buscas).
- Cache em memoria apenas (volatil ao reiniciar).
- Coordenadas aproximadas (capitais estaduais) — distancias podem ser imprecisas.
- Token de autenticacao renovado automaticamente.
- O filtro
planoe aceito mas nao aplicado em v1 (wiring exige lookup de codigoRede, fora do escopo). - O filtro
tipoe aplicado client-side apos a busca (a API nao suporta filtro direto por tipo). - Busca por localizacao apenas (so
estado/cidade) nao e suportada — informenome(>= 3 chars) ouespecialidade.
Troubleshooting
| Erro | Causa | Solucao |
|---|---|---|
SITE_UNREACHABLE |
API fora do ar ou sem rede | Verificar conexao e tentar novamente |
SEARCH_TIMEOUT |
Requisicao a API excedeu TIMEOUT_SEARCH_TOTAL_MS |
Tentar novamente; se persistir, aumentar o timeout |
VALIDATION_ERROR |
Filtros insuficientes, UF invalida ou busca por localizacao apenas | Informar nome (>= 3 chars) ou especialidade junto com a localizacao |
SCRAPER_CRASH |
Erro inesperado | Verificar logs com LOG_LEVEL=debug |
Aviso legal
Esta ferramenta automatiza consultas a API publica de rede referenciada do Bradesco Saude para uso pessoal. Nao e afiliada ao Bradesco. O usuario e responsavel por cumprir os Termos de Uso do site alvo. Os dados retornados sao cacheados em memoria por curto periodo e nao sao persistidos ou redistribuidos.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.