{"id":"io.github.stackin-io/stackin","slug":"io-github-stackin-io-stackin","title":"Stackin","description":"Issue and manage Brazilian fiscal documents: NF-e for goods, NFS-e for services.","version":"1.2.0","publisher":{"kind":"github","id":"stackin-io","label":"@stackin-io on GitHub","url":"https://github.com/stackin-io"},"website":"https://docs.stackin.io/mcp","repository":"https://github.com/stackin-io/stackin-mcp-plugin","remotes":[{"type":"streamable-http","url":"https://mcp.stackin.io/mcp"}],"packages":[],"published":"2026-11-19","updated":"2026-11-19","status":"online","auth":"","latency_ms":1889,"checked":"2026-11-19","uptime":100,"checks":3,"tools":[{"name":"issue_invoice","title":"","description":"Issue a Brazilian fiscal document: NFS-e or NF-e.\n\nThis produces a legal fiscal document. Confirm the data with the\nuser before calling when you inferred any field.\n\nSend unit_price with quantity when the user quotes a price per\nunit, amount when they quote the line. Sending both asserts they\nagree and is refused if they do not.\n\nnfse is a service invoice: the address is optional and\nservice_code ","read_only":false},{"name":"consult_invoice","title":"","description":"Look up an invoice's current status by its access key.\n\nRead-only: it never changes the document.\n","read_only":true},{"name":"cancel_invoice","title":"","description":"Cancel an authorized invoice.\n\nLegal cancellation, with fiscal and accounting effect, inside a window\nthe NFS-e authorizer enforces for the municipality. Ask the human to confirm before calling; never call it\nspeculatively. The reason reaches the tax authority verbatim and must\nbe at least 15 characters.\n\nPass idempotency_key to make a retry safe: repeating the same key with\nthe same access key an","read_only":false},{"name":"get_invoice_pdf","title":"","description":"Return the printable rendering of a document, as a PDF.\n\nWorks for both types — a DANFE for nfe, a DANFSe for nfse. The PDF\ncomes back base64-encoded in content_base64, with its size in\nsize_bytes; the XML, not this, is the legally valid document. A\nPDF above 2 MB is not inlined: the answer says to download it from\nthe API instead. A 502 from here means the authorizer is\nunavailable, not that the ","read_only":true},{"name":"reissue_invoice","title":"","description":"Retry a rejected invoice after the data that caused the rejection\nwas fixed.\n\nTakes the local invoice_id, not the access key: a rejected document\nnever got one. Consumes a credit like a new issuance, so it takes\nan idempotency_key for the same reason issue_invoice does. An\nauthorized invoice is corrected or cancelled, never reissued.\n","read_only":false},{"name":"correct_invoice","title":"","description":"File an electronic correction letter (CC-e) against an NF-e.\n\nNF-e only: there is no correction letter for an NFS-e, where a wrong\ndocument is cancelled and issued again.\n\nIt corrects wording and non-fiscal fields only. It cannot change\nvalues, taxes, the recipient or the products — those still require\ncancelling and issuing again, and telling the user a CC-e will fix\nan amount is wrong in a way t","read_only":false},{"name":"invalidate_numbering","title":"","description":"Declare an NF-e numbering range reserved but never used.\n\nNF-e numbering has to be continuous, so a gap left by a failed\nissuance is explained to the SEFAZ with this — not with a new\ndocument. Irreversible: a number declared unused can never be used.\n\nOnly for numbers that were never authorized. An authorized document\nis cancelled, never invalidated. Confirm the range with the user and\nread it bac","read_only":false},{"name":"list_invoices","title":"","description":"List the invoices this company issued, newest first.\n\nOne document type at a time: pass nfse for services or nfe for\ngoods. A company that issues both has to be asked twice.\n\nUse it for \"my last invoices\", \"what was rejected today\", and to find\na document whose access key the user does not have at hand. Read-only.\n\nAn authorized document is stored as issued, which is the value the\nrows carry; auth","read_only":true},{"name":"get_invoice_submissions","title":"","description":"Show every attempt made for one invoice and what came back.\n\nThis is the tool that answers \"why was it rejected\". consult_invoice\ngives the status; this gives the tax authority's own code, its\nmessage, and the request and response exactly as they went over the\nwire. Read-only.\n\nIt takes the invoice_id, like reissue_invoice — a rejected document\nhas no access key to look it up by. Get the id from l","read_only":true},{"name":"validate_invoice_payload","title":"","description":"Check invoice data against the field rules without issuing anything.\n\nNothing is sent to the tax authority and no document is created.\nThe SDK models check field formats, and for nfe the rules the SEFAZ\nrefuses a document over: ncm and cfop on every item, and a complete\nrecipient address. Worth calling before issue_invoice whenever a\nfield was inferred rather than given.\n\nThis does not replace iss","read_only":true},{"name":"list_received_invoices","title":"","description":"List NF-e documents other companies issued against this one.\n\nThe mirror of list_invoices: that one shows what this company issued,\nthis one what it received. Read-only.\n\nIt reads what the API already collected and never calls the tax\nauthority; collection runs every six hours and\nsync_received_invoices asks now. Each row carries the issuer, the\namount, has_full_document and, once one was filed, t","read_only":true},{"name":"sync_received_invoices","title":"","description":"Ask the tax authority now for NF-e issued against this company.\n\nCollection already runs every six hours. After a read that finds\nnothing more the authority imposes a one-hour wait; inside it this\nis refused with the time to retry. Never retry in a loop.\n","read_only":false},{"name":"manifest_received_invoice","title":"","description":"Declare this company's position on a document issued against it.\n\nLegally binding and irreversible once the tax authority accepts it —\nask the human to confirm before calling, and read back which\ndocument and which of the four positions is being filed.\n\nDenying a document (210220) or declaring the operation did not\nhappen (210240) is an accusation against whoever issued it. Never\npick either becau","read_only":false},{"name":"lookup_fiscal_code","title":"","description":"Resolve one code of one classification, when you know both.\n\nUse this to confirm a code before putting it on a document —\nan NCM that does not exist is rejected by the tax authority\nafter issuing, which costs a cancellation.\n\nA code that is not there answers 404. That means the code is\nwrong, not that the lookup failed; do not retry it.\n\n`metadata` differs per kind and is passed through as publish","read_only":true},{"name":"search_fiscal_codes","title":"","description":"Find a code from a description, or page through a table.\n\nThis is the tool for \"what NCM is a keyboard\" — the one the\nuser actually asks. Prefer it over guessing a code from memory:\nthe tables change, and a plausible wrong code is worse than a\nlookup.\n\nLeaving `kind` unset searches every classification of that\ncountry at once, which is the most expensive call here. Set it\nwhenever the question alr","read_only":true},{"name":"list_fiscal_kinds","title":"","description":"Which classifications this country has data for, right now.\n\nAsk this before assuming a classification exists. The answer\ngrows as the source data does, so a name absent here is absent\ntoday rather than absent forever.\n","read_only":true},{"name":"lookup_taxpayer","title":"","description":"Look up one taxpayer by exact tax id, to confirm who it is.\n\nUse it to check a recipient's name before issuing against them.\nIt takes the id exactly — punctuation is fine, but there is no\nsearch by name, by prefix or by state, and there will not be:\nthe registry holds the names and addresses of real people.\n\nA 404 does not mean the company does not exist. The registry\nreloads monthly from the RFB'","read_only":true},{"name":"list_authorized_companies","title":"","description":"List the companies this connection may act for, and what it may\ndo on each.\n\nCall it before acting when the user has more than one company, or\nwhen a tool answered that it needs a company. Each row carries the\ncompany_id (UUID) and tax_id (CNPJ or CPF) the other tools accept as\ncompany_id or company_tax_id, and the permissions granted there.\n\nOne connection may cover several companies; when it cov","read_only":true},{"name":"get_usage","title":"","description":"The plan's allowances, what is used and the credit left.\n\nRead it before saying an action is free. Read-only.\n","read_only":true},{"name":"list_clients","title":"","description":"Find the company's saved clients.\n\nLook a recipient up here before typing one into issue_invoice:\nwhen it is already saved, pass its id as client_id and the name,\ndocument and address come from the registry. Most recently used\nfirst. Read-only.\n","read_only":true},{"name":"get_client","title":"","description":"Read one saved client, with its full address. Read-only.","read_only":true},{"name":"save_client","title":"","description":"Save a client in the company's registry, or update a saved one.\n\nIt records a recipient for later issuances; it issues nothing.\nA document already saved is refused with the existing client's\nid — call get_client or pass that id here to update it instead.\nConfirm the data with the user when any of it was inferred.\n","read_only":false},{"name":"deactivate_client","title":"","description":"Hide a saved client; reactivate_client brings it back.","read_only":false},{"name":"reactivate_client","title":"","description":"Bring a deactivated client back to the registry.","read_only":false}],"server_info":{"name":"stackin","version":"0.8.1"},"category":"finance","tags":["productivity","project","developer"],"kind":"remote","source":"registry","submitted":{},"first_party":false,"domain_rank":null,"score":100,"indexable":true,"first_seen":"2026-09-09","stars":0,"badges":[],"sponsor":null,"page":"https://agentsindex.org/agents/io-github-stackin-io-stackin/"}