Skip to main content
Glama

mcp-pdf-utils

PDF 조작을 위한 MCP 서버. 병합, 분할, 회전, 워터마크 삽입, 텍스트 추출 등을 지원합니다.

Claude Desktop, Cursor, VS Code, ChatGPT 및 모든 MCP 호환 클라이언트와 함께 작동합니다.

npm License: MIT


목적

PDF 조작은 개발자에게 가장 흔한 작업 중 하나이지만, 이를 위한 제대로 된 MCP 서버가 없었습니다. 기존 옵션들은 별점이 낮습니다. 이 서버는 실제로 잘 작동합니다.

모든 작업은 로컬에서 실행됩니다. API 키가 필요 없습니다. 클라우드 서비스도 없습니다. PDF 파일은 절대 기기 밖으로 나가지 않습니다.

Related MCP server: PDF MCP Server

도구

도구

설명

pdf_info

메타데이터, 페이지 수, 파일 크기 가져오기

pdf_extract_text

페이지에서 텍스트 내용 추출

pdf_merge

여러 PDF를 하나로 결합

pdf_split

PDF를 개별 페이지 파일로 분할

pdf_extract_pages

페이지 범위를 추출하여 새 PDF 생성

pdf_rotate

페이지를 90°, 180°, 270° 회전

pdf_add_watermark

텍스트 워터마크 추가 (예: DRAFT, CONFIDENTIAL)

pdf_delete_pages

특정 페이지 제거

pdf_reorder

페이지 순서 재배치

pdf_set_metadata

제목, 작성자, 주제, 키워드 설정

pdf_create

일반 텍스트로 새 PDF 생성

빠른 시작

Claude Desktop

claude_desktop_config.json에 다음을 추가하세요:

{
  "mcpServers": {
    "pdf-tools": {
      "command": "npx",
      "args": ["-y", "mcp-pdf-utils"]
    }
  }
}

이제 끝입니다. Claude Desktop을 재시작하고 PDF 작업을 요청해 보세요.

Claude Code

claude mcp add pdf-tools -- npx -y mcp-pdf-utils

Cursor

Cursor MCP 설정에 다음을 추가하세요:

{
  "mcpServers": {
    "pdf-tools": {
      "command": "npx",
      "args": ["-y", "mcp-pdf-utils"]
    }
  }
}

VS Code

VS Code MCP 설정에 다음을 추가하세요:

{
  "mcp": {
    "servers": {
      "pdf-tools": {
        "command": "npx",
        "args": ["-y", "mcp-pdf-utils"]
      }
    }
  }
}

사용 예시

연결 후 AI에게 자연스럽게 대화하세요:

  • "invoice_jan.pdf와 invoice_feb.pdf를 combined.pdf로 병합해 줘"

  • "report.pdf에서 3-7페이지를 추출해 줘"

  • "contract.pdf에 CONFIDENTIAL 워터마크를 추가해 줘"

  • "presentation.pdf는 몇 페이지인가요?"

  • "scan.pdf의 모든 페이지를 90도 회전해 줘"

  • "내 문서에서 5페이지를 삭제해 줘"

  • "이 PDF에서 모든 텍스트를 추출해 줘"

  • "페이지 순서를 바꿔줘: 3페이지를 먼저 두고, 그다음 1페이지, 2페이지 순으로"

개발

git clone https://github.com/zekovdev/mcp-pdf-utils.git
cd mcp-pdf-utils
npm install
npm run dev

MCP Inspector로 테스트

npm run inspect

공식 MCP Inspector가 열리며, 여기서 모든 도구를 시각적으로 테스트할 수 있습니다.

작동 원리

이 서버는 PDF 조작을 위해 pdf-lib를, 텍스트 추출을 위해 pdf-parse를 사용합니다. 둘 다 외부 의존성 없이 로컬에서 실행되므로 API 키, 네트워크 호출, 클라우드 서비스가 전혀 필요 없습니다.

통신은 MCP stdio 전송 방식을 사용하며, 이는 서버가 로컬 프로세스로 실행되어 AI 클라이언트가 stdin/stdout을 통해 통신함을 의미합니다.

로드맵

  • [ ] PDF 압축 (파일 크기 축소)

  • [ ] PDF에서 이미지 추출

  • [ ] PDF를 이미지로 변환 (페이지 썸네일)

  • [ ] 페이지 번호 추가

  • [ ] PDF 암호화 / 비밀번호 보호

  • [ ] PDF 양식 필드 채우기

  • [ ] 스캔된 PDF를 위한 OCR (Tesseract 사용)

  • [ ] 이미지에서 PDF로 변환

기여

PR을 환영합니다. 제출 전 npm run inspect를 실행하여 변경 사항을 테스트하세요.

라이선스

MIT

Available Tools

11 tools
pdf_add_watermarkC

Add a text watermark to all or specific pages of a PDF.

Inputs: file (required), output (required), text (required), fontSize, +3 more.

pdf_createC

Create a new PDF document from plain text content.

Inputs: output (required), text (required), title, fontSize.

pdf_delete_pagesC

Delete specific pages from a PDF.

Inputs: file (required), output (required), pages (required).

pdf_extract_pagesB

Extract a range of pages from a PDF into a new PDF file.

Inputs: file (required), output (required), startPage (required), endPage (required).

pdf_extract_textC

Extract text content from a PDF file. Optionally specify page range.

Inputs: file (required), startPage, endPage.

pdf_infoB

Get PDF metadata: page count, title, author, creator, creation date, file size.

Inputs: file (required).

pdf_mergeC

Merge multiple PDF files into a single PDF.

Inputs: files (required), output (required).

pdf_reorderB

Reorder pages of a PDF. Provide the desired page order.

Inputs: file (required), output (required), order (required).

pdf_rotateB

Rotate pages of a PDF by 90, 180, or 270 degrees.

Inputs: file (required), output (required), angle (required), pages.

pdf_set_metadataC

Set or update PDF metadata (title, author, subject, keywords, creator).

Inputs: file (required), output (required), title, author, +3 more.

pdf_splitA

Split a PDF into separate files. Extract specific pages or split into individual page files.

Inputs: file (required), outputDir (required), pages.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no significant overlap. For example, pdf_extract_pages creates a new PDF from a range, while pdf_split divides into separate files, and pdf_delete_pages removes pages without creating new files. The descriptions specify unique actions on PDFs, making misselection unlikely.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with the prefix 'pdf_' (e.g., pdf_add_watermark, pdf_extract_text). This uniform snake_case naming makes the set predictable and easy to understand, enhancing usability for agents.

    Tool Count5/5

    With 11 tools, the count is well-scoped for PDF manipulation tasks. It covers a comprehensive range of operations without being overwhelming, including creation, editing, extraction, merging, and metadata handling, which aligns perfectly with the server's purpose.

    Completeness5/5

    The tool set provides complete coverage for PDF manipulation, including CRUD-like operations (create, modify, delete pages), metadata management, and advanced features like watermarking and rotation. There are no obvious gaps; agents can perform all common PDF tasks without dead ends.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides comprehensive PDF processing capabilities including text extraction, image extraction, table detection, annotation extraction, metadata retrieval, page rendering, and document structure analysis.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server for PDF form filling, basic editing, and OCR text extraction. It enables users to merge, rotate, annotate, and sign PDFs, while also supporting text extraction from both searchable and scanned image-based documents.
      15
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides tools for reading, writing, and manipulating PDF files, including text extraction, metadata retrieval, and merging or splitting documents. It also enables users to create PDFs from plain text and convert specific pages or entire documents into images.
      1
      -
    • A
      license
      A
      quality
      B
      maintenance
      A comprehensive MCP server with 37 tools for PDF operations including reading, searching, creating, merging, splitting, watermarking, form filling, and more, built on open-source libraries.
      37
      42 npm
      2
      MIT