Facturapi MCP Server (UsefulAPI)
Lire les clients, les factures et les reçus ; créer des clients, des produits et des brouillons de facture dans Facturapi. Serveur distant hébergé pour ChatGPT, Claude et Cursor, avec connexion OAuth et offre gratuite. Non affilié à Facturapi.
Serveur MCP hébergé
npx add-mcp 'https://facturapi.usefulapi.io/mcp'S’installe dans Claude Code, Codex, Cursor et plus
Documentation
Facturapi MCP server
Read customers, invoices and receipts; create customers, products and draft invoices in Facturapi.
Hosted by UsefulAPI: connect it to Claude, ChatGPT, Cursor or any MCP client.
Independent service by UsefulAPI. Not affiliated with or endorsed by Facturapi.
Connect 50 free tool calls a month
What can I ask?
Turn on the Facturapi by UsefulAPI connector, then ask in plain words. The AI picks the tools.
- Which invoices from this month are still unpaid, and what is the total?
- Find the customer with RFC XAXX010101000 and show their details.
- Create a draft invoice for customer cus_123 with two units of product prd_456.
- Search the SAT product key catalog for software services.
What you can do with Facturapi in Claude and ChatGPT
For Mexican businesses that issue CFDI invoices with Facturapi.
Find invoices and their totals
Filter invoices by date range, customer or payment status. Open one invoice for its SAT UUID, items and totals.
Look up a customer and its tax details
Search or list customers. Open one customer for its RFC, tax system and address.
Find the catalog keys for a product
Search the SAT product and service key catalog and the unit key catalog. List the products you already have before adding one.
Get the PDF or XML file of an invoice
Get a temporary download link for an invoice as PDF or XML. Open the invoice for its status and cancellation state.
Review e-receipts before invoicing them
List e-receipts by date range or customer. Open one receipt for its items, total and whether it was invoiced.
Create a customer and a draft invoice
Create a customer record. Then create a draft invoice for that customer. A draft is not stamped and not sent to the SAT.
Changes data
How do I connect Facturapi?
Before you connect
The login page asks for your Facturapi secret key.
Use a sk_test_ key to try things out, or a sk_live_ key for real invoices. Find the keys in your Facturapi dashboard under the organization's API keys. Account keys (sk_user_) are not accepted. The key is used only to call the API on your behalf and to derive a private account id.
Claude claude.ai · Desktop
Add to Claude or add it manually
Open Customize → Connectors → + Add → Add custom connector, then enter the name Facturapi by UsefulAPI and this URL:
https://facturapi.usefulapi.io/mcp
The Claude Free plan allows one custom connector.
- In the dialog, click Continue, keep the detected options and confirm.
- Claude opens the login page: enter your Facturapi secret key.
- In a chat, click + → Connectors and turn on Facturapi by UsefulAPI.
Team and Enterprise: an Owner adds it for the organization first.
ChatGPT chatgpt.com
- Open Plugins, click +, then Add custom MCP server.
- Enter the name Facturapi by UsefulAPI and this URL, choose OAuth as the authentication, confirm the warning and create it: https://facturapi.usefulapi.io/mcpCopy
- ChatGPT opens the login page: enter your Facturapi secret key.
- In Plugins, install Facturapi by UsefulAPI, then choose it in a chat.
No Add custom MCP server option? It depends on your account or workspace settings: see OpenAI's guide.
Perplexity perplexity.ai · Mac
- Open Plugins in the sidebar, then Add custom → Add MCP connector (Mac app: Add custom → Connector → Add MCP connector) and select Remote.
- Enter the name Facturapi by UsefulAPI and this URL. Under Advanced, choose OAuth and Streamable HTTP: https://facturapi.usefulapi.io/mcpCopy
- Select the risk checkbox, then Add.
- Select the Facturapi by UsefulAPI card. Perplexity opens the login page: enter your Facturapi secret key.
Custom connectors need Perplexity Pro, Max or Enterprise. Enterprise: an admin adds it in Organization settings → Connectors and turns it on.
Claude Code
Run this command, then run /mcp in Claude Code to log in:
claude mcp add --transport http facturapi https://facturapi.usefulapi.io/mcp
or add it to claude.ai from here
Claude Code 2.1.335 or later, signed in with a claude.ai Pro, Max or Ultra plan: this command opens claude.ai with the connector filled in. Add it and connect it there. Claude Code then loads it when it starts again, and it also works in Claude on the web, desktop and phone.
claude mcp add --web 'Facturapi by UsefulAPI' https://facturapi.usefulapi.io/mcp
or install it as a plugin
Add the UsefulAPI plugin marketplace once, then install Facturapi from it. Run /mcp to log in.
claude plugin marketplace add https://usefulapi.io/claude/marketplace.json
claude plugin install facturapi@usefulapi
Cursor
Add to Cursor or add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"facturapi": {
"url": "https://facturapi.usefulapi.io/mcp"
}
}
}
VS Code
Add to VS Code or add this to .vscode/mcp.json:
{
"servers": {
"facturapi": {
"type": "http",
"url": "https://facturapi.usefulapi.io/mcp"
}
}
}
Codex
Run these commands. The second one opens the login page:
codex mcp add facturapi --url https://facturapi.usefulapi.io/mcp
Other clients
Windsurf, Cline, Zed and other MCP clients: add this URL as a remote MCP server (Streamable HTTP). The client then opens the login page in your browser.
https://facturapi.usefulapi.io/mcp
Add only the URL. Do not add an Authorization header or an API key to the client config. The server signs you in with OAuth: the login page asks for your Facturapi secret key. If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401.
Pricing
| Plan | Price | Limit |
|---|---|---|
| Free | $0 | 50 tool calls / month |
| Proper user | $15/mo · $150/yr | 10,000 tool calls / month |
| Pro+per user | $45/mo · $450/yr | 100,000 tool calls / month |
Each paid plan covers this Facturapi server only. Ask your AI to run facturapi_upgrade and choose Pro or Pro+, billed monthly or yearly (it returns a Stripe Checkout link). If you already have Pro, ask to change it to Pro+. The change requires your confirmation, keeps your billing interval and charges the price difference for the rest of the period immediately. Cancel any time with facturapi_cancel_subscription: your paid plan continues to the end of the paid period, with no refund for the current period, and asking to resume the same plan with facturapi_upgrade before then undoes the cancel. Or write to [email protected].
Tools 19
Show all 19 tools (the AI picks them for you)
Read only · 12
- Get the organization
facturapi_get_organizationGet the organization that owns this API key: legal name, tax id (RFC), tax regime, environment, and settings. Good first call to confirm which company the key controls. - List customers
facturapi_list_customersSearch or list the organization's customers (receivers of invoices) with legal name, RFC, tax system and email. - Get a customer
facturapi_get_customerGet one customer by id, including RFC, legal name, tax system, address and default invoice use. - List products
facturapi_list_productsSearch or list the organization's products and services (catalog items used on invoices) with description, product key, price, unit and taxes. - Get a product
facturapi_get_productGet one product by id, including its SAT product key, unit key, price and tax settings. - Search SAT product keys
facturapi_search_product_keysSearch the SAT product and service key catalog (clave prodserv), needed to create a product. Use the returned key as product_key. - Search SAT unit keys
facturapi_search_unitsSearch the SAT measurement unit catalog (clave unidad), needed for a product's unit_key. - List invoices
facturapi_list_invoicesList or search CFDI invoices: folio, customer, total, payment status, SAT UUID and date. Filter by date range, customer, type, payment status or series. - Get an invoice
facturapi_get_invoiceGet one invoice by id: status, folio, SAT UUID, customer, items, totals, payment status and cancellation status. - Get an invoice download link
facturapi_get_invoice_download_urlGet a temporary download URL for an invoice file: PDF, XML or ZIP (PDF and XML). - List e-receipts
facturapi_list_receiptsList or search e-receipts (non-fiscal sales receipts that a customer can later convert to an invoice). Filter by date range or customer. - Get an e-receipt
facturapi_get_receiptGet one e-receipt by id, including its items, total, customer and whether it was invoiced.
Changes data · 3
- Create a customer
facturapi_create_customerCreate a customer (invoice receiver) with legal name, RFC, SAT tax system and postal code. Creates a record only; nothing is sent or stamped. - Create a product
facturapi_create_productCreate a product or service for invoices, with its SAT product key, price and unit. Use facturapi_search_product_keys and facturapi_search_units first. - Create a draft invoice
facturapi_create_draft_invoiceCreate a DRAFT CFDI invoice for an existing customer and existing products. A draft is not stamped and not sent to the SAT; review it in the Facturapi dashboard before stamping there. Facturapi API: POST /invoices with status 'draft'.
Your UsefulAPI plan · 4
- Usage status (free-tier meter)
facturapi_usage_statusReport the caller's current usage: the plan, calls used this month, the limit of the plan (the free monthly cap or the Pro fair use limit), remaining, and whether the limit is reached. Read-only; does not count against the meter. - Request a missing feature
facturapi_request_featureTell UsefulAPI that the user needs something the Facturapi tools cannot do yet (a missing tool, field or filter). Call it only when the user asks for something none of the tools can do, and tell the user that you send the request. Do not call it for errors or for normal requests. Do not include personal data, credentials or customer records. Stored with the product name and the client type (for example Claude or Cursor), without the user's account. At most 5 requests per day. Does not count against the meter. - Upgrade to Pro or Pro+
facturapi_upgradeGet a paid plan for Facturapi (the free tier caps monthly usage). Pro: 10,000 tool calls a month, for normal use — plan "monthly" ($15/month) or "yearly" ($150/year, 2 months free). Pro+: 100,000 tool calls a month, for automations and heavy use — plan "plus" ($45/month) or "plus_yearly" ($450/year). Without a plan, a free account gets both Pro and Pro+, each with a payment link, for the user to choose, and a Pro subscriber gets the Pro+ link; with a plan, one link. Exception: a free account at the free limit (and below Pro's) with no earlier subscription or trial for this server also gets a free 7-day Pro trial link, without a plan or next to the Pro link with plan "monthly". An existing Pro subscription changes to Pro+ in place: the reply gives a link to Stripe's page, which shows the exact charge (the price difference for the rest of the period; in a free Pro trial the full Pro+ price, as the trial ends) and changes the plan only when the user confirms there. This tool never charges. Cancel any time: the plan then runs to the end of the paid period, so it also suits a one-time job. A link opens Stripe Checkout in the browser; after payment the account upgrades automatically. Does not count against the meter. - Cancel the Pro subscription
facturapi_cancel_subscriptionCancel the caller's Facturapi Pro subscription at the end of the paid period (no refund for the current period; Pro continues until then, then the free tier applies). Requires confirm: true. Run facturapi_upgrade later to undo the cancel before the period ends. Does not count against the meter.
FAQ
What can I do with Facturapi in Claude or ChatGPT?
Find invoices and their totals. Look up a customer and its tax details. Find the catalog keys for a product. Get the PDF or XML file of an invoice. Review e-receipts before invoicing them. Create a customer and a draft invoice. See what you can do for the details.
Is this an official Facturapi product?
No. UsefulAPI is an independent service. It is not affiliated with or endorsed by Facturapi. The server calls the Facturapi API with your own Facturapi access, so it sees only the data that your account can see.
Can I connect Facturapi to Claude or ChatGPT?
Yes. In Claude, add this server's URL as a custom connector. In ChatGPT, add it as a custom MCP server in Plugins. Then log in once. Cursor, VS Code, Claude Code and Codex work too. See the setup steps.
How is this different from a self-hosted Facturapi MCP server?
This server runs on UsefulAPI's infrastructure. You add its URL to your AI client and log in. You do not install or run anything, and you do not put a key in a config file. Because it is a remote server, Claude on the web and on mobile and ChatGPT on the web (on plans and workspaces that allow custom MCP servers) can connect to it directly. When we add or fix tools, the server changes for every user. Some clients must refresh the connection to show new tools. A self-hosted server runs on a computer or server that you manage, so you control where your credentials are kept. You install, update and host it yourself. Web clients such as claude.ai and ChatGPT can use it only through a public HTTPS address or a tunnel.
What do I need to connect?
The login page asks for your Facturapi secret key. See Before you connect for where to find it.
Do I put my Facturapi key or an Authorization header in the client config?
No. Add only the URL. Do not add an Authorization header or an API key to the client config. The server signs you in with OAuth: the login page asks for your Facturapi secret key. If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401.
How do you keep my Facturapi credentials?
The login stores them encrypted in the authorization grant of your connection. The server uses them to call the Facturapi API for you and to derive a private account id for usage metering. UsefulAPI does not show them on any page or in any reply. To stop all access, remove the connector and change or delete these credentials in Facturapi.
Can the AI change my Facturapi data?
Yes, if you approve it. 3 of the 15 Facturapi tools can create or change data. The other 12 are marked read-only. Most MCP clients ask you to approve a tool call before it runs.
What does it cost?
The Free plan gives 50 tool calls / month. Pro costs $15/mo or $150/yr, with 10,000 tool calls / month. Pro+ costs $45/mo or $450/yr, with 100,000 tool calls / month. These limits count tool calls to this UsefulAPI server (facturapi_usage_status is free). They do not change the limits of the Facturapi API, which still apply. Each subscription covers this Facturapi server only. Cancel any time: your paid plan then runs to the end of the paid period. Run facturapi_usage_status to see how many calls you used.
How do I subscribe or cancel?
Ask the AI to run facturapi_upgrade and choose Pro or Pro+, billed monthly or yearly: it returns a Stripe Checkout link. If you already have Pro, ask to change it to Pro+. After you confirm, your existing subscription changes in place, keeps its billing interval and charges the price difference for the rest of the period immediately. To cancel, run facturapi_cancel_subscription. Your paid plan continues to the end of the paid period.
What if a Facturapi tool that I need is missing?
Tell the AI what you wanted to do. It can send the request with facturapi_request_feature. We store the text with the server name, the type of AI client and the tool you tried, not with your account, and read every request when we plan new tools. You can send up to 5 requests per day.
Which AI clients can I use?
Any client that supports remote MCP servers (Streamable HTTP) with OAuth login: Claude (web and desktop), Claude Code, ChatGPT, Codex, Perplexity, Cursor, VS Code, Windsurf and others.
This is a Model Context Protocol endpoint — meant to be connected from an AI client, not opened in a browser. An invalid_token response at the URL is the auth gate working as designed; clients authenticate automatically.
Need a tool this server does not have, or a connection to another system? We build custom integrations and MCP servers.