VS Code + pdfmcp:设置指南

通过 mcp.json 将 pdfmcp 添加到 VS Code / GitHub Copilot 智能体模式。

仅限本地。相同的 74 个工具,在您的机器上运行:无账户、无密钥、无限制。 使用 VS Code 时,本页的配置会在您的机器上运行 pdfmcp;通过更换配置,您可以随时重新安装或更换客户端。

您需要: 本地 pdfmcp 软件包:安装一次(或让 uvx 在首次启动时下载它)。无账户、无密钥,没有任何秘密需要替换。

它放在哪里: Wherever your client keeps its MCP server list

{
  "servers": {
    "pdfmcp": {
      "command": "uvx",
      "args": [
        "--from",
        "https://pdfmcp.org/downloads/pdfmcp-4.2.1-py3-none-any.whl",
        "pdfmcp"
      ]
    }
  }
}

步骤

  1. Save the config at the location above — uvx fetches the pdfmcp package on first launch, so there is nothing to install by hand (or install it once with the pip command on the MCP page and use "command": "pdfmcp").
  2. Restart VS Code so it loads the new server.
  3. Ask the agent to run a pdfmcp tool — it executes on this machine, and your files never leave it.

故障排除

试试这些

本地 · MCPPDF 转 Word (DOCX)将 PDF 转换为可编辑的 Word 文档。基于文本的转换:段落和标题从文本层重建;确切布局、表格和图像不会保留。设备端处理PDF 信息与元数据以 JSON 提供页数、页面大小、元数据和加密状态。设备端处理合并 PDF按上传顺序将多个 PDF 文件合并为一个。

更多客户端: Claude Desktop MCP 设置 · Claude Code MCP 设置 · ChatGPT MCP 设置 · 所有 MCP 设置指南 · 本地 API 指南