Server data from the Official MCP Registry
MCP server for French e-invoicing (XP Z12-013). Manages invoices, validation and compliance.
MCP server for French e-invoicing (XP Z12-013). Manages invoices, validation and compliance.
This MCP server for French e-invoicing implements OAuth2 authentication and demonstrates good architectural design with proper separation of concerns. However, several security concerns exist: environment variable credential exposure in documentation examples, missing input validation in XML builders (potential XXE/injection), and inadequate error handling that could leak sensitive information. Permissions are appropriate for the stated purpose (e-invoicing API integration), but the missing validation controls and documentation patterns warrant attention. Supply chain analysis found 6 known vulnerabilities in dependencies (1 critical, 3 high severity). Package verification found 1 issue.
4 files analyzed ยท 15 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-cmendezs-mcp-facture-electronique-fr": {
"args": [
"mcp-facture-electronique-fr"
],
"command": "uvx"
}
}
}From the project's GitHub README.
A Python MCP server exposing the standardized AFNOR XP Z12-013 APIs for the French e-invoicing reform (effective September 1, 2026). This project enables AI agents (Claude, IDEs) to interact natively with the Approved Platform (PA/PDP) ecosystem as a Compatible Solution (SC).
This package is built on top of mcp-einvoicing-core, a shared base library for European e-invoicing MCP servers. It provides the OAuth2 HTTP client, token cache, shared models, logging utilities, and exception hierarchy used by this package.
mcp-einvoicing-core is installed automatically as a transitive dependency, no extra step is needed.
For contributors:
pip install -e ".[dev]"installs the base package from PyPI automatically.
The server acts as an intelligent communication interface between your AI agent and the technical infrastructure of the reform:
[ ERP / Business IS ] <--> [ MCP Server ] <--> [ Approved Platform (PA/PDP) ]
^ |
| v
[ AI Agent (Claude) ] <--- (XP Z12-013 Standard)
| Service | Domain | Standard | MCP Tools |
|---|---|---|---|
| Flow Service | Invoice flows and e-reporting | Annex A, v1.1.0 | 5 tools |
| Directory Service | Central directory (SIREN/SIRET) | Annex B, v1.1.0 | 12 tools |
pip install mcp-facture-electronique-fr
Or without prior installation using uvx:
uvx mcp-facture-electronique-fr
# Clone the repository
git clone https://github.com/cmendezs/mcp-facture-electronique-fr.git
cd mcp-facture-electronique-fr
# Create the virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install in editable mode
pip install -e ".[dev]"
# Initial configuration
cp .env.example .env
# Edit .env with the credentials provided by your PA/PDP
The server requires the following variables to authenticate with an Approved Platform (PA):
| Variable | Description |
|---|---|
PA_BASE_URL_FLOW | Base URL of the PA Flow Service |
PA_BASE_URL_DIRECTORY | Base URL of the PA Directory Service |
PA_CLIENT_ID | OAuth2 Client ID |
PA_CLIENT_SECRET | OAuth2 Client Secret |
PA_TOKEN_URL | Authentication server URL |
HTTP_TIMEOUT | Request timeout (default: 30s) |
To use this server with Claude, add this configuration to your claude_desktop_config.json file:
{
"mcpServers": {
"facture-electronique-fr": {
"command": "uvx",
"args": ["mcp-facture-electronique-fr"],
"env": {
"PA_BASE_URL_FLOW": "https://api.votre-pdp.fr/flow",
"PA_BASE_URL_DIRECTORY": "https://api.votre-pdp.fr/directory",
"PA_CLIENT_ID": "votre-id",
"PA_CLIENT_SECRET": "votre-secret",
"PA_TOKEN_URL": "https://auth.votre-pdp.fr/oauth/token"
}
}
}
}
Cursor supports MCP servers via stdio. Add the configuration in:
~/.cursor/mcp.json.cursor/mcp.json{
"mcpServers": {
"facture-electronique-fr": {
"command": "uvx",
"args": ["mcp-facture-electronique-fr"],
"env": {
"PA_BASE_URL_FLOW": "https://api.votre-pdp.fr/flow",
"PA_BASE_URL_DIRECTORY": "https://api.votre-pdp.fr/directory",
"PA_CLIENT_ID": "votre-id",
"PA_CLIENT_SECRET": "votre-secret",
"PA_TOKEN_URL": "https://auth.votre-pdp.fr/oauth/token"
}
}
}
}
Reload the Cursor window (Ctrl+Shift+P then Reload Window) to apply the changes.
Kiro supports MCP servers via its dedicated configuration file. Two levels are available:
~/.kiro/settings/mcp.json.kiro/settings/mcp.json{
"mcpServers": {
"facture-electronique-fr": {
"command": "uvx",
"args": ["mcp-facture-electronique-fr"],
"env": {
"PA_BASE_URL_FLOW": "https://api.votre-pdp.fr/flow",
"PA_BASE_URL_DIRECTORY": "https://api.votre-pdp.fr/directory",
"PA_CLIENT_ID": "votre-id",
"PA_CLIENT_SECRET": "votre-secret",
"PA_TOKEN_URL": "https://auth.votre-pdp.fr/oauth/token"
},
"disabled": false,
"autoApprove": []
}
}
}
The file is automatically reloaded on save. You can also open the config via the command palette (Cmd+Shift+P / Ctrl+Shift+P) then MCP.
Kiro security tip: rather than writing secrets in plain text, use the syntax
"PA_CLIENT_SECRET": "${PA_CLIENT_SECRET}", Kiro resolves shell environment variables at startup.
submit_flow: Submit invoices (Factur-X, UBL, CII) or e-reporting data.search_flows: Multi-criteria search of sent or received flows using the standard filters.submit_lifecycle_status: Update the lifecycle status (e.g., Made available, Collected, Dispute).get_flow: Retrieve the full details and attachments of a specific flow.healthcheck_flow: Test the connectivity and availability of the PA Flow API.get_company_by_siren / get_establishment_by_siret: Look up company and establishment records in the central directory.search_routing_code: Identify the platform code (routing address) of a recipient for invoice submission.manage_directory_line: Create, modify, and delete directory lines for managing the taxable entity services.# Run the unit and integration test suite
pytest tests/ -v
| Country | Server |
|---|---|
| ๐ Global | mcp-einvoicing-core |
| ๐ง๐ช Belgium | mcp-einvoicing-be |
| ๐ง๐ท Brazil | mcp-nfe-br |
| ๐ซ๐ท France | mcp-facture-electronique-fr |
| ๐ฉ๐ช Germany | mcp-einvoicing-de |
| ๐ฎ๐น Italy | mcp-fattura-elettronica-it |
| ๐ต๐ฑ Poland | mcp-ksef-pl |
| ๐ช๐ธ Spain | mcp-facturacion-electronica-es |
This project is distributed under the Apache 2.0 license. See the LICENSE file for details.
Project maintained by cmendezs. For any questions about the XP Z12-013 standard implementation, feel free to open an Issue.
Be the first to review this server!
by Modelcontextprotocol ยท Developer Tools
Web content fetching and conversion for efficient LLM usage
by Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.