terminologia

health.voaPublished by voa.healthv0.1.1Updated Oct 29, 2026

Cliente MCP para consultar terminologias de saúde da Voa.

VerifiedSTDIODesktop onlyKnowledge & MemoryData & Analytics

Overview

AI-generated overview

Local MCP client for querying Voa's Brazilian health terminologies (CID-10, TUSS, SIGTAP, LOINC and more) over FHIR.

What you can do
  • Search concepts in a terminology system by free text, with an optional result limit
  • Look up a single code and validate whether it exists in the published version
  • Translate a code from one system to another and list the available systems
  • Query the 59 TISS domain tables and other code systems such as CID-10, CIAP-2, TUSS, SIGTAP, CNES, ANVISA, CBO, LOINC and UCUM
When to use it
Useful when an assistant needs to resolve, check or cross-map Brazilian health codes — diagnoses, procedures, materials, establishments or billing tables — during clinical, billing or integration work, instead of relying on an offline table.
Requirements
Runs locally as a Python package via uvx (terminologia[mcp]); needs a Voa organization product key in TERMINOLOGIA_KEY with the terminology:read scope, and network access to the Voa FHIR endpoint. TERMINOLOGIA_URL can point to a different base URL. Proxy variables must be set before the package is imported.
Before you install
The product key is a secret sent to Voa's service; keep it out of shared configs. Usage is subject to the organization's quota, and errors are raised for invalid keys, denied access, exceeded quota, network or server failures. Queries go to a third-party endpoint, so avoid sending patient-identifying data. Attribution rules apply to CIAP-2 and LOINC output.

Installation

In SourceWeft

  1. Open terminologia in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

[Voa Health]

[CI] [PyPI] [Python] [Licença] [MCP]

Documentação · tiss

terminologia

Cliente Python e ferramentas MCP para consultar CID-10, CIAP-2, TUSS, TISS, SIGTAP, CNES, ANVISA, CBO, LOINC, UCUM e outros sistemas de terminologia em FHIR.

Início rápido

sh
pip install terminologia

Crie uma chave de produto da organização em https://tiss-api.voa.health/org e configure:

sh
export TERMINOLOGIA_KEY=sk_voa_...

Chaves sk_tiss_ existentes também podem ser usadas quando possuem o escopo terminology:read.

O endpoint padrão é https://terminologia.voa.health/api/v1/fhir. O argumento base_url do cliente tem precedência; sem ele, defina TERMINOLOGIA_URL para usar outro endpoint.

O cliente segue redirects apenas na mesma origem (esquema, host e porta). Qualquer mudança gera TerminologiaError antes do envio da requisição redirecionada.

O transporte usa um opener próprio criado ao importar o pacote. Defina HTTP_PROXY, HTTPS_PROXY e NO_PROXY antes do import; openers globais de urllib.request.install_opener() não são usados.

python
import terminologia
resultado = terminologia.cid10.buscar("dor torácica")for conceito in resultado:    print(conceito.coding())
consulta = terminologia.tuss.lookup("10101012")if consulta:    print(consulta.display)
for estabelecimento in terminologia.sistema("cnes").buscar("hospital das clínicas", n=5):    print(estabelecimento.code, estabelecimento.display)

CLI

ComandoUso
terminologia buscar <sistema> <texto> [-n N]Buscar conceitos
terminologia lookup <sistema> <código>Consultar um código
terminologia validar <sistema> <código>Validar um código
terminologia traduzir <sistema> <código> --para SISTEMATraduzir um código
terminologia sistemasListar os sistemas
terminologia mcpIniciar o servidor MCP local

Use --json nos comandos, exceto mcp, para receber JSON. O código de saída é 0 para sucesso, 1 quando não há resultado ou o código é inválido e 2 para erros de uso, chave, acesso, cota, rede ou servidor.

Conectar agentes

Claude Code:

sh
claude mcp add terminologia -e TERMINOLOGIA_KEY=sk_voa_... -- \  uvx --from "terminologia[mcp]" terminologia mcp

Codex (~/.codex/config.toml):

toml
[mcp_servers.terminologia]command = "uvx"args = ["--from", "terminologia[mcp]", "terminologia", "mcp"]
[mcp_servers.terminologia.env]TERMINOLOGIA_KEY = "sk_voa_..."

Cursor (mcp.json):

json
{  "mcpServers": {    "terminologia": {      "command": "uvx",      "args": ["--from", "terminologia[mcp]", "terminologia", "mcp"],      "env": {        "TERMINOLOGIA_KEY": "sk_voa_..."      }    }  }}

Sistemas

NomeCanônico
cid10http://hl7.org/fhir/sid/icd-10
ciap2http://hl7.org/fhir/sid/icpc-2
tusshttps://voa.health/fhir/CodeSystem/tuss
tuss-diariashttps://voa.health/fhir/CodeSystem/tuss-diarias-taxas-gases-medicinais
tuss-materiaishttps://voa.health/fhir/CodeSystem/tuss-materiais-opme
tuss-medicamentoshttps://voa.health/fhir/CodeSystem/tuss-medicamentos
sigtaphttps://voa.health/fhir/CodeSystem/sigtap
sigtap-grupohttps://voa.health/fhir/CodeSystem/sigtap-grupo
sigtap-sub-grupohttps://voa.health/fhir/CodeSystem/sigtap-sub-grupo
sigtap-servicohttps://voa.health/fhir/CodeSystem/sigtap-servico
sigtap-registrohttps://voa.health/fhir/CodeSystem/sigtap-registro
sigtap-financiamentohttps://voa.health/fhir/CodeSystem/sigtap-financiamento
sigtap-modalidadehttps://voa.health/fhir/CodeSystem/sigtap-modalidade
anvisaurn:voa:anvisa:registro
cbohttps://voa.health/fhir/CodeSystem/cbo
cfm-especialidadehttps://voa.health/fhir/CodeSystem/cfm-especialidade
rol-anshttps://voa.health/fhir/CodeSystem/rol-ans
duthttps://voa.health/fhir/CodeSystem/rol-diretrizes-dut
cnesurn:voa:br:cnes
ans-operadoraurn:voa:br:ans-registro
loinchttp://loinc.org
ucumhttp://unitsofmeasure.org
voa-categoriahttps://voa.health/fhir/CodeSystem/voa-categoria-servico
Tabelas de domínio TISS (59)

Também acessíveis por terminologia.tiss_dominio(<número>).

NomeCanônico
tiss-23https://voa.health/fhir/CodeSystem/tiss-carater-atendimento
tiss-25https://voa.health/fhir/CodeSystem/tiss-codigo-despesa
tiss-26https://voa.health/fhir/CodeSystem/tiss-conselho-profissional
tiss-27https://voa.health/fhir/CodeSystem/tiss-debitos-creditos
tiss-28https://voa.health/fhir/CodeSystem/tiss-dentes
tiss-29https://voa.health/fhir/CodeSystem/tiss-diagnostico-imagem
tiss-30https://voa.health/fhir/CodeSystem/tiss-escala-capacidade-funcional
tiss-31https://voa.health/fhir/CodeSystem/tiss-estadiamento-tumor
tiss-32https://voa.health/fhir/CodeSystem/tiss-faces-dente
tiss-33https://voa.health/fhir/CodeSystem/tiss-finalidade-tratamento
tiss-34https://voa.health/fhir/CodeSystem/tiss-forma-pagamento
tiss-35https://voa.health/fhir/CodeSystem/tiss-grau-participacao
tiss-36https://voa.health/fhir/CodeSystem/tiss-indicador-acidente
tiss-37https://voa.health/fhir/CodeSystem/tiss-indicador-debito-credito
tiss-38https://voa.health/fhir/CodeSystem/tiss-mensagens
tiss-39https://voa.health/fhir/CodeSystem/tiss-motivo-encerramento
tiss-40https://voa.health/fhir/CodeSystem/tiss-origem-guia
tiss-41https://voa.health/fhir/CodeSystem/tiss-regime-internacao
tiss-42https://voa.health/fhir/CodeSystem/tiss-regioes-boca
tiss-43https://voa.health/fhir/CodeSystem/tiss-sexo
tiss-44https://voa.health/fhir/CodeSystem/tiss-situacao-inicial-dente
tiss-45https://voa.health/fhir/CodeSystem/tiss-status-solicitacao
tiss-46https://voa.health/fhir/CodeSystem/tiss-status-cancelamento
tiss-47https://voa.health/fhir/CodeSystem/tiss-status-protocolo
tiss-48https://voa.health/fhir/CodeSystem/tiss-tecnica-utilizada
tiss-49https://voa.health/fhir/CodeSystem/tiss-tipo-acomodacao
tiss-50https://voa.health/fhir/CodeSystem/tiss-tipo-atendimento
tiss-51https://voa.health/fhir/CodeSystem/tiss-tipo-atendimento-odontologia
tiss-52https://voa.health/fhir/CodeSystem/tiss-tipo-consulta
tiss-53https://voa.health/fhir/CodeSystem/tiss-tipo-demonstrativo
tiss-54https://voa.health/fhir/CodeSystem/tiss-tipo-guia
tiss-55https://voa.health/fhir/CodeSystem/tiss-tipo-faturamento
tiss-56https://voa.health/fhir/CodeSystem/tiss-natureza-guia
tiss-57https://voa.health/fhir/CodeSystem/tiss-tipo-internacao
tiss-58https://voa.health/fhir/CodeSystem/tiss-tipo-quimioterapia
tiss-59https://voa.health/fhir/CodeSystem/tiss-unidade-federacao
tiss-60https://voa.health/fhir/CodeSystem/tiss-unidade-medida
tiss-61https://voa.health/fhir/CodeSystem/tiss-via-acesso
tiss-62https://voa.health/fhir/CodeSystem/tiss-via-administracao
tiss-63https://voa.health/fhir/CodeSystem/tiss-grupos-procedimentos-ans
tiss-65https://voa.health/fhir/CodeSystem/tiss-metastases
tiss-66https://voa.health/fhir/CodeSystem/tiss-nodulo
tiss-67https://voa.health/fhir/CodeSystem/tiss-tumor
tiss-68https://voa.health/fhir/CodeSystem/tiss-categoria-despesa
tiss-69https://voa.health/fhir/CodeSystem/tiss-versao-componente-comunicacao
tiss-70https://voa.health/fhir/CodeSystem/tiss-forma-envio
tiss-71https://voa.health/fhir/CodeSystem/tiss-tipo-atendimento-operadora-intermediaria
tiss-72https://voa.health/fhir/CodeSystem/tiss-tipo-identificacao-beneficiario
tiss-73https://voa.health/fhir/CodeSystem/tiss-etapas-autorizacao
tiss-74https://voa.health/fhir/CodeSystem/tiss-motivos-ausencia-codigo-validacao
tiss-75https://voa.health/fhir/CodeSystem/tiss-cobertura-especial
tiss-76https://voa.health/fhir/CodeSystem/tiss-regime-atendimento
tiss-77https://voa.health/fhir/CodeSystem/tiss-saude-ocupacional
tiss-78https://voa.health/fhir/CodeSystem/tiss-tipo-pagamento
tiss-79https://voa.health/fhir/CodeSystem/tiss-modelos-remuneracao
tiss-80https://voa.health/fhir/CodeSystem/tiss-formato-documento
tiss-81https://voa.health/fhir/CodeSystem/tiss-tipo-documento
tiss-82https://voa.health/fhir/CodeSystem/tiss-centro-consumo
tiss-87https://voa.health/fhir/CodeSystem/tiss-terminologias-unificadas

A allowlist de licença é definida pelo servidor.

Atribuição

  • CIAP-2 (ICPC-2) © WONCA International Classification Committee. Cite a WONCA ao exibir códigos CIAP-2.
  • This material contains content from LOINC® (http://loinc.org). LOINC is copyright © Regenstrief Institute, Inc. and the LOINC Committee and is available at no cost under the license at http://loinc.org/license.

Erros

ExceçãoSignificado
ChaveInvalidaErrorChave ausente ou inválida
AcessoNegadoErrorA chave não tem acesso ao sistema
CotaExcedidaErrorCota excedida; consulte retry_after
RedeErrorFalha de conexão
TempoEsgotadoErrorTempo limite excedido
ServidorErrorErro retornado pelo serviço

terminologia ou tiss.tuss?

tiss.tuss consulta a tabela TUSS offline embutida no pacote tiss. terminologia é o cliente online da terminologia servida pela Voa, cobre todos os sistemas e valida na versão publicada. Requer chave e está sujeito à cota da organização.

Licença

Apache-2.0. Consulte LICENSE.

Source: README.md at commit fc20ae9

Tools

0
SourceWeft started this package once in an isolated sandbox, without credentials, to list its tools. That failed: the server did not start.

Version history

3
  1. v0.1.1LatestOct 29, 2026
  2. v0.1.0Oct 26, 2026
  3. v0.1.0a2Oct 25, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts