LayerOne (DocX + Sign)

v1.0.0
io.github.GOLayerone/layerone Checked 1 day ago Published 5 months ago

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

Values you need

VariableWhat it is
DOCX_API_KEYrequired secret DocX API key (documents, PDF, Factur-X). Generate at https://dev.layerone.fr
SIGN_API_KEYrequired secret Sign API key (eIDAS/PAdES e-signature). Generate at https://dev.layerone.fr

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add layerone -e 'DOCX_API_KEY=<DOCX_API_KEY>' -e 'SIGN_API_KEY=<SIGN_API_KEY>' -- npx -y layerone-mcp@1.0.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "layerone": {
      "args": [
        "-y",
        "layerone-mcp@1.0.0"
      ],
      "command": "npx",
      "env": {
        "DOCX_API_KEY": "<DOCX_API_KEY>",
        "SIGN_API_KEY": "<SIGN_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "layerone": {
      "args": [
        "-y",
        "layerone-mcp@1.0.0"
      ],
      "command": "npx",
      "env": {
        "DOCX_API_KEY": "<DOCX_API_KEY>",
        "SIGN_API_KEY": "<SIGN_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DOCX_API_KEY",
      "id": "docx-api-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SIGN_API_KEY",
      "id": "sign-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "layerone": {
      "args": [
        "-y",
        "layerone-mcp@1.0.0"
      ],
      "command": "npx",
      "env": {
        "DOCX_API_KEY": "${input:docx-api-key}",
        "SIGN_API_KEY": "${input:sign-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.layerone]
command = "npx"
args = ["-y", "layerone-mcp@1.0.0"]
env = { "DOCX_API_KEY" = "<DOCX_API_KEY>", "SIGN_API_KEY" = "<SIGN_API_KEY>" }

For AI agents

  1. Ask the user for: DOCX_API_KEY, SIGN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: docx_render_facturx, docx_render_document, docx_list_templates, docx_upload_template, docx_update_template, docx_download_template, docx_delete_template, docx_list_template_versions, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json