mcp-itcmd-custas
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., "@mcp-itcmd-custas calcule o ITCMD de uma herança de R$ 500 mil em SP"
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.
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 |
| Lists the states and courts with checked data, and the fee items accepted by each court. Start here. |
| ITCMD rate table of one state (brackets for inheritance and gift, exemptions by value). Input: |
| ITCMD amount for an inheritance ( |
| Initial court fees of a lawsuit in one state court. Inputs: |
| Total cost of an out-of-court probate in SP, MG or RJ. Inputs: |
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-custasThe 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-custasCursor (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=500000Connect to the hosted server (no install)
Claude Code
claude mcp add --transport http emmiudos https://api.emmiudos.com.br/mcpClaude 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/mcpcurl (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
Docs with curl, MCP client and prompt examples: https://api.emmiudos.com.br/docs
REST API (same numbers and sources), OpenAPI 3.1: https://api.emmiudos.com.br/openapi.json
llms.txt: https://api.emmiudos.com.br/llms.txtMCP server card: https://api.emmiudos.com.br/.well-known/mcp/server-card.json
A2A agent card: https://api.emmiudos.com.br/.well-known/agent-card.json
Pages for people: https://itcmd.emmiudos.com.br/ and https://custas.emmiudos.com.br/
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 toolsaliquotas_itcmdAlíquotas do ITCMD de um estadoARead-onlyIdempotentInspect
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çãoARead-onlyIdempotentInspect
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çãoARead-onlyIdempotentInspect
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 conferidoARead-onlyIdempotentInspect
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)ARead-onlyIdempotentInspect
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
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
JusPronto is case-management software for Brazilian law firms. Its remote MCP server (OAuth 2.1 with PKCE, per-permission scopes, audit log) lets Claude and ChatGPT read the firm's own cases, deadlines, agenda, recent court movements and case files with the page cited. Write actions require the lawyer's approval. Requires a JusPronto account.
Public lookup of Brazilian court cases (metadata + docket) via the CNJ/DataJud API. Free, no login.
CBS calculator for AI (Brazil tax reform), running Receita Federal's official open-source code.
Automatic Brazilian legal calculators: monetary correction and debt settlement (correction by IPCA,
Related MCP Servers
- AlicenseAqualityBmaintenanceConnects AI assistants to Brazilian judicial data from DataJud CNJ and 91 courts, enabling process consultation, monitoring, and deadline calculation under the Civil Procedure Code.983 PyPI143MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseNot gradedqualityCmaintenanceEnables 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