Summary
Egyptian Tax Authority e-Invoicing API for a registered ERP system: search sent and received e-invoices, credit and debit notes, read a document's details, signed original or PDF printout, follow submissions, export document packages, read document types, notifications and EGS/GS1 item codes. Cancel, reject and decline actions are included but installed switched off. No document submission.
Guided setup
Connect Egyptian Tax Authority e-Invoicing to Cursor in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Egyptian Tax Authority e-Invoicing in the guided setup, then add your MCP URL to Cursor. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Egyptian Tax Authority e-Invoicing (ETA)
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Egyptian Tax Authority e-Invoicing (ETA), paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Egyptian Tax Authority e-Invoicing (ETA) + Cursor
Egyptian Tax Authority e-Invoicing API for a registered ERP system: search sent and received e-invoices, credit and debit notes, read a document's details, signed original or PDF printout, follow submissions, export document packages, read document types, notifications and EGS/GS1 item codes. Cancel, reject and decline actions are included but installed switched off. No document submission.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
ETA_API_HOST, ETA_ID_HOST, ETA_CLIENT_ID, ETA_CLIENT_SECRET
Step 1 — Get credentials
Setting up takes about 10 minutes. You need a taxpayer registered on the ETA e-Invoicing portal and access to its administrator account. The connector signs in as an ERP system registered in the taxpayer profile, and needs four values: the identity host, the API host, a client ID and a client secret.
- Sign in to the e-Invoicing portal as the taxpayer's administrator: invoicing.eta.gov.eg for production, preprod.invoicing.eta.gov.eg for testing.
- Open the taxpayer profile, ERP systems, and click Register ERP. ETA shows a client ID and two client secrets; either secret works, so keep the second as a spare. The secrets are shown only once.
- Copy the client ID into
ETA_CLIENT_IDand one secret intoETA_CLIENT_SECRET. - Pick the environment with two hosts that must match. Production:
ETA_ID_HOST=id.eta.gov.egandETA_API_HOST=api.invoicing.eta.gov.eg. Preproduction:id.preprod.eta.gov.egandapi.preprod.invoicing.eta.gov.eg. Credentials from one environment do not work in the other; production and preproduction have separate registrations. - Install the connector and run
egypt_eta_list_document_typesto check the connection.
Authentication: OAuth 2 client credentials at https://<ETA_ID_HOST>/connect/token with the scope InvoicingAPI. The token lasts one hour and the connector requests a new one on its own. Signing in on behalf of another taxpayer (intermediaries) is not supported: register the ERP system in the represented taxpayer's own profile instead.
Cloud and self-hosted work the same way: the credentials are the same, and there is no redirect URL to set.
No document submission: ETA accepts a new invoice only with a CAdES-BES electronic signature made with the taxpayer's e-seal on a USB token or an HSM, after the document has been serialised to ETA's canonical form. The connector cannot produce that signature, so it has no submit tool. Documents are still issued from your ERP or signing tool; the connector reads them, follows their submissions and exports them.
Where to start: egypt_eta_search_documents is the main list. It needs one date pair, submission_date_from and submission_date_to or issue_date_from and issue_date_to, at most 30 days apart, and filters by direction (Sent or Received), status, document type, receiver or issuer, uuid or internal id. It pages with a continuation token until it reads EndofResultSet. egypt_eta_list_recent_documents is the older listing with page numbers, capped at 10,000 documents.
One document: egypt_eta_get_document_details returns the status, validation steps, cancel and reject request dates and the full document with its lines and taxes. egypt_eta_get_document_raw returns the document as submitted, JSON or XML, with its signatures, and egypt_eta_get_document_pdf the official printout as a PDF attached to the result. egypt_eta_get_submission shows a batch your ERP sent: in progress, valid, partially valid or invalid, with each document's status.
Exports and reference data: egypt_eta_request_document_package asks ETA for a summary or full package (JSON, XML, or CSV for summaries), egypt_eta_list_package_requests shows when it is complete, and egypt_eta_download_document_package fetches the ZIP. egypt_eta_list_document_types, egypt_eta_get_document_type and egypt_eta_get_document_type_version describe the document types, their schemas and their time limits; egypt_eta_list_notifications lists the notifications sent to the taxpayer; egypt_eta_search_published_codes, egypt_eta_get_code_details and egypt_eta_search_my_code_usage_requests look up EGS and GS1 item codes and your own code requests.
Switched off at install: egypt_eta_cancel_document (the issuer cancels a valid document), egypt_eta_reject_document (the receiver rejects a document it received), egypt_eta_decline_cancellation (the receiver objects to the issuer's cancellation, so the document becomes valid again) and egypt_eta_decline_rejection (the issuer objects to the receiver's rejection). Each is legally relevant, allowed only once per document and only within the document type's time limit (for example 72 hours for a rejection). Switch them on on the connector page only when you need them; the AI shows you the document and the reason and waits for your yes. After the time limit ETA answers OperationPeriodOver and a credit note is the way to correct.
Values: document types are i invoice, c credit note, d debit note, ii import invoice, ei export invoice, ec export credit note and ed export debit note. Statuses are Valid, Invalid, Rejected, Cancelled and Submitted; receivers only see Valid, Rejected and Cancelled documents. Dates are UTC (ISO 8601) and amounts are in EGP. Names and item descriptions are often in Arabic and are quoted as they are. Search results leave out the document's public link, because anyone with it can read the document.
Limits: ETA throttles each ERP system per API: 2 calls a second for search and document details, 3 for recent documents, one PDF every 5 seconds, one published-code search every 10 seconds. Over the limit it answers 429 with Retry-After, under general load 503. Narrow date ranges and the search work better than opening many documents one by one.
Common errors: invalid_client at the token step or a 401 usually means the hosts and the credentials belong to different environments, or the ERP system's credentials were revoked. 403 comes from a restriction tag on the taxpayer profile or a document of another taxpayer. 404 for a receiver means the document is submitted or invalid, which receivers cannot see. ActiveReferencingDocuments on a cancellation means a credit or debit note refers to the document.
Not covered: document submission, the e-Receipt (B2C point of sale) API, which needs a separate POS login, and changes to EGS codes.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Cursor
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Cursor reads MCP servers from ~/.cursor/mcp.json. Add this entry:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of
YOUR_MCP_API_KEY. - Save the file and restart Cursor.
- Open Cursor → Settings → MCP and check that
anythingmcpis listed and connected. - Start chatting — the agent can now call the
Egyptian Tax Authority e-Invoicing (ETA)tools.
Available tools
| Tool | What it does |
|---|---|
egypt_eta_search_documents | Search the e-invoices, credit notes and debit notes the taxpayer issued or received, newest first |
egypt_eta_list_recent_documents | List recent documents the taxpayer issued or received with page numbers (the older listing, at most 10,000 documents per query and a 30-day… |
egypt_eta_get_document_details | Get one e-invoice, credit or debit note by its ETA uuid: status, validation results step by step, submission uuid, cancel and reject… |
egypt_eta_get_document_raw | Get one document as it was submitted (the signed original, with its signatures) plus its summary fields, validation results and… |
egypt_eta_get_document_pdf | Download the official ETA printout of one document as a PDF file, attached to the result |
egypt_eta_get_submission | Get one submission (a batch of documents the ERP sent) by its submission uuid: overall status (in progress, valid, partially valid… |
egypt_eta_list_document_types | List the document types of the e-Invoicing system (invoice, credit note, debit note, export and import types), active and deactivated, each… |
egypt_eta_get_document_type | Get one document type by its numeric id: name, description, versions and the workflow parameters, which hold the time limits in hours for… |
egypt_eta_get_document_type_version | Get one version of a document type: type name, version name and number, status, active dates and the JSON and XML schemas of the document… |
egypt_eta_request_document_package | Ask ETA to prepare a bulk export (document package) of the taxpayer's documents for a date range, as summary or full documents in JSON, XML… |
egypt_eta_list_package_requests | List the document package requests of the taxpayer: package id, submission date, status (1 in progress, 2 complete, 3 error, 4 deleted)… |
egypt_eta_download_document_package | Download a completed document package as a ZIP file (JSON, XML or CSV inside), attached to the result |
egypt_eta_list_notifications | List the notifications ETA sent to the taxpayer (document received, validated, cancelled or rejected, download ready, OTP and others)… |
egypt_eta_search_published_codes | Search the published item codes of the EGS or GS1 catalogue by code, parent code, name, description or the taxpayer that created it: code… |
egypt_eta_get_code_details | Get one EGS or GS1 item code by its item code: English and Arabic name and description, active dates, level and the parent code with its… |
egypt_eta_search_my_code_usage_requests | Search the taxpayer's own EGS code usage requests (new codes and reuse of existing ones) and their approval status: item code, name… |
egypt_eta_cancel_document | Cancel a valid document the taxpayer issued, with a reason (e.g. wrong buyer details) |
egypt_eta_reject_document | Reject a document the taxpayer received, with a reason |
egypt_eta_decline_cancellation | As the receiver, object to the issuer's cancellation of a document: the document becomes valid again |
egypt_eta_decline_rejection | As the issuer, object to the receiver's rejection of a document: the document becomes valid again |
Example prompts
- "Which invoices did we send in the last 30 days that ETA marked Invalid, and why?"
- "List the documents we received this month, grouped by issuer, with their totals in EGP."
- "What is the status of our last submission, and which documents in it failed validation?"
- "Download the PDF printout of invoice INV-2026-1043."
- "Request a summary package in CSV of all sent invoices from October."
FAQ
Can it submit new e-invoices to ETA? No. ETA requires a CAdES-BES signature made with the taxpayer's e-seal on a USB token or HSM, which the connector cannot produce. Issue documents from your ERP or signing tool; the connector reads and follows them.
Can I test against preproduction first? Yes. Register an ERP system on preprod.invoicing.eta.gov.eg and set ETA_ID_HOST to id.preprod.eta.gov.eg and ETA_API_HOST to api.preprod.invoicing.eta.gov.eg. Preproduction credentials do not work in production.
Does Cursor support custom MCP servers on the free tier? Yes — MCP is available on Hobby, Pro and Business plans.
Next steps
Was this guide helpful?