brasil-planos-saude-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@brasil-planos-saude-mcp Compare Unimed and Bradesco Saúde on complaints and IDSS quality score."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
brasil-planos-saude-mcp
MCP server that helps answer "is this health plan any good?" in Brazil. Claude (or any MCP client) can look up a health-plan operator (operadora de plano de saúde) and see what the regulator, ANS, publishes about it: complaints, quality score, access-to-care monitoring, fines and readjustments. It can compare operators side by side and rank them.
Read-only, no key, no account. Everything comes from the ANS open-data portal. Not affiliated with ANS or any operator.
Operators, not plans or prices. ANS publishes these indicators per operator. A single operator sells many plans with different networks; check the network and the price with the operator or a broker.
Not legal advice. For a denied or delayed procedure, use
where_to_complain(Disque ANS 0800 701 9656). In an emergency, get care first.
Tools
operator_profile
Everything about one operator: registration and status (active, or cancelled with date and reason), beneficiaries and size class, the complaints index with its position among operators of the same size, five years of IDSS, the access-to-care band, fines, and the small-group readjustment.
Parameters: operator (name or part of it, CNPJ, or ANS registry number), coverage (medica or odonto). A shared brand such as "Unimed" (hundreds of separate cooperatives) returns the largest matches and asks for a more specific name.
compare_operators
Two to eight operators side by side: 12-month complaints index against the median of their size class, latest IDSS, latest access-to-care band, fines in the last five years, latest small-group readjustment.
Parameters: operators (list), coverage.
rank_operators
Active operators ranked by complaints (by="reclamacoes", lower is better) or quality (by="qualidade", latest IDSS, higher is better).
Parameters: by, coverage, porte (pequeno, medio, grande), uf, modality, min_beneficiaries (default 5000), worst_first, limit.
find_operators
Search by name, CNPJ or registry number, or list by head-office state, city or modality (cooperativa médica, medicina de grupo, seguradora, autogestão, odontologia de grupo, filantropia). Largest first.
where_to_complain
The official ANS channels, checked on the ANS consumer-service page, and how a complaint (NIP) works.
Related MCP server: Consulta de Multas
What the numbers mean
Indicator | What it is | Better | Updated |
IGR (Índice Geral de Reclamações) | Complaints to ANS per 100,000 beneficiaries in a month (2023 method). ANS compares operators of the same size: small < 20k, medium 20k-100k, large > 100k beneficiaries. The server also gives a 12-month average, which is steadier. | lower | monthly |
IDSS (Índice de Desempenho da Saúde Suplementar) | ANS's yearly 0-1 score, with four dimensions: quality of care (IDQS), access (IDGA), market sustainability (IDSM), processes and regulation (IDGR). | higher | yearly |
Garantia de atendimento | Quarterly band for denied or delayed coverage: 0 no upheld complaints, 1 below the median, 3 more than 50% above the median. Band 3 again and again leads ANS to suspend sales of plans. | lower | quarterly, when ANS publishes |
Penalidades | Fines ANS applied, by year and status, including fines under appeal, suspended or archived. Not what was paid. | fewer, relative to size | when ANS publishes |
Reajuste do agrupamento | The readjustment the operator applied to its pool of collective contracts with fewer than 30 lives. Individual/family plans follow a cap set by ANS instead. | yearly |
Every result says which month, quarter or year each figure belongs to, and links the file it came from.
Data and cache
The first call downloads seven ANS files (about 65 MB) and keeps a compact copy (about 1 MB) in your user cache folder. After 24 hours the server asks ANS whether a file changed and downloads it again only if it did. If ANS is down, it uses the cached copy and says so. To fill the cache in advance:
brasil-planos-saude-mcp --refreshSet BRASIL_PLANOS_SAUDE_CACHE_DIR to use another folder.
The operator registry file also has the operator's contact e-mail and the name of its legal representative. This server leaves both out.
Install
Quickest (needs uv): no clone needed, it runs straight from PyPI.
claude mcp add brasil-planos-saude -- uvx brasil-planos-saude-mcpFor Claude Desktop, use "command": "uvx", "args": ["brasil-planos-saude-mcp"].
From source:
Requires Python 3.10+.
git clone https://github.com/ThiagoJacobLannes/brasil-planos-saude-mcp
cd brasil-planos-saude-mcp
python -m pip install -e .On Windows, if you keep code in a cloud-synced folder (Google Drive, OneDrive), create the virtual environment outside it. Sync clients drop desktop.ini files into folders, which can crash packages on startup.
Add to Claude Code
claude mcp add brasil-planos-saude -- python -m brasil_planos_saude_mcp.serverAdd to Claude Desktop
Merge claude_desktop_config.snippet.json into your Claude Desktop claude_desktop_config.json, then restart Claude Desktop:
{
"mcpServers": {
"brasil-planos-saude": {
"command": "python",
"args": ["-m", "brasil_planos_saude_mcp.server"]
}
}
}Example questions
"Is Hapvida any good? How does it do on complaints?"
"Compare Amil, Bradesco Saúde, SulAmérica and Porto Seguro."
"Which large health plans get the fewest complaints?"
"Best-rated dental plans."
"Has Unimed Campinas been fined by ANS?"
"My plan denied a procedure. Where do I complain?"
License
MIT
Available Tools
5 toolscompare_operatorsA
Side-by-side comparison of 2 to 8 health-plan operators on the ANS indicators.
Use for "Amil or Bradesco Saúde?", "compare the plans my company offers". For each operator: 12-month complaints index (IGR) with the median of its size class and its position, latest IDSS, latest access-to-care band, number of fines in the last 5 years, and the latest small-group readjustment.
Args: operators: Names, CNPJs or ANS registry numbers, e.g. ["Amil", "Bradesco Saúde", "SulAmérica"]. coverage: "medica" (default) or "odonto".
Inputs: operators (required), coverage. Returns: object
find_operatorsA
Find Brazilian health-plan operators (operadoras de planos de saúde) registered with ANS.
Use it to turn a brand the user mentions ("Unimed BH", "Amil", "Bradesco Saúde") into the ANS registry number, or to list operators by state, city or type. Largest first.
Args: query: Part of the name, the CNPJ, or the ANS registry number. Accents and case don't matter. Several words must all match ("unimed campinas"). uf: State of the operator's head office, e.g. "SP", "MG". city: City of the head office, e.g. "Belo Horizonte". modality: e.g. "Cooperativa Médica", "Medicina de Grupo", "Seguradora", "Autogestão", "Odontologia de Grupo", "Filantropia", "Administradora de Benefícios" (substring match). include_cancelled: Also list operators whose registration was cancelled. limit: How many to return (default 10, max 50).
Each operator: registro_ans, name, legal name, modality, head office, status, and beneficiaries and size class (porte) per coverage. Head office is not where the operator sells plans.
Inputs: uf, city, limit, query, +2 more. Returns: object
operator_profileA
Everything ANS publishes about one health-plan operator, to judge whether it is a good choice.
Use for "is Hapvida good?", "how does Unimed Campinas rank on complaints?", "has SulAmérica been fined?". Returns:
registration: legal name, CNPJ, modality, head office, phone, status (active or cancelled, with date and reason), beneficiaries and size class;
complaints (IGR): latest month, 12-month average, the median of operators of the same size, the operator's position among them, and the monthly series;
quality (IDSS, 0-1, higher is better) for the last 5 years with its four dimensions;
access-to-care monitoring band (0 best, 3 worst) for the last published quarters;
fines applied by ANS: totals, last 5 years, status and the most recent cases;
the readjustment applied to its small-group pool (contracts with < 30 lives).
Args: operator: Name (or part of it), CNPJ, or ANS registry number. If the name matches several operators, the largest active one is used and the others are listed in outras_operadoras_com_nome_parecido: check it is the one the user meant (Unimed, for example, is hundreds of separate cooperatives). coverage: "medica" or "odonto". Default: every coverage the operator has.
Always quote the month/year of each figure and explain that IGR is lower-is-better and IDSS higher-is-better (see como_ler in the result).
Inputs: operator (required), coverage. Returns: object
rank_operatorsA
Rank active health-plan operators by complaints or by quality.
Use for "which large health plans get the fewest complaints?", "best-rated dental plans", "worst operators in Minas Gerais".
Args: by: "reclamacoes" (12-month IGR, lower is better) or "qualidade" (latest IDSS, higher is better). coverage: "medica" (default) or "odonto". porte: "pequeno" (< 20k beneficiaries), "medio" (20k-100k) or "grande" (> 100k). ANS itself only compares operators of the same size. uf: Head-office state, e.g. "MG". Not the same as where it sells plans. modality: e.g. "Cooperativa Médica", "Medicina de Grupo", "Seguradora". min_beneficiaries: Skip operators smaller than this (default 5000; tiny ones swing wildly). worst_first: True to list the worst first. limit: How many to return (default 10, max 50).
Inputs: by, uf, limit, porte, +4 more. Returns: object
where_to_complainA
How to complain about a health plan in Brazil: the official ANS channels and the steps.
Use when a user's plan denied or delayed a procedure, or they have a contract problem. Each channel was checked on the ANS consumer-service page (conferido_em).
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct task: single-operator deep lookup, operator discovery/search, multi-operator comparison, ranked lists, and complaint-channel guidance. The boundaries are reinforced by clear use-case examples in the descriptions, so an agent can reliably choose the right tool. There is minor overlap between find/compare/rank because all involve operators, but their purposes and outputs are sharply differentiated.
Most names follow a clear verb_noun or action pattern: find_operators, compare_operators, rank_operators. operator_profile is noun-based and where_to_complain is a phrase, which are minor deviations but still readable and intuitive. The overall set is consistent enough to predict tool behavior.
Five tools is well-scoped for a focused domain of Brazilian health-plan operator data and consumer guidance. Each tool earns its place: search, profile, comparison, ranking, and complaint routing. There is no obvious redundancy or missing major workflow.
The surface covers discovery, detailed profile retrieval, comparison, ranking, and complaint guidance, which addresses the core informational needs of the domain. Minor gaps might include a dedicated tool for plan/product-level details or direct access to underlying time-series data, but these are workable through operator_profile. The read-only nature of the server makes CRUD lifecycle coverage less relevant.
Maintenance
Related MCP Connectors
Ferramentas para validar documentos TISS e consultar TUSS, operadoras e dados da ANS.
Brazilian company and person data by CNPJ/CPF: registry, partners, tax status, sanctions, lawsuits.
Free Brazilian CNPJ lookup (legal name, status, partners) + lawsuit discovery. Public data, no login
Open-source alternative to Jusbrasil for AI: find lawsuits by name, CPF, CNPJ or case number and bui
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides government transparency indicators for Brazilian individuals (CPF/NIS) via the Portal da Transparência, enabling read-only queries through natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to query public Brazilian vehicle and traffic data from official sources, including vehicle debts (IPVA, licensing, open fines), federal infractions by plate/RENAVAM, vehicles registered to an owner, and driver's license status.MIT
- AlicenseAqualityBmaintenanceEnables querying Anvisa's open data for drug registration status and recent medical devices, with heuristic AI-use classification using a locally hosted LLM.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables natural-language querying of Brazilian public health indicators from DataSUS microdata — mortality, dengue, hospitalizations, ICSAP, and births — through 41 tools covering consultation, analysis (peer-stratum comparison, dengue endemic channel, weekly bulletin), reliability warnings, and anomaly detection. It runs locally against the public API with anti-hallucination rules so every figure comes from a tool with its source cited.MIT