eSign MCP Server

eSign MCP Server

esign-mcp•byadamanz

An MCP server that offers tools to place signature images onto PDF documents at specified coordinates and to retrieve PDF page and dimension information.

License: MIT License•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Adds a signature image to a PDF at a chosen page, position, width, and height, optionally with a date stamp.
  • •Returns document information such as the number of pages and each page's dimensions.
  • •Accepts PDF and signature image content as Base64-encoded data and returns the signed PDF as Base64.
  • •Supports PNG and JPG signature images with input validation and error handling.

BEST FOR

  • •Signing a contract PDF by placing a signature image on a specific page and corner.
  • •Placing signatures at precise coordinates on a chosen page while adding the current date.
  • •Checking a PDF's page count and dimensions before deciding where a signature should go.

ABOUT ESIGN-MCP

eSign MCP Server is cataloged as an MCP server attributed to adamanz. An MCP server that offers tools to place signature images onto PDF documents at specified coordinates and to retrieve PDF page and dimension information. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for eSign MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What coordinate system does the server use for signature placement?

Coordinates use PDF standard units, where 1 unit is 1/72 inch, with the origin at the bottom-left corner of the page, X increasing rightward and Y increasing upward.

Which signature image formats are supported?

PNG, recommended for transparency support, and JPG/JPEG.

Does the server support containerized deployment?

Yes, the server includes Docker support for containerized deployment.

上游原版 README

在 GitHub 查看同一版本原文

README.md · c62c7991e03e · 采集于 2026-11-13 12:55:18 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

eSign MCP Server

An MCP (Model Context Protocol) server that provides tools for signing PDF documents by adding signature images at specified coordinates.

Credits

This MCP server is built upon the excellent signpdf project by Charlie DeTar (cfd@media.mit.edu). The original signpdf utility provides the core PDF signing functionality that this MCP server wraps with a modern MCP interface.

Features

  • sign_pdf: Add signature images to PDF documents with precise positioning
  • get_pdf_info: Get PDF metadata including page count and dimensions
  • Input validation and error handling
  • Support for PNG and JPG signature images
  • Optional date stamping
  • Base64 encoding for file transfer

Tools

sign_pdf

Signs a PDF document by adding a signature image at the specified coordinates.

Parameters:

  • pdf_data (string): Base64 encoded PDF file content
  • signature_data (string): Base64 encoded signature image (PNG, JPG)
  • page_number (int, optional): Page number to sign (1-based indexing, default: 1)
  • x (float, optional): X coordinate from bottom-left corner in PDF units (default: 100)
  • y (float, optional): Y coordinate from bottom-left corner in PDF units (default: 100)
  • width (float, optional): Width of the signature in PDF units (default: 125)
  • height (float, optional): Height of the signature in PDF units (default: 40)
  • add_date (bool, optional): Whether to add current date next to signature (default: false)

Returns: Base64 encoded signed PDF content

get_pdf_info

Get information about a PDF document including page count and dimensions.

Parameters:

  • pdf_data (string): Base64 encoded PDF file content

Returns:

{
  "num_pages": 1,
  "pages": [
    {
      "page_number": 1,
      "width": 612.0,
      "height": 792.0
    }
  ]
}

Installation

Prerequisites

  • Python 3.11+
  • uv package manager (recommended) or pip

Local Installation

  1. Clone or download this repository
  2. Install dependencies:
    uv pip install -r requirements.txt
    

Running the Server

To run the MCP server:

uv run python mcp_server.py

The server will start with stdio transport by default.

Testing

A test script is provided to verify the server functionality:

uv run python test_server.py

This will:

  1. Create a test PDF document
  2. Generate a test signature image
  3. Test the get_pdf_info tool
  4. Test the sign_pdf tool
  5. Save the signed PDF as test_signed.pdf

Docker Deployment

The server includes Docker support for containerized deployment:

# Build the image
docker build -t pdf-signer-mcp .

# Run the container
docker run -p 8000:8000 pdf-signer-mcp

Smithery Deployment

This server is configured for deployment on Smithery with the included smithery.yaml configuration file.

Configuration Files

  • Dockerfile: Container build instructions
  • smithery.yaml: Smithery deployment configuration
  • requirements.txt: Python dependencies

Usage Examples

Using with Claude Desktop

  1. Install Claude Desktop from claude.ai/download
  2. Clone this repository:
    git clone https://github.com/adamanz/esign-mcp.git
    cd esign-mcp
    
  3. Install dependencies:
    uv pip install -r requirements.txt
    
  4. Configure Claude Desktop by editing your configuration file:

Location of config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration:

{
  "mcpServers": {
    "esign-mcp": {
      "command": "uv",
      "args": [
        "run", 
        "python", 
        "/ABSOLUTE/PATH/TO/esign-mcp/mcp_server.py"
      ]
    }
  }
}
  1. Restart Claude Desktop to load the MCP server
  2. Look for the MCP tools - you should see a 🔨 hammer icon indicating available tools

Using with Claude Code

  1. Install Claude Code (if not already installed)
  2. Clone this repository in your project directory:
    git clone https://github.com/adamanz/esign-mcp.git
    cd esign-mcp
    uv pip install -r requirements.txt
    
  3. Start the MCP server in your terminal:
    uv run python mcp_server.py
    
  4. In Claude Code, the MCP server will be automatically detected when running in stdio mode
  5. Use the tools directly in your conversations with Claude Code

Using with Cursor

  1. Install Cursor from cursor.sh
  2. Set up the MCP server by adding it to your project:
    git clone https://github.com/adamanz/esign-mcp.git
    cd esign-mcp
    uv pip install -r requirements.txt
    
  3. Configure Cursor to use the MCP server by creating or editing your Cursor MCP configuration
  4. Run the server:
    uv run python mcp_server.py
    
  5. Access tools through Cursor's AI assistant interface

Alternative: Using without uv

If you prefer using standard pip:

git clone https://github.com/adamanz/esign-mcp.git
cd esign-mcp
pip install -r requirements.txt
python mcp_server.py

Update your configuration to use python instead of uv run python.

Example Tool Calls

Get PDF Info:

{
  "tool": "get_pdf_info",
  "arguments": {
    "pdf_data": "JVBERi0xLjQK..."
  }
}

Sign PDF:

{
  "tool": "sign_pdf",
  "arguments": {
    "pdf_data": "JVBERi0xLjQK...",
    "signature_data": "iVBORw0KGgoAAAA...",
    "page_number": 1,
    "x": 100,
    "y": 100,
    "width": 125,
    "height": 40,
    "add_date": true
  }
}

Practical Usage Examples

Once your MCP server is running, you can use natural language to interact with the PDF signing tools:

Example conversations:

  1. Getting PDF Information:

    "I have a PDF file. Can you tell me how many pages it has and what the dimensions are?"

    The AI will ask you to provide the PDF file, then use the get_pdf_info tool to analyze it.

  2. Signing a PDF:

    "I need to sign this contract PDF on the first page. Can you add my signature image in the bottom right corner?"

    The AI will use the sign_pdf tool with appropriate coordinates for bottom-right placement.

  3. Multiple signatures:

    "Please add my signature to page 2 of this PDF, positioned at coordinates 200, 150, and make it 100x30 pixels. Also add today's date."

    The AI will use precise coordinates and enable date stamping.

  4. Getting help with coordinates:

    "I want to sign this PDF but I'm not sure where to place the signature. Can you help me understand the coordinate system?"

    The AI can explain PDF coordinates and help you choose appropriate values.

Technical Notes

PDF Coordinates

  • Coordinates use PDF standard units (1/72 inch)
  • Origin (0,0) is at the bottom-left corner of the page
  • X increases rightward, Y increases upward

Supported Image Formats

  • PNG (recommended for transparency support)
  • JPG/JPEG

File Handling

  • All file operations use temporary files that are automatically cleaned up
  • Input validation prevents common errors
  • Proper error handling with descriptive messages

Dependencies

  • fastmcp: FastMCP framework for MCP server implementation
  • pypdf: PDF reading and writing library
  • reportlab: PDF generation and image placement
  • pillow: Image processing (dependency of reportlab)

Troubleshooting

Common Issues

  1. "Module not found" errors

    # Make sure dependencies are installed
    uv pip install -r requirements.txt
    # Or with pip
    pip install -r requirements.txt
    
  2. MCP server not appearing in Claude Desktop

    • Check that the path in claude_desktop_config.json is absolute (not relative)
    • Restart Claude Desktop after making configuration changes
    • Check Claude Desktop logs: ~/Library/Logs/Claude/mcp*.log (macOS)
  3. "Command not found: uv"

    • Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh
    • Or use regular pip instead: replace uv run python with python
  4. Permission errors

    # Make sure the script is executable
    chmod +x mcp_server.py
    
  5. PDF signing fails

    • Ensure your PDF and signature image are valid
    • Check that coordinates are within the page boundaries
    • Use get_pdf_info first to understand page dimensions

Getting Help

  • Check the GitHub Issues for common problems
  • Run the test script to verify installation: uv run python test_server.py
  • For Claude Desktop specific issues, check the MCP troubleshooting guide

License

MIT License - This project maintains the same license as the original signpdf project by Charlie DeTar.

Original Project

The core PDF signing functionality is based on the signpdf utility by Charlie DeTar. This MCP server extends that work to provide MCP-compatible tools for modern AI integration.

Contributing

  1. Test your changes with the provided test script
  2. Ensure all dependencies are properly specified
  3. Update documentation as needed
  4. Follow the existing code style and patterns

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for eSign MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/esign-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops