mcp-facture-electronique-fr
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HTTP_TIMEOUT | No | Timeout des requêtes (défaut : 30s) | 30 |
| PA_CLIENT_ID | Yes | Client ID OAuth2 | |
| PA_TOKEN_URL | Yes | URL du serveur d'authentification | |
| PA_BASE_URL_FLOW | Yes | URL de base du Flow Service de la PA | |
| PA_CLIENT_SECRET | Yes | Client Secret OAuth2 | |
| PA_BASE_URL_DIRECTORY | Yes | URL de base du Directory Service de la PA |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| submit_flowA | Submit an electronic invoice, e-reporting, or lifecycle status to the Approved Platform. This is the primary action for sending B2B invoices (Factur-X, UBL, CII), B2BInt/B2C e-reportings, or CDAR lifecycle status messages. BEHAVIOR:
RESPONSE on success: includes flowId (AP-assigned identifier), trackingId (echoed back), status (initial processing status), and submittedAt timestamp. USAGE GUIDELINES:
|
| search_flowsB | Search flows (invoices, statuses, e-reportings) in the Approved Platform by criteria: flow type, status, processingRule, period, trackingId. Pagination via updatedAfter: use the 'nextUpdatedAfter' field from the response as the updated_after parameter value to get the next page. |
| get_flowA | Retrieve a flow by its identifier. docType allows choosing between JSON metadata (Metadata), the original document (Original), the converted document (Converted), or the readable representation (ReadableView). By default, returns the JSON metadata (status, dates, identifiers). |
| submit_lifecycle_statusA | Emit a processing status on a received invoice: Refused, Approved, PartiallyApproved, Disputed, Suspended, Cashed, PaymentTransmitted, Cancelled. Refused and Cashed are mandatory transmissions to PPF. Reason is mandatory for Refused and Disputed. |
| healthcheck_flowA | Check the availability of the Approved Platform's Flow Service. Returns the operational status of the service (ok/degraded/unavailable). Use before an invoice submission session to ensure the AP is reachable. |
| search_companyA | Search for companies (legal units / SIRENs) in the PPF directory by criteria. Returns VAT-registered French legal units recorded in the PPF directory. A company must appear here before its establishments (SIRETs) or directory lines can be used. BEHAVIOR:
RESPONSE: each item includes siren, name, status (Active/Inactive/Pending), approvedPlatformId, and timestamps (createdAt, updatedAt). USAGE GUIDELINES:
|
| get_company_by_sirenA | Look up a company in the PPF directory by its SIREN number. Returns the full legal unit information: company name, administrative status, associated Approved Platform, and registration dates. |
| search_establishmentA | Search for establishments (SIRETs) in the PPF directory by criteria. An establishment is a physical place of business activity identified by its 14-digit SIRET. Each company (SIREN) can have multiple establishments. BEHAVIOR:
RESPONSE: each item includes siret, siren, name, administrativeStatus (Active/Inactive), approvedPlatformId, and timestamps (createdAt, updatedAt). USAGE GUIDELINES:
|
| get_establishment_by_siretA | Look up an establishment in the PPF directory by its SIRET number. Essential for verifying the receiving address before sending an invoice. Returns the establishment details, its status, and its Approved Platform. |
| search_routing_codeA | Search routing codes registered in the PPF directory for a recipient. Routing codes subdivide a SIRET receiving address to department or service level, allowing a company to route invoices to different internal units (e.g. purchasing, accounting). BEHAVIOR:
RESPONSE: each item includes instanceId, siret, siren, routingCode, label (optional), and timestamps. The instanceId is required to update or delete a routing code. USAGE GUIDELINES:
|
| create_routing_codeA | Create a new routing code for a SIRET in the PPF directory. Routing codes let a recipient company route incoming invoices to specific departments or services. Once created, the code can be referenced in a directory line (create_directory_line) and communicated to senders to use in invoice addressing. BEHAVIOR:
RESPONSE: includes instanceId (required for update/delete), siret, siren, routingCode, label, createdAt. USAGE GUIDELINES:
|
| update_routing_codeA | Partially update an existing routing code in the PPF directory (PATCH semantics). Only the fields explicitly provided are modified; omitted fields keep their current values. Use to rename a routing code value or update its label without recreating it. BEHAVIOR:
RESPONSE: the full updated routing code object — instanceId, siret, siren, routingCode, label, updatedAt. USAGE GUIDELINES:
|
| search_directory_lineA | Search directory lines (electronic invoice receiving addresses) for a taxable entity. A directory line maps an addressing identifier (SIREN, SIREN/SIRET, or SIREN/SIRET/routing-code) to an Approved Platform and an optional technical address. It is the authoritative record of where the recipient wants to receive invoices. BEHAVIOR:
RESPONSE: each item includes instanceId, addressingIdentifier (SIREN[/SIRET[/routingCode]]), approvedPlatformId, technicalAddress (optional), and timestamps (createdAt, updatedAt). The instanceId is required for update_directory_line and delete_directory_line. USAGE GUIDELINES:
|
| get_directory_lineA | Look up a directory line by its addressing identifier. Use before any invoice submission to verify recipient reachability and obtain their receiving Approved Platform. Returns 404 if the recipient is not yet registered in the PPF directory. |
| create_directory_lineA | Create a directory line (electronic invoice receiving address) for a taxable entity. Required to register in the PPF directory and allow other companies to send you electronic invoices. A line can be at SIREN level (entire company), SIREN/SIRET (one establishment), or SIREN/SIRET/routing-code (a specific department). |
| update_directory_lineA | Partially update an existing directory line. Only the provided fields are modified (PATCH semantics). Typically used to update the technical address after a configuration change on the Approved Platform side. |
| delete_directory_lineA | Delete a directory line. Use when changing Approved Platform or closing an establishment. After deletion, create a new line via create_directory_line if needed. WARNING: irreversible action — verify the instance_id before calling this tool. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmendezs/mcp-facture-electronique-fr'
If you have feedback or need assistance with the MCP directory API, please join our Discord server