MCP PDF Forms

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Allows interactions with GitHub repositories for cloning PDF form projects from GitHub using the git clone functionality mentioned in the installation instructions.

  • Enables installation of the MCP PDF Forms package directly from PyPI using pip.

MCP PDF 表单

使用MCP和 PyMuPDF 构建的 PDF 表单操作工具包。

特征

  • 跨多个目录查找 PDF 文件
  • 从 PDF 文件中提取表单字段信息
  • PDF 文档中的表单字段可视化

安装

# Install package from PyPI pip install mcp_pdf_forms # Or install from source git clone https://github.com/Wildebeest/mcp_pdf_forms.git cd mcp_pdf_forms pip install -e .

服务器

服务器组件通过 MCP 的 API 提供 PDF 相关工具:

# Start the server with one or more directories to scan for PDFs uv run -m mcp_pdf_forms.server examples

或者添加到 claude-code:

claude mcp add pdf-forms uv run -- --with mcp-pdf-forms -m mcp_pdf_forms.server .

用法

安装完成后,您可以使用该软件包处理 PDF 表单。该软件包通过 MCP 界面提供相关工具。

PDF 发现工具

PDF 发现工具可帮助您在指定目录中查找 PDF 文件。

  • 输入:搜索 PDF 的目录路径
  • 输出:在指定目录中找到的 PDF 文件列表
  • 用途:使用此功能快速找到项目或指定文件夹中的所有 PDF 文件

表单字段提取工具

表单字段提取工具提取有关 PDF 文档中所有表单字段的信息。

  • 输入:PDF 文件的路径
  • 输出:每个表单字段的详细信息,包括字段名称、类型、位置和其他属性
  • 用途:使用它来分析表单结构并了解可供填写的字段

字段突出显示可视化工具

字段突出显示工具在 PDF 中创建表单字段的可视化表示。

  • 输入:PDF 文件的路径
  • 输出:修改后的 PDF,所有表单字段均突出显示,以便于识别
  • 用途:使用它来直观地检查文档中表单字段的布局和位置

使用的库

  • MCP——机器对话协议框架
  • PyMuPDF - MuPDF 的 Python 绑定,一个高性能 PDF 库

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

通过 MCP 的 API 提供 PDF 表单操作工具的服务器,允许用户跨目录查找 PDF、提取表单字段信息以及在文档中可视化表单字段。

  1. Features
    1. Installation
      1. Server
        1. Usage
          1. PDF Discovery Tool
          2. Form Field Extraction Tool
          3. Field Highlight Visualization Tool
        2. Libraries Used
          1. License
            ID: gd8k7liejn