Connector guide11-minute read20 MCP tools7 languages

Connect Egyptian Tax Authority to Microsoft Copilot via MCP

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.

HCBy HelpCode teamUpdated 11 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Egyptian Tax Authority e-Invoicing (ETA)

Egyptian Tax Authority e-Invoicing (ETA)

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.

tools

20

Region

EG

Category

Accounting

Authentication

OAuth 2.0

Required env vars

ETA_API_HOSTETA_ID_HOSTETA_CLIENT_IDETA_CLIENT_SECRET
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

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 Microsoft Copilot 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 Microsoft Copilot. 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.

Egyptian Tax Authority e-Invoicing (ETA) · live via MCP
Share
Opus 4.7

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) + Microsoft Copilot

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.

  1. 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.
  2. 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.
  3. Copy the client ID into ETA_CLIENT_ID and one secret into ETA_CLIENT_SECRET.
  4. Pick the environment with two hosts that must match. Production: ETA_ID_HOST = id.eta.gov.eg and ETA_API_HOST = api.invoicing.eta.gov.eg. Preproduction: id.preprod.eta.gov.eg and api.preprod.invoicing.eta.gov.eg. Credentials from one environment do not work in the other; production and preproduction have separate registrations.
  5. Install the connector and run egypt_eta_list_document_types to 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 Microsoft Copilot

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 shows YOUR_SERVER_ID.

Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.

  1. In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
  2. Enter a Server name (for example AnythingMCP), a Server description that says what the connector does, and the Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server.
  3. Under authentication, choose API key, set Type to Header and the header name to X-API-Key, then select Create.
  4. In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
  5. Try it in the agent's Test pane: ask for something that needs the Egyptian Tax Authority e-Invoicing (ETA) tools.
  6. Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.

Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.

Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.

Available tools

ToolWhat it does
egypt_eta_search_documentsSearch the e-invoices, credit notes and debit notes the taxpayer issued or received, newest first
egypt_eta_list_recent_documentsList 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_detailsGet 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_rawGet one document as it was submitted (the signed original, with its signatures) plus its summary fields, validation results and…
egypt_eta_get_document_pdfDownload the official ETA printout of one document as a PDF file, attached to the result
egypt_eta_get_submissionGet one submission (a batch of documents the ERP sent) by its submission uuid: overall status (in progress, valid, partially valid…
egypt_eta_list_document_typesList 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_typeGet 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_versionGet 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_packageAsk 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_requestsList 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_packageDownload a completed document package as a ZIP file (JSON, XML or CSV inside), attached to the result
egypt_eta_list_notificationsList the notifications ETA sent to the taxpayer (document received, validated, cancelled or rejected, download ready, OTP and others)…
egypt_eta_search_published_codesSearch 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_detailsGet 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_requestsSearch 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_documentCancel a valid document the taxpayer issued, with a reason (e.g. wrong buyer details)
egypt_eta_reject_documentReject a document the taxpayer received, with a reason
egypt_eta_decline_cancellationAs the receiver, object to the issuer's cancellation of a document: the document becomes valid again
egypt_eta_decline_rejectionAs 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.

Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.

What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.

The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.

Next steps

Was this guide helpful?

Connect Egyptian Tax Authority e-Invoicing to Microsoft Copilot 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 Microsoft Copilot. No code and no server to run.

Related guides

Connectors

Connect Egyptian Tax Authority to ChatGPT via MCP

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.

Connectors

Connect Egyptian Tax Authority to Claude via MCP

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.

Connectors

Connect Egyptian Tax Authority to Cursor via MCP

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.

Connectors

Connect Egyptian Tax Authority to Gemini CLI via MCP

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.

Connectors

Connect Egyptian Tax Authority to Meta Muse via MCP

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.

Connectors

Egyptian Tax Authority MCP Server for Claude & ChatGPT

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.