Skip to main content

A Grok Bot plug-in previews Mexican CFDI invoices and issues them after approval

GitHubGitHubCFDI-Express2026-11-23

Life assistantGetting startedSource read in fullRead first
GitHubGitHubCFDI-Express2026-11-23

Open original

Overview

Mexican CFDI 4.0 tax invoice users install the official CFDI Express plug-in, query SAT codes, preview, authorize issuance and retrieve PDF/XML in chat.

Workflow

  1. What it is: The official CFDI Express Agent Plugin for Mexican CFDI 4.0 tax invoices in Grok Bot, Cursor and other clients. The portable package has a plugin.json manifest, mcp.json remote MCP and one skill. It previews and issues invoices, credit notes, payment complements (REP), payroll and platform withholding in a CFDI Express account, searches SAT codes, checks status and retrieves files. The README calls it official.
  2. Grok Bot parts used: Marketplace install, a skill and remote MCP. Install from Grok Bot Marketplace (x.ai/bot/marketplace). The skill is skills/cfdi-express/SKILL.md. Streamable HTTP MCP runs at https://api.cfdi.express/mcp and uses CFDI Express OAuth 2.1. Not part of Grok Bot: the vendor's hosted SAT backend, dash.cfdi.express admin dashboard and support for clients such as Cursor.
  3. You need: A CFDI Express account and timbres for production. Prices are not stated in the source. CSD certificates and new issuers are managed in the dashboard, outside MCP. There are no bundled API keys. For free, non-fiscal testing, use the SAT sandbox https://api.cfdi.express/mcp/test.
  4. Install: Use Grok Bot Marketplace once listed.
    • Step 1: Install cfdi-express from Grok Bot Marketplace, or Cursor Marketplace for Cursor.
    • Step 2: When prompted, sign into CFDI Express via OAuth 2.1. The skill then takes effect automatically.
    • Local test on Cursor before listing: Copy the repo to ~/.cursor/plugins/local/cfdi-express and reload the window.
  5. After install: The skill handles CFDI previews, issuance, cancellations and queries and SAT code lookups.
    • Typical flow: list_merchants and get_balance → SAT directory with search_product_codes or search_unit_codes → preview_invoice or similar → after approval, call create_* with the preview's idempotency_key → get_* for official PDF and XML links.
    • Safety: Never invent RFC, legal name, tax regime or postal code. Ask for missing fields. Production issuance spends timbres and is irreversible.
    • Grok Bot lacks interactive preview cards. Summarize in text and wait for explicit chat approval (PR #2).
    • Prices include IVA/IEPS by default. Pass pricesIncludeTax: false for pre-tax prices (PR #2).
  6. Did the author run it: The repository has no run records from the author. Files are the manifest, MCP config, logo, README and skill. Three PRs cover packaging, docs and Cursor manifest changes. PR #2 says MCP already implements the behavior, with no chats or run results.

Key points and results

  • Maturity: At fetch on 2026-11-24 it was under one day old, with 3 commits, 0 stars, 0 forks, an MIT license and 2 open issues/PRs. The README calls it official. Package version 1.0.1 (PR #2).
  • Permissions and boundaries: Real issuance needs preview and explicit approval in chat. CSD certificates and new issuers stay out of MCP. No keys are bundled. Never invent tax fields and ask if missing.
  • Known limits: Production issues real invoices, uses timbres and is irreversible. Cancellation also uses timbres. Clients without cards confirm previews through text.
  • Worth borrowing: Use preview → idempotency_key → create (skills/cfdi-express/SKILL.md). For irreversible actions, preview, obtain the idempotency key, wait for confirmation and execute.
  • Worth borrowing: Encode tax constraints directly in the skill (skills/cfdi-express/SKILL.md). Never invent RFC, tax regime or similar fields and ask about missing values.
  • Worth borrowing: Define a fallback for clients without preview cards. Use a text summary and chat confirmation (PR #2).

Source

Platform
GitHub
Author
CFDI-Express
Published
Categories
Life assistant, Getting started

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.