terminologia
Cliente MCP para consultar terminologias de saúde da Voa.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
terminologiaclaude mcp add terminologia -e 'TERMINOLOGIA_KEY=<your terminologia_key>' -e 'TERMINOLOGIA_URL=<TERMINOLOGIA_URL>' -- uvx terminologia==0.1.1 mcp
{
"mcpServers": {
"terminologia": {
"command": "uvx",
"args": [
"terminologia==0.1.1",
"mcp"
],
"env": {
"TERMINOLOGIA_KEY": "<your terminologia_key>",
"TERMINOLOGIA_URL": "<TERMINOLOGIA_URL>"
}
}
}
}
Environment variables
TERMINOLOGIA_KEYrequired secret Chave de produto da organização (sk_voa_) com escopo terminology:read.TERMINOLOGIA_URLURL base FHIR; substitui o endpoint padrão.
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
Contents
terminologia
Cliente Python e ferramentas MCP para consultar CID-10, CIAP-2, TUSS, SIGTAP, ANVISA, CBO, LOINC, UCUM e outros sistemas de terminologia em FHIR.
Início rápido
pip install terminologia
Crie uma chave de produto da organização em https://tiss-api.voa.health/org e configure:
export TERMINOLOGIA_KEY=sk_voa_...
Chaves sk_tiss_ existentes também podem ser usadas quando possuem o escopo
terminology:read.
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)
CLI
| Comando | Uso |
|---|---|
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 SISTEMA] | Traduzir um código |
terminologia sistemas | Listar os sistemas |
terminologia mcp | Iniciar 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:
claude mcp add terminologia -e TERMINOLOGIA_KEY=sk_voa_... -- \
uvx --from "terminologia[mcp]" terminologia mcp
Codex (~/.codex/config.toml):
[mcp_servers.terminologia]
command = "uvx"
args = ["--from", "terminologia[mcp]", "terminologia", "mcp"]
[mcp_servers.terminologia.env]
TERMINOLOGIA_KEY = "sk_voa_..."
Cursor (mcp.json):
{
"mcpServers": {
"terminologia": {
"command": "uvx",
"args": ["--from", "terminologia[mcp]", "terminologia", "mcp"],
"env": {
"TERMINOLOGIA_KEY": "sk_voa_..."
}
}
}
}
Sistemas
| Nome | Canônico |
|---|---|
cid10 | http://hl7.org/fhir/sid/icd-10 |
ciap2 | http://hl7.org/fhir/sid/icpc-2 |
tuss | https://voa.health/fhir/CodeSystem/tuss |
tuss-diarias | https://voa.health/fhir/CodeSystem/tuss-diarias-taxas-gases-medicinais |
tuss-materiais | https://voa.health/fhir/CodeSystem/tuss-materiais-opme |
tuss-medicamentos | https://voa.health/fhir/CodeSystem/tuss-medicamentos |
sigtap | https://voa.health/fhir/CodeSystem/sigtap |
anvisa | urn:voa:anvisa:registro |
cbo | https://voa.health/fhir/CodeSystem/cbo |
loinc | http://loinc.org |
ucum | http://unitsofmeasure.org |
tiss-50 | https://voa.health/fhir/CodeSystem/tiss-tipo-atendimento |
tiss-52 | https://voa.health/fhir/CodeSystem/tiss-tipo-consulta |
tiss-60 | https://voa.health/fhir/CodeSystem/tiss-unidade-medida |
tiss-76 | https://voa.health/fhir/CodeSystem/tiss-regime-atendimento |
voa-categoria | https://voa.health/fhir/CodeSystem/voa-categoria-servico |
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ção | Significado |
|---|---|
ChaveInvalidaError | Chave ausente ou inválida |
AcessoNegadoError | A chave não tem acesso ao sistema |
CotaExcedidaError | Cota excedida; consulte retry_after |
RedeError | Falha de conexão |
TempoEsgotadoError | Tempo limite excedido |
ServidorError | Erro 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.
Frequently asked questions
What is terminologia?
Cliente MCP para consultar terminologias de saúde da Voa.
How do I install terminologia?
It runs on your machine. In Claude Code: claude mcp add terminologia -e 'TERMINOLOGIA_KEY=<your terminologia_key>' -e 'TERMINOLOGIA_URL=<TERMINOLOGIA_URL>' -- uvx terminologia==0.1.1 mcp. For other clients, paste the JSON configuration from this page into their MCP settings.
Does terminologia need an API key?
Yes. It expects TERMINOLOGIA_KEY, which you set in its configuration.
Is terminologia open source?
Yes. Its code is on GitHub under the Apache-2.0 license.
Who maintains terminologia?
It is published by Voa-Health. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.