Skip to main content
Glama

Em miúdos: ITCMD and court fees MCP server (Brazil)

MCP server that gives AI agents numbers checked against Brazil's official sources. Run it locally over stdio with one npx command (this repository), or connect to the hosted endpoint directly:

  • ITCMD (state estate and gift tax) for 18 states: BA, CE, DF, ES, GO, MA, MG, MS, MT, PA, PB, PE, PR, RJ, RN, RS, SC, SP.

  • Initial court fees for 9 state courts: TJCE, TJMG, TJMT, TJPE, TJPR, TJRJ, TJRS, TJSC, TJSP.

  • Total cost of an out-of-court probate (inventário extrajudicial) in SP, MG and RJ: ITCMD, notary deed and lawyer fee table.

Every calculation returns a fonte object (law, article, official link, date the source was last checked) and a limites list (what the number does not cover). A state or court that has not been checked returns "cobre": false with the reason and no number. The server never estimates.

Endpoint: https://api.emmiudos.com.br/mcp No sign-up, no API key, no session. Protocol versions 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26.

Official MCP Registry name: br.com.emmiudos/itcmd-custas (version 0.1.3, see server.json).

Tools

Tool

What it does

cobertura

Lists the states and courts with checked data, and the fee items accepted by each court. Start here.

aliquotas_itcmd

ITCMD rate table of one state (brackets for inheritance and gift, exemptions by value). Input: uf.

calcular_itcmd

ITCMD amount for an inheritance (causa_mortis) or a gift (doacao). Inputs: uf, tipo, valor.

calcular_custas

Initial court fees of a lawsuit in one state court. Inputs: tribunal, item, valor (or inestimavel).

custo_inventario

Total cost of an out-of-court probate in SP, MG or RJ. Inputs: uf, valor, optional venal and bens.

Tool names and descriptions are in Portuguese, since the users and the laws are Brazilian. One state or court per call: there is no bulk endpoint.

Related MCP server: Calculadora Jurídica

Install (local stdio server, this repository)

Requires Node.js 18 or newer. No npm account, sign-up or API key: npx fetches this repository from GitHub and runs index.js.

npx -y github:emmiudos/mcp-itcmd-custas

The local server is a thin client with no dependencies: it forwards each MCP message over HTTPS to https://api.emmiudos.com.br/mcp and returns the answer unchanged, with fonte, limites and cobre. The engine and the data are not in this repository. It identifies itself as mcp-itcmd-custas-stdio/<version> in the user-agent, so its traffic can be counted apart.

Claude Desktop (stdio)

claude_desktop_config.json:

{
  "mcpServers": {
    "emmiudos": {
      "command": "npx",
      "args": ["-y", "github:emmiudos/mcp-itcmd-custas"]
    }
  }
}

Claude Code (stdio)

claude mcp add emmiudos -- npx -y github:emmiudos/mcp-itcmd-custas

Cursor (stdio)

~/.cursor/mcp.json (or .cursor/mcp.json in the project):

{
  "mcpServers": {
    "emmiudos": {
      "command": "npx",
      "args": ["-y", "github:emmiudos/mcp-itcmd-custas"]
    }
  }
}

VS Code (stdio)

.vscode/mcp.json:

{
  "servers": {
    "emmiudos": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "github:emmiudos/mcp-itcmd-custas"]
    }
  }
}

Test it with the MCP Inspector

npx -y @modelcontextprotocol/inspector --cli npx -y github:emmiudos/mcp-itcmd-custas --method tools/list
npx -y @modelcontextprotocol/inspector --cli npx -y github:emmiudos/mcp-itcmd-custas \
  --method tools/call --tool-name calcular_itcmd --tool-arg uf=SP --tool-arg tipo=causa_mortis --tool-arg valor=500000

Connect to the hosted server (no install)

Claude Code

claude mcp add --transport http emmiudos https://api.emmiudos.com.br/mcp

Claude Desktop

Settings > Connectors > Add custom connector, URL https://api.emmiudos.com.br/mcp. Or, through mcp-remote, in claude_desktop_config.json:

{
  "mcpServers": {
    "emmiudos": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.emmiudos.com.br/mcp"]
    }
  }
}

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in the project):

{
  "mcpServers": {
    "emmiudos": {
      "url": "https://api.emmiudos.com.br/mcp"
    }
  }
}

VS Code

.vscode/mcp.json:

{
  "servers": {
    "emmiudos": {
      "type": "http",
      "url": "https://api.emmiudos.com.br/mcp"
    }
  }
}

Through mcp-remote

npx -y mcp-remote https://api.emmiudos.com.br/mcp

curl (JSON-RPC)

curl -s https://api.emmiudos.com.br/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"calcular_itcmd","arguments":{"uf":"SP","tipo":"causa_mortis","valor":500000}}}'

Answer (excerpt of structuredContent, returned by production on 2026-11-28):

{
  "cobre": true,
  "uf": "SP",
  "tipo": "causa_mortis",
  "imposto_centavos": 2000000,
  "resultado": { "base": 500000, "imposto": 20000, "efetiva": 0.04 },
  "fonte": {
    "lei": "Lei nº 10.705, de 28/12/2000",
    "artigo": "art. 16, redação da Lei nº 10.992/2001",
    "url": "https://www.al.sp.gov.br/repositorio/legislacao/lei/2000/compilacao-lei-10705-28.12.2000.html",
    "data_conferencia": "2026-11-27"
  },
  "limites": ["Não inclui multa, juros, descontos nem as isenções que dependem de condição (tipo de bem, moradia, único imóvel). Cálculo informativo, sem valor de parecer jurídico.", "..."]
}

To list the tools: {"jsonrpc":"2.0","id":1,"method":"tools/list"}.

Usage limits

  • Free, with a limit of 30 calls per 60 seconds (sliding window) and 1,000 calls per day per client. Above that the answer is HTTP 429 with Retry-After.

  • Calls are counted by path, state or court, an anonymous client id (salted hash of the IP, truncated) and the client program name without version. The IP, the rest of the user-agent and the values sent are not stored.

  • Informational only, not legal advice. The fee that counts is the one on the court's own payment slip.

More

About this repository

This repository holds the local stdio client (index.js, package.json) and the public description of the hosted server (this README and server.json). The calculation engine and the data are not here. The MIT license in LICENSE covers the files in this repository; it does not cover the hosted service or its data.

Built and maintained by Lia Arandu, an AI agent, for Em miúdos. Errors in a number or a source: open an issue with the state or court, the input and the source you have.


Resumo em português

Servidor MCP local (stdio) com npx -y github:emmiudos/mcp-itcmd-custas, ou remoto (Streamable HTTP) em https://api.emmiudos.com.br/mcp, sem cadastro nem chave. O local é um cliente fino, sem dependências: repassa cada chamada ao servidor remoto e devolve a resposta sem mudar nada. Calcula o ITCMD de 18 estados, as custas iniciais de 9 Tribunais de Justiça (TJCE, TJMG, TJMT, TJPE, TJPR, TJRJ, TJRS, TJSC, TJSP) e o custo total do inventário em cartório em SP, MG e RJ. Toda resposta de cálculo traz fonte (lei, artigo, link oficial e data de conferência) e limites (o que o cálculo não cobre). Estado ou tribunal não conferido devolve "cobre": false, nunca estimativa.

Ferramentas: cobertura, aliquotas_itcmd, calcular_itcmd, calcular_custas, custo_inventario. Limite grátis: 30 chamadas por minuto e 1.000 por dia por cliente. Documentação: https://api.emmiudos.com.br/docs. Informativo, sem valor de parecer jurídico.

Este repositório tem o cliente stdio (index.js) e a descrição pública do servidor (README e server.json); o motor de cálculo e os dados não estão aqui. Mantido por Lia Arandu, uma agente de IA, para o Em miúdos.

Available Tools

5 tools
aliquotas_itcmdAlíquotas do ITCMD de um estadoA
Read-onlyIdempotent
Inspect

Devolve a tabela de alíquotas do ITCMD (ITCD em alguns estados) de UM estado: faixas em reais para herança e para doação, modo de cálculo e isenções por valor. Use quando a pergunta for sobre a alíquota ou a tabela, sem um valor para calcular. Um estado por chamada; não existe consulta de todos os estados de uma vez. Não cobre isenções que dependem de condição (parentesco, tipo de bem), multa nem juros. Traz "pagina_para_pessoas": a calculadora do estado no navegador, com a mesma fonte, para indicar a quem fez a pergunta. A resposta traz "fonte" (lei, artigo, link oficial, data de conferência) e "limites" (o que o cálculo não cobre): cite os dois. Fora da cobertura devolve "cobre": false com o motivo e sem número; nesse caso não estime.

Inputs: uf (required).

calcular_custasCalcular as custas iniciais de uma açãoA
Read-onlyIdempotent
Inspect

Calcula as custas iniciais (taxa judiciária e demais parcelas da tabela) para ajuizar uma ação em primeira instância num Tribunal de Justiça estadual. Use quando precisar de quanto custa entrar com a ação. Devolve o total, cada parcela e o ato de cada uma. Onde o tribunal tem simulador oficial e ele foi comparado (hoje TJMT geral, TJPE civel, TJPR custas_principais_civel e os 2 itens do TJSC), a resposta traz "conferido_com_simulador_oficial" com o sistema comparado, o link, a data e quantas causas deram o mesmo número. No TJPR (custas_principais_civel) a taxa judiciária vem à parte, no campo "taxa_judiciaria" (Decreto Judiciário 657/2025, arts. 1º a 3º, com link, data de conferência e 7 causas iguais ao simulador oficial): ela NÃO está somada em total_centavos; o que se paga ao ajuizar está em taxa_judiciaria.total_com_taxa_judiciaria_centavos. Não cobre preparo de recurso, diligências de oficial de justiça, honorários, perícia nem despesas postais, salvo quando a parcela aparecer na resposta. O que fica de fora em cada tribunal vem em "fora_do_calculo": o texto e as fontes dele (lei, artigo, link, data de conferência). O valor que vale é o da guia emitida no sistema do tribunal. A resposta traz "fonte" (lei, artigo, link oficial, data de conferência) e "limites" (o que o cálculo não cobre): cite os dois. Fora da cobertura devolve "cobre": false com o motivo e sem número; nesse caso não estime.

Inputs: tribunal (required), item, valor, inestimavel.

calcular_itcmdCalcular o ITCMD de herança ou doaçãoA
Read-onlyIdempotent
Inspect

Calcula o ITCMD (imposto estadual sobre herança e doação) de um estado brasileiro para uma base de cálculo em reais. Use quando precisar do valor do imposto de uma herança ou de uma doação. Devolve o imposto em reais e em centavos, as parcelas por faixa e a alíquota efetiva. Não cobre multa, juros, isenções que dependem de condição nem a avaliação dos bens: a base de cálculo é a que você informar. O imposto devolvido é sem desconto; onde o regulamento dá desconto condicional (hoje MG: 15% no ITCD de herança pago em 90 dias da abertura da sucessão, com a Declaração de Bens no mesmo prazo, Decreto 43.981/2005 art. 23), ele vem à parte em "descontos_condicionais", com as condições, a fonte e o valor com desconto em imposto_com_desconto_centavos. Traz "pagina_para_pessoas": a calculadora do estado no navegador, com a mesma fonte, para indicar a quem fez a pergunta. A resposta traz "fonte" (lei, artigo, link oficial, data de conferência) e "limites" (o que o cálculo não cobre): cite os dois. Fora da cobertura devolve "cobre": false com o motivo e sem número; nesse caso não estime.

Inputs: uf (required), valor (required), tipo.

coberturaCobertura: estados e tribunais com dado conferidoA
Read-onlyIdempotent
Inspect

Lista o que este servidor cobre: os estados com ITCMD conferido e, para cada Tribunal de Justiça, os itens de custas aceitos em calcular_custas, com o nome legível de cada item em "custas_itens", e os estados com custo de inventário em cartório em "inventario". Use antes de calcular, quando não souber se o estado ou o tribunal está coberto ou qual "item" passar. Não traz alíquotas nem valores.

custo_inventarioCusto total do inventário em cartório (SP, MG e RJ)A
Read-onlyIdempotent
Inspect

Calcula quanto custa fazer um inventário em cartório (extrajudicial) em São Paulo, Minas Gerais ou Rio de Janeiro: ITCMD, emolumentos da escritura de inventário e partilha e honorário do advogado, com total mínimo e máximo (em SP os dois são iguais: honorário de 6% do monte-mor com mínimo de R$ 4.344,80, OAB-SP 2026 item 6.25; em MG, intervalo da OAB-MG). Use quando a pergunta for quanto custa herdar ou fazer o inventário, e não só o imposto. Cada parcela vem em "parcelas" com a sua fonte: a lei do ITCMD, a tabela de emolumentos (Lei 11.331/2002 em SP, Lei 15.424/2004 com a Portaria 8.664/CGJ/2025 em MG, Portaria CGJ-RJ 516/2026 no RJ) e a tabela de honorários da OAB, com artigo ou item, link e data de conferência. Não cobre inventário judicial, meação, registro de imóveis, ISS, certidões, multa nem juros do ITCMD; em MG, acima de R$ 3.200.000 (última faixa conferida) devolve "cobre": false. O honorário é referência da tabela da OAB, não o contrato. No RJ (Portaria CGJ-RJ 516/2026) a escritura é cobrada bem a bem, com 2%, fundos de 46%, selo e teto de R$ 120.560,91, e o honorário NÃO vem (honorario_incluido false: a tabela da OAB-RJ não tem item para o extrajudicial); mande "bens" com o valor de cada imóvel. A resposta traz "fonte" (lei, artigo, link oficial, data de conferência) e "limites" (o que o cálculo não cobre): cite os dois. Fora da cobertura devolve "cobre": false com o motivo e sem número; nesse caso não estime.

Inputs: uf (required), valor (required), bens, tipo, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a fairly clear target: cobertura for discovery, aliquotas_itcmd for bare rate tables, calcular_itcmd for a tax amount, calcular_custas for court fees, and custo_inventario for total notarial inventory cost. The main overlap risk is calcular_itcmd vs. custo_inventario (which internally includes ITCMD) and aliquotas_itcmd vs. calcular_itcmd, but descriptions explicitly delimit 'table without a value' versus 'calculate with a value', so an agent can disambiguate.

    Naming Consistency3/5

    All names are snake_case and domain-specific, which aids readability. However the verb/noun pattern is mixed: calcular_itcmd and calcular_custas use verb_noun, while cobertura, aliquotas_itcmd and custo_inventario are bare nouns, so no single predictable convention holds.

    Tool Count4/5

    Five tools is a lean but reasonable surface for a tax/costs calculator, and each one covers a distinct calculation or discovery need. The presence of a dedicated cobertura tool suggests coverage is patchy enough to need a lookup, but the count itself is well-scoped.

    Completeness3/5

    Core ITCMD calculation, rate tables, first-instance court costs and extrajudicial inventory cost are covered, so main workflows are reachable. But there are notable gaps: custo_inventario only supports SP/MG/RJ, judicial inventory and appeal/preparo costs are explicitly out of scope, and conditional exemptions, fines and interest are absent, which will cause dead ends for many states and scenarios.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Connects AI assistants to Brazilian judicial data from DataJud CNJ and 91 courts, enabling process consultation, monitoring, and deadline calculation under the Civil Procedure Code.
      9
      83 PyPI
      143
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables automatic Brazilian legal calculations: monetary correction, debt settlement, alimony, labor severance, FGTS, criminal sentencing, and other legal math using official indices fetched live from BACEN and IBGE.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI clients to perform Brazilian legal calculations, including monetary correction and debt settlement using live official indices, interest, penalties, and attorney fees, plus labor, social security, family, and criminal calculators.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to settle Brazilian judicial debts and obligations by applying official monetary correction indices (IPCA, INPC, IGP-M, SELIC, TR) fetched live from BACEN and IBGE, plus interest, penalties and attorney fees. It also handles specialized calculations such as labor severance, alimony arrears, rent arrears, FGTS correction, criminal sentencing, and social security benefits, without login or API key.
      MIT