Skip to main content

pdf-lite-mcp

CI/CD Pipeline License: MIT Latest Release Python 3.10+ GitHub Issues GitHub Stars

A simplified Python MCP server for reading PDF files, specifically optimized for Amazon Q CLI usage.

Built as a streamlined alternative to complex PDF processing tools, focusing on clean output and reliable performance.

Features

  • Read PDFs from local files or URLs
  • Extract specific pages or full content
  • Metadata extraction (title, author, page count)
  • Batch processing support
  • Security-focused with path validation

Installation

From PyPI (recommended)

# Install using uvx (no need to clone repository)
uvx pdf-lite-mcp

# Or install globally
pip install pdf-lite-mcp

From source

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and install
git clone https://github.com/tsaol/pdf-lite-mcp.git
cd pdf-lite-mcp
uv sync

Amazon Q CLI Configuration

Using PyPI package (recommended)

{
  "mcpServers": {
    "pdf-lite": {
      "command": "uvx",
      "args": ["pdf-lite-mcp"],
      "disabled": false,
      "autoApprove": ["read_pdf"]
    }
  }
}

Using local development version

{
  "mcpServers": {
    "pdf-lite": {
      "command": "uv",
      "args": ["run", "python", "src/main.py"],
      "cwd": "/path/to/pdf-lite-mcp",
      "env": {
        "PYTHONPATH": "."
      }
    }
  }
}

Using Git URL

{
  "mcpServers": {
    "pdf-lite": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/tsaol/pdf-lite-mcp.git", "pdf-lite-mcp"],
      "env": {
        "PYTHONPATH": "."
      }
    }
  }
}

Usage

Basic PDF Reading

{
  "tool_name": "read_pdf",
  "arguments": {
    "sources": [{"path": "./document.pdf"}],
    "include_full_text": true
  }
}

Specific Pages

{
  "tool_name": "read_pdf",
  "arguments": {
    "sources": [{"path": "./report.pdf", "pages": [1, 3, 5]}]
  }
}

Multiple PDFs

{
  "tool_name": "read_pdf",
  "arguments": {
    "sources": [
      {"path": "./doc1.pdf"},
      {"url": "https://example.com/doc2.pdf"}
    ]
  }
}

Testing

# Basic tests
uv run python tests/simple_test.py

# Server tests
uv run python tests/test_server.py

# PDF processing tests (requires network)
uv run python tests/test_with_pdf.py

License

MIT License - see LICENSE file for details.

Metadata

Release files for pdf-lite-mcp 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf-lite-mcp 1.0.1
File Size Uploaded Provenance
pdf_lite_mcp-1.0.1.tar.gz 15.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf-lite-mcp 1.0.1
File Interpreter ABI Platform
pdf_lite_mcp-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.1 kB

Release files / pdf_lite_mcp-1.0.1.tar.gz

Download URL pdf_lite_mcp-1.0.1.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa5cf75c08d4434a59ef94bf93a533f4d3276afc702d66a8aafb1a3021ba5229
BLAKE2b-256 checksum
How to use checksums
9db5956dc83297d0a032c38bcbe05b44e38888177d86e72c068c2c035ed3990f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.18

Release files / pdf_lite_mcp-1.0.1-py3-none-any.whl

Download URL pdf_lite_mcp-1.0.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7baf75ec16845631d2ba86d905611757c9d2c0aaadfb83eaddd19a36bf4080c1
BLAKE2b-256 checksum
How to use checksums
c8c039a1b6461ce5230d45fa5f4d08a1f23a011563ffd331282c3cad70802d74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.18

Security for pdf-lite-mcp 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page