# LayerOne (DocX + Sign) [Health: Active]

**Category:** 🤝 Agreements & Coordination  
**Repository:** https://github.com/GOLayerone/layerone-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 125  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/layerone-docx-sign

## Description
MCP server for LayerOne DocX (documents & Factur-X) and Sign (e-signature) APIs.

## Tools
Capabilities this server exposes over MCP:

- **docx_render_facturx** — Génère une facture électronique conforme à la réforme 2026 (Factur-X / PDF-A3) à partir d'un modèle déposé et de données JSON. Renvoie un résumé du PDF généré (taille + aperçu base64 tronqué).
- **docx_render_document** — Génère un document (PDF ou DOCX) — devis, contrat, attestation — à partir d'un modèle déposé et de données JSON. Renvoie un résumé du fichier généré.
- **docx_list_templates** — Liste les modèles Word déposés pour la clé API. Un filtre optionnel par nom (contient le texte) est appliqué côté client à partir de la liste retournée.
- **docx_upload_template** — Dépose un modèle Word (.docx) sur le compte pour le réutiliser ensuite par son ID. Retourne l'ID du modèle et les balises {{ ... }} détectées. Le fichier est fourni encodé en base64.
- **docx_update_template** — Remplace un modèle existant par une nouvelle version (.docx). L'ancienne version est automatiquement archivée (rollback possible).
- **docx_download_template** — Télécharge le fichier .docx d'un modèle déposé. Renvoie un résumé du fichier (taille + aperçu base64 tronqué).
- **docx_delete_template** — Supprime définitivement un modèle et tout son historique de versions. Action irréversible.
- **docx_list_template_versions** — Liste l'historique des versions archivées d'un modèle.
- **docx_download_template_version** — Télécharge le fichier .docx d'une version archivée d'un modèle. Renvoie un résumé du fichier (taille + aperçu base64 tronqué).
- **docx_restore_template_version** — Restaure une version archivée comme version active du modèle. La version courante est archivée avant écrasement.
- **docx_get_usage_stats** — Retourne le plan, le quota (limite / utilisé / restant) et les statistiques d'usage de la clé API DocX.
- **sign_send_for_signature** — Envoie un PDF à signer électroniquement (eIDAS / PAdES). Crée la demande et envoie l'email d'invitation au signataire. Le PDF est fourni encodé en base64.
- **sign_detect_fields** — Analyse un PDF et retourne les emplacements de signature balisés ([[...]]) détectés, avant de l'envoyer à la signature. Le PDF est fourni encodé en base64.
- **sign_get_document_status** — Consulte l'état d'avancement d'une demande de signature (en attente, signé, refusé…).
- **sign_download_signed_document** — Récupère le PDF final signé (signature PAdES qualifiée + certificat de preuve intégré). Disponible une fois le document complété. Renvoie un résumé (titre, taille, aperçu base64 tronqué).
- **sign_send_otp** — Envoie un code OTP par SMS au signataire pour vérifier son identité avant la signature.
- **sign_verify_otp** — Valide le code OTP saisi par le signataire et retourne l'URL de signature si le code est correct.
- **sign_validate_signature** — Vérifie cryptographiquement que la signature PAdES du document est intègre et valide.
- **sign_get_audit_certificate** — Récupère le certificat de preuve juridique complet : qui a signé, depuis quelle IP, à quelle heure, avec la chaîne de hachage cryptographique.
- **sign_cancel_document** — Annule une demande de signature encore en cours. Impossible si le document est déjà signé.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "layerone-docx-sign": {
    "command": "npx",
    "args": ["-y","layerone-mcp"],
    "env": {
      "DOCX_API_KEY": "",
      "SIGN_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `DOCX_API_KEY`, `SIGN_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What LayerOne (DocX + Sign) MCP server does

The LayerOne (DocX + Sign) MCP server connects AI agents to two LayerOne APIs: DocX for document production and template management, and Sign for electronic-signature workflows. It communicates over standard input and output using the Model Context Protocol, allowing compatible clients to call the exposed operations as tools.

DocX operations can render PDF or DOCX documents, create Factur-X invoices in PDF/A-3 format, and report usage statistics. The template tools cover listing and filtering templates, uploading Word files, downloading them, deleting them, and updating them while retaining the previous version. Archived versions can be listed, downloaded, or restored.

Sign operations can submit a PDF for signature, detect signature fields, retrieve the current document status, and cancel a signing request. The API also exposes SMS one-time-password requests and verification, signed PDF downloads, cryptographic signature validation, and retrieval of the audit certificate.

## How it works

The LayerOne (DocX + Sign) MCP server runs through the `layerone-mcp` npm package with `npx`, so a separate global installation is not required. An MCP client starts the process and supplies credentials through its environment configuration. The server then calls the DocX and Sign services at their respective LayerOne API endpoints.

Document templates and PDFs are supplied to tools as base64 values, using fields such as `template_base64` and `pdf_base64`. For download operations, the server returns a summary containing the file size and a shortened base64 preview rather than the complete binary. This design avoids placing large file contents directly into the conversation.

## Setup and configuration

Create an account at `dev.layerone.fr` and generate one API key for each service. Set `DOCX_API_KEY` for DocX access and `SIGN_API_KEY` for Sign access. The keys are read from environment variables supplied by the MCP client rather than embedded in source code.

A stdio configuration uses `npx -y layerone-mcp` as the command and passes both variables in an `env` object. The README gives configurations for Claude Desktop and Cursor; other MCP clients can use the same command and environment structure, with the configuration location determined by the client.

For local development, install dependencies from `integrations/mcp`, build the project with `npm run build`, and start `dist/index.js` with both variables set. The free account includes 20 DocX documents and 10 Sign signatures per month.

## Tools and capabilities

The LayerOne (DocX + Sign) MCP server exposes these tool groups:

- **Document rendering:** `docx_render_document` and `docx_render_facturx`.
- **Template management:** list, upload, update, download, and delete templates; inspect, download, or restore archived versions.
- **Usage reporting:** `docx_get_usage_stats` for quota and consumption data.
- **Signature workflow:** send PDFs, detect fields, check status, download signed files, and cancel requests.
- **Identity and evidence:** send or verify SMS OTP codes, validate signature integrity, and retrieve audit certificates.

## Limitations and notes

The service requires separate DocX and Sign API keys. Account quotas apply to the free plan, with the documented monthly limits of 20 DocX documents and 10 Sign signatures. Binary inputs must be encoded as base64, and download results are intentionally summarized rather than returned as complete files. The available operations depend on the LayerOne DocX and Sign APIs and their endpoint behavior.

_Full upstream README: https://allmcps.com/mcp/layerone-docx-sign/readme_

