Repository avatar
Other Tools
v1.0.1
active

document-signer

io.github.shanstud/document-signer

Sign, merge and split PDFs locally via MCP — no account, no envelopes, no upload.

Documentation

Document Signer MCP — sign PDFs from any AI assistant

An MCP server (connector) that lets an MCP-compatible AI assistant sign, merge and split PDFs locally — no Docusign account, no envelopes, no subscription, and documents are never uploaded to a third party. It is the connector version of Document Signer, the free in-browser PDF signer, and the companion to the Document Signer skill.

Free and open source (MIT).

Tools

ToolWhat it does
sign_pdfPlaces a signature (typed name or signature image) on a PDF page, with optional date stamp. Never overwrites the original.
merge_pdfsCombines several PDFs into one, in order.
split_pdfExtracts a page range ("1-3,5") or splits every page into its own file.
pdf_infoReports page count, encryption status and page sizes.

Safety built in: the sign_pdf tool instructs the assistant to confirm the document, the signer and the placement with you before signing, and refuses to overwrite the original file. Encrypted PDFs are not supported.

File-safety rules (all modes): outputs are always new files — the tools refuse to overwrite the input (by path or hard link) and refuse to overwrite any existing output file; pick a fresh output name instead.

Honest limits: signing a PDF that already carries a certified digital signature will invalidate that signature. This tool places a visual signature, like signing a printed page. It is not a certified digital signature and provides no identity verification or audit trail. If your situation legally requires those, use a full e-signature service.

One-click install (Claude Desktop)

Download document-signer.mcpb from the latest release and open it — Claude Desktop installs Document Signer as an extension. No Python setup: the bundle uses the uv runtime, and dependencies are installed automatically on first run.

Quick start (local — Claude Desktop, Claude Code, Cursor, VS Code…)

git clone https://github.com/shanstud/document-signer-mcp
cd document-signer-mcp
pip install -r requirements.txt

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "document-signer": {
      "command": "python3",
      "args": ["/path/to/document-signer-mcp/server.py"]
    }
  }
}

Claude Code:

claude mcp add document-signer -- python3 /path/to/document-signer-mcp/server.py

Cursor / VS Code — use the same command / args pair in their MCP server settings.

Then just ask your assistant: "Sign contract.pdf with my name, bottom-right, and add today's date."

Docker (no Python install) — the published image runs over stdio; mount the folder holding your PDFs so the tools can reach them:

{
  "mcpServers": {
    "document-signer": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-v", "/path/to/your/pdfs:/docs", "-e", "MCP_WORKDIR=/docs",
               "ghcr.io/shanstud/document-signer-mcp:1.0.1"]
    }
  }
}

Paths inside the conversation are then the /docs/... paths, and MCP_WORKDIR confines the tools to that mounted folder.

Remote use (ChatGPT and other hosted connectors)

ChatGPT connectors need a public HTTPS MCP endpoint. This server speaks streamable HTTP — run it anywhere that hosts a small Python app or a Docker container:

MCP_HTTP_TOKEN=<a-long-random-secret> python3 server.py --http   # endpoint path /mcp on $PORT (default 8000)
# or
docker build -t document-signer-mcp . && docker run -e MCP_HTTP_TOKEN=<a-long-random-secret> -p 8000:8000 document-signer-mcp --http

Deploy the Docker image to your host of choice (Fly.io, Render, Railway, a VPS…), then in ChatGPT: Settings → Connectors → Create and paste your endpoint, e.g. https://your-host.example/mcp. The same URL works for any client that supports remote MCP servers.

⚠️ Security — read before exposing the HTTP mode: the tools read and write files by path on the machine running the server. HTTP mode is fail-closed: without MCP_HTTP_TOKEN it binds to localhost only and refuses any wider bind; with MCP_HTTP_TOKEN set to a long random secret, every request must send Authorization: Bearer <token>. Set MCP_WORKDIR to confine all file operations to one directory. Even with a token, prefer running it locally (stdio) or on a machine you control, behind your own network controls.

⚠️ A remotely hosted instance processes files on that host. For the original Document Signer privacy promise — your document never leaves your device — run the server locally (stdio) or on a machine you control.

Tests

pip install -r requirements.txt
python3 tests/test_mcp.py   # drives the server over stdio like a real MCP client

Licence

MIT © 2026 Zee Lalani. Docusign is a trademark of Docusign, Inc.; this project is independent and not affiliated with or endorsed by Docusign, Inc.

OCI
ghcr.io/shanstud/document-signer-mcp:1.0.1
Install Command
docker pull ghcr.io/shanstud/document-signer-mcp:1.0.1:undefined