FiscalHub MCP by usefulapi is an MCP server published by io.usefulapi, hosted at fiscalhub.usefulapi.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 9 tools, including fiscalhub_get_nfe_xml, fiscalhub_list_received_nfe, fiscalhub_get_ncm, fiscalhub_search_ncm, fiscalhub_simulate_nfe_totals.
Read NF-e XML and NCM tax data, simulate totals, issue and cancel NF-e and NFC-e in FiscalHub.
4,407 connections through 5 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
Get the authorized NF-e XML (nfe-proc: NF-e plus protocol) for an access key, fetched from the SEFAZ. Use it to recover an XML that was not stored locally. FiscalHub: GET /api/v1/nfe/{chave}/xml.
| Parameter | Type | Description |
|---|---|---|
| chave * | string | Access key (chave de acesso) of the document: 44 digits. |
{
"name": "fiscalhub_get_nfe_xml",
"title": "Get an NF-e XML",
"description": "Get the authorized NF-e XML (nfe-proc: NF-e plus protocol) for an access key, fetched from the SEFAZ. Use it to recover an XML that was not stored locally. FiscalHub: GET /api/v1/nfe/{chave}/xml.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"chave"
],
"properties": {
"chave": {
"type": "string",
"pattern": "^\\d{44}$",
"description": "Access key (chave de acesso) of the document: 44 digits."
}
}
},
"annotations": {
"title": "Get an NF-e XML",
"readOnlyHint": true
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
List NF-es and events issued against a company's CNPJ, fetched from the SEFAZ (Distribuicao DFe), in NSU order. Pass the returned ultNsu next time to get only new documents. Each document has its schema (resNFe, nfeProc or procEventoNFe). FiscalHub: GET /api/v1/nfe/distribuicao.
| Parameter | Type | Description |
|---|---|---|
| chNFe | string | Optional: fetch one NF-e by its access key. |
| ultNsu | integer | Last NSU you received. Use 0 (default) to start from the beginning. |
| empresaId * | string | FiscalHub company id (empresaId) that issues or receives the document. |
{
"name": "fiscalhub_list_received_nfe",
"title": "List received NF-e (DFe)",
"description": "List NF-es and events issued against a company's CNPJ, fetched from the SEFAZ (Distribuicao DFe), in NSU order. Pass the returned ultNsu next time to get only new documents. Each document has its schema (resNFe, nfeProc or procEventoNFe). FiscalHub: GET /api/v1/nfe/distribuicao.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"empresaId"
],
"properties": {
"chNFe": {
"type": "string",
"pattern": "^\\d{44}$",
"description": "Optional: fetch one NF-e by its access key."
},
"ultNsu": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Last NSU you received. Use 0 (default) to start from the beginning."
},
"empresaId": {
"type": "string",
"minLength": 1,
"description": "FiscalHub company id (empresaId) that issues or receives the document."
}
}
},
"annotations": {
"title": "List received NF-e (DFe)",
"readOnlyHint": true
}
}Get the tax data of one exact NCM product code: description, IPI rate, CEST and unit of measure. FiscalHub: GET /api/v1/ncm/{codigo}.
| Parameter | Type | Description |
|---|---|---|
| codigo * | string | NCM product code: 8 digits. |
{
"name": "fiscalhub_get_ncm",
"title": "Get an NCM code",
"description": "Get the tax data of one exact NCM product code: description, IPI rate, CEST and unit of measure. FiscalHub: GET /api/v1/ncm/{codigo}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"codigo"
],
"properties": {
"codigo": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "NCM product code: 8 digits."
}
}
},
"annotations": {
"title": "Get an NCM code",
"readOnlyHint": true
}
}Search NCM product codes by a partial code or a description term. Use it to find the NCM for a product before issuing a document. FiscalHub: GET /api/v1/ncm/buscar?q=.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Partial NCM code or a word from the product description. |
{
"name": "fiscalhub_search_ncm",
"title": "Search NCM codes",
"description": "Search NCM product codes by a partial code or a description term. Use it to find the NCM for a product before issuing a document. FiscalHub: GET /api/v1/ncm/buscar?q=.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"minLength": 1,
"description": "Partial NCM code or a word from the product description."
}
}
},
"annotations": {
"title": "Search NCM codes",
"readOnlyHint": true
}
}Simulate the tax totals of an NF-e (ICMS, IPI, PIS, COFINS, DIFAL, IBS, CBS and the invoice total) before issuing it. Nothing is issued or stored. FiscalHub: POST /api/v1/tributario/simular-nfe.
| Parameter | Type | Description |
|---|---|---|
| itens * | array | |
| desconto | number | Discount value (default 0). |
| empresaId * | string | FiscalHub company id (empresaId) that issues or receives the document. |
| ufDestino * | string | Destination state, for example "RJ". |
| valorFrete | number | Freight value (default 0). |
| valorSeguro | number | Insurance value (default 0). |
| naturezaOperacao * | string | Nature of the operation, for example "Venda". |
{
"name": "fiscalhub_simulate_nfe_totals",
"title": "Simulate NF-e totals",
"description": "Simulate the tax totals of an NF-e (ICMS, IPI, PIS, COFINS, DIFAL, IBS, CBS and the invoice total) before issuing it. Nothing is issued or stored. FiscalHub: POST /api/v1/tributario/simular-nfe.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"empresaId",
"ufDestino",
"naturezaOperacao",
"itens"
],
"properties": {
"itens": {
"type": "array",
"items": {
"type": "object",
"required": [
"ncm",
"cfop",
"valorUnitario",
"quantidade",
"cst"
],
"properties": {
"cst": {
"type": "string",
"minLength": 2,
"description": "Tax situation code, for example \"00\"."
},
"ncm": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "NCM product code: 8 digits."
},
"cfop": {
"type": "string",
"pattern": "^\\d{4}$",
"description": "CFOP operation code: 4 digits, for example 5102."
},
"quantidade": {
"type": "number",
"exclusiveMinimum": 0
},
"valorUnitario": {
"type": "number",
"minimum": 0
}
}
},
"minItems": 1
},
"desconto": {
"type": "number",
"minimum": 0,
"description": "Discount value (default 0)."
},
"empresaId": {
"type": "string",
"minLength": 1,
"description": "FiscalHub company id (empresaId) that issues or receives the document."
},
"ufDestino": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "Destination state, for example \"RJ\"."
},
"valorFrete": {
"type": "number",
"minimum": 0,
"description": "Freight value (default 0)."
},
"valorSeguro": {
"type": "number",
"minimum": 0,
"description": "Insurance value (default 0)."
},
"naturezaOperacao": {
"type": "string",
"minLength": 1,
"description": "Nature of the operation, for example \"Venda\"."
}
}
},
"annotations": {
"title": "Simulate NF-e totals",
"readOnlyHint": true
}
}DESTRUCTIVE: issues an NF-e (model 55) and sends it to the SEFAZ for authorization. A production company issues a legal document that the customer must cancel if it is wrong. Whether it is homologation or production depends on the company's setting in FiscalHub. FiscalHub: POST /api/v1/nfe/emitir.
| Parameter | Type | Description |
|---|---|---|
| itens * | array | |
| empresaId * | string | FiscalHub company id (empresaId) that issues or receives the document. |
| pagamentos * | array | |
| tipoOperacao * | any | 0 = incoming (entrada), 1 = outgoing (saida). |
| naturezaOperacao * | string | Nature of the operation, for example "Venda de mercadoria". |
{
"name": "fiscalhub_emit_nfe",
"title": "Issue an NF-e",
"description": "DESTRUCTIVE: issues an NF-e (model 55) and sends it to the SEFAZ for authorization. A production company issues a legal document that the customer must cancel if it is wrong. Whether it is homologation or production depends on the company's setting in FiscalHub. FiscalHub: POST /api/v1/nfe/emitir.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"empresaId",
"naturezaOperacao",
"tipoOperacao",
"itens",
"pagamentos"
],
"properties": {
"itens": {
"type": "array",
"items": {
"type": "object",
"required": [
"codigoProduto",
"descricao",
"ncm",
"cfop",
"unidadeComercial",
"quantidade",
"valorUnitario"
],
"properties": {
"ncm": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "NCM product code: 8 digits."
},
"cfop": {
"type": "string",
"pattern": "^\\d{4}$",
"description": "CFOP operation code: 4 digits, for example 5102."
},
"impostos": {
"type": "object",
"description": "Taxes for this item. For the tax reform (IBS/CBS) use the ibsCbs object from the FiscalHub docs.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"descricao": {
"type": "string",
"minLength": 1,
"description": "Product description."
},
"numeroItem": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Item number, from 1 (default: the item's position in the list).",
"exclusiveMinimum": 0
},
"quantidade": {
"type": "number",
"exclusiveMinimum": 0
},
"valorTotal": {
"type": "number",
"minimum": 0,
"description": "Item total (default: quantidade x valorUnitario, rounded to 2 decimals)."
},
"codigoProduto": {
"type": "string",
"minLength": 1,
"description": "Your product code, for example PROD-001."
},
"valorUnitario": {
"type": "number",
"minimum": 0
},
"unidadeComercial": {
"type": "string",
"minLength": 1,
"description": "Unit of measure, for example UN."
}
}
},
"minItems": 1
},
"empresaId": {
"type": "string",
"minLength": 1,
"description": "FiscalHub company id (empresaId) that issues or receives the document."
},
"pagamentos": {
"type": "array",
"items": {
"type": "object",
"required": [
"formaPagamento",
"valor"
],
"properties": {
"valor": {
"type": "number",
"minimum": 0
},
"formaPagamento": {
"type": "string",
"minLength": 2,
"description": "Payment method code, for example \"01\"."
}
}
},
"minItems": 1
},
"tipoOperacao": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
],
"description": "0 = incoming (entrada), 1 = outgoing (saida)."
},
"naturezaOperacao": {
"type": "string",
"minLength": 1,
"description": "Nature of the operation, for example \"Venda de mercadoria\"."
}
}
},
"annotations": {
"title": "Issue an NF-e",
"idempotentHint": false,
"destructiveHint": true
}
}DESTRUCTIVE: cancels an authorized NF-e by its access key, with a required justification. The tax authority records the cancellation and it cannot be undone. FiscalHub: POST /api/v1/nfe/{chave}/cancelar.
| Parameter | Type | Description |
|---|---|---|
| chave * | string | Access key (chave de acesso) of the document: 44 digits. |
| cpfCnpj * | string | CPF or CNPJ of the issuer, digits only. |
| justificativa * | string | Reason for the cancellation, 15 to 255 characters (the tax authority requires it). |
| sequenciaEvento | integer | Event sequence number, from 1 (default 1). |
{
"name": "fiscalhub_cancel_nfe",
"title": "Cancel an NF-e",
"description": "DESTRUCTIVE: cancels an authorized NF-e by its access key, with a required justification. The tax authority records the cancellation and it cannot be undone. FiscalHub: POST /api/v1/nfe/{chave}/cancelar.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"chave",
"justificativa",
"cpfCnpj"
],
"properties": {
"chave": {
"type": "string",
"pattern": "^\\d{44}$",
"description": "Access key (chave de acesso) of the document: 44 digits."
},
"cpfCnpj": {
"type": "string",
"pattern": "^(\\d{11}|\\d{14})$",
"description": "CPF or CNPJ of the issuer, digits only."
},
"justificativa": {
"type": "string",
"maxLength": 255,
"minLength": 15,
"description": "Reason for the cancellation, 15 to 255 characters (the tax authority requires it)."
},
"sequenciaEvento": {
"type": "integer",
"default": 1,
"maximum": 20,
"minimum": 1,
"description": "Event sequence number, from 1 (default 1)."
}
}
},
"annotations": {
"title": "Cancel an NF-e",
"idempotentHint": false,
"destructiveHint": true
}
}DESTRUCTIVE: issues a consumer NFC-e (model 65) and sends it to the SEFAZ for authorization. It has the same fields as an NF-e; the API applies model 65. The company's environment (homologation or production) is set in FiscalHub. FiscalHub: POST /api/v1/nfce/emitir.
| Parameter | Type | Description |
|---|---|---|
| itens * | array | |
| empresaId * | string | FiscalHub company id (empresaId) that issues or receives the document. |
| pagamentos * | array | |
| tipoOperacao * | any | 0 = incoming (entrada), 1 = outgoing (saida). |
| naturezaOperacao * | string | Nature of the operation, for example "Venda de mercadoria". |
{
"name": "fiscalhub_emit_nfce",
"title": "Issue an NFC-e",
"description": "DESTRUCTIVE: issues a consumer NFC-e (model 65) and sends it to the SEFAZ for authorization. It has the same fields as an NF-e; the API applies model 65. The company's environment (homologation or production) is set in FiscalHub. FiscalHub: POST /api/v1/nfce/emitir.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"empresaId",
"naturezaOperacao",
"tipoOperacao",
"itens",
"pagamentos"
],
"properties": {
"itens": {
"type": "array",
"items": {
"type": "object",
"required": [
"codigoProduto",
"descricao",
"ncm",
"cfop",
"unidadeComercial",
"quantidade",
"valorUnitario"
],
"properties": {
"ncm": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "NCM product code: 8 digits."
},
"cfop": {
"type": "string",
"pattern": "^\\d{4}$",
"description": "CFOP operation code: 4 digits, for example 5102."
},
"impostos": {
"type": "object",
"description": "Taxes for this item. For the tax reform (IBS/CBS) use the ibsCbs object from the FiscalHub docs.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"descricao": {
"type": "string",
"minLength": 1,
"description": "Product description."
},
"numeroItem": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Item number, from 1 (default: the item's position in the list).",
"exclusiveMinimum": 0
},
"quantidade": {
"type": "number",
"exclusiveMinimum": 0
},
"valorTotal": {
"type": "number",
"minimum": 0,
"description": "Item total (default: quantidade x valorUnitario, rounded to 2 decimals)."
},
"codigoProduto": {
"type": "string",
"minLength": 1,
"description": "Your product code, for example PROD-001."
},
"valorUnitario": {
"type": "number",
"minimum": 0
},
"unidadeComercial": {
"type": "string",
"minLength": 1,
"description": "Unit of measure, for example UN."
}
}
},
"minItems": 1
},
"empresaId": {
"type": "string",
"minLength": 1,
"description": "FiscalHub company id (empresaId) that issues or receives the document."
},
"pagamentos": {
"type": "array",
"items": {
"type": "object",
"required": [
"formaPagamento",
"valor"
],
"properties": {
"valor": {
"type": "number",
"minimum": 0
},
"formaPagamento": {
"type": "string",
"minLength": 2,
"description": "Payment method code, for example \"01\"."
}
}
},
"minItems": 1
},
"tipoOperacao": {
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
}
],
"description": "0 = incoming (entrada), 1 = outgoing (saida)."
},
"naturezaOperacao": {
"type": "string",
"minLength": 1,
"description": "Nature of the operation, for example \"Venda de mercadoria\"."
}
}
},
"annotations": {
"title": "Issue an NFC-e",
"idempotentHint": false,
"destructiveHint": true
}
}DESTRUCTIVE: cancels an authorized NFC-e by its access key, with a required justification. The tax authority records the cancellation and it cannot be undone. FiscalHub: POST /api/v1/nfce/{chave}/cancelar.
| Parameter | Type | Description |
|---|---|---|
| chave * | string | Access key (chave de acesso) of the document: 44 digits. |
| cpfCnpj * | string | CPF or CNPJ of the issuer, digits only. |
| justificativa * | string | Reason for the cancellation, 15 to 255 characters (the tax authority requires it). |
| sequenciaEvento | integer | Event sequence number, from 1 (default 1). |
{
"name": "fiscalhub_cancel_nfce",
"title": "Cancel an NFC-e",
"description": "DESTRUCTIVE: cancels an authorized NFC-e by its access key, with a required justification. The tax authority records the cancellation and it cannot be undone. FiscalHub: POST /api/v1/nfce/{chave}/cancelar.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"chave",
"justificativa",
"cpfCnpj"
],
"properties": {
"chave": {
"type": "string",
"pattern": "^\\d{44}$",
"description": "Access key (chave de acesso) of the document: 44 digits."
},
"cpfCnpj": {
"type": "string",
"pattern": "^(\\d{11}|\\d{14})$",
"description": "CPF or CNPJ of the issuer, digits only."
},
"justificativa": {
"type": "string",
"maxLength": 255,
"minLength": 15,
"description": "Reason for the cancellation, 15 to 255 characters (the tax authority requires it)."
},
"sequenciaEvento": {
"type": "integer",
"default": 1,
"maximum": 20,
"minimum": 1,
"description": "Event sequence number, from 1 (default 1)."
}
}
},
"annotations": {
"title": "Cancel an NFC-e",
"idempotentHint": false,
"destructiveHint": true
}
}Tools for FiscalHub, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "What NCM code applies to a portable laptop, and what taxes apply?"; "Simulate the totals of a sale of 2 items to Rio de Janeiro before I issue the NF-e."; "Get the authorized XML for this NF-e access key.". Read-only tools never change data; ask the user before a tool that creates, changes or deletes FiscalHub data. Free plan: 50 tool calls per month. Run fiscalhub_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run fiscalhub_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run fiscalhub_upgrade without a plan: it returns both plans, each with a payment link for the user to open. fiscalhub_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.