Skip to main content
Glama
Document Signer MCP

Document Signer MCP

by shanstud
README.md
# Document Signer MCP — sign PDFs from any AI assistant

An MCP server (connector) that lets an 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](https://shanstud.github.io/document-signer/), the free in-browser PDF signer, and the companion to the [Document Signer skill](https://github.com/shanstud/document-signer-skill).

Free and open source (MIT).

## Tools

| Tool | What it does |
| --- | --- |
| `sign_pdf` | Places a signature (typed name or signature image) on a PDF page, with optional date stamp. Never overwrites the original. |
| `merge_pdfs` | Combines several PDFs into one, in order. |
| `split_pdf` | Extracts a page range (`"1-3,5"`) or splits every page into its own file. |
| `pdf_info` | Reports 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.

**Honest limits:** this 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.

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

```bash
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`:

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

**Claude Code:**

```bash
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."*

## 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:

```bash
python3 server.py --http     # listens on 0.0.0.0:$PORT (default 8000), endpoint path /mcp
# or
docker build -t document-signer-mcp . && docker run -p 8000:8000 document-signer-mcp
```

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.

> ⚠️ 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.
>
> Note on AI hosts: the tools process files on the machine running this server and send nothing to Document Signer. But if your AI assistant itself is cloud-hosted, a document you hand it may pass through that assistant's cloud environment — for documents that must never leave your machine, use a local assistant setup or the browser app at https://shanstud.github.io/document-signer/.

## Tests

```bash
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.