mcpField
P
PDF to Markdown with Tables for AI Agents

PDF to Markdown with Tables for AI Agents

远程服务
apify.com生产力04 天前更新

关于 PDF to Markdown with Tables for AI Agents

这是一个远程 MCP 服务,可将 PDF、Word、PowerPoint 和 Excel 转为 Markdown,并将表格提取为 JSON 行。它面向需要文档文本和结构化表格的 AI Agent 工作流,也支持扫描件 OCR。

主要功能

  1. 01转换 PDF、Word、PowerPoint 和 Excel
  2. 02输出整洁的 Markdown
  3. 03以 JSON 行返回表格
  4. 04识别扫描文档中的文字

适用场景

  1. 01提取办公文档中的可读文本
  2. 02向 AI Agent 提供表格数据
  3. 03通过 OCR 处理扫描文档

MCP 相关

它通过支持流式 HTTP 的远程 MCP 服务提供文档转换功能。MCP 客户端可使用指定的 Apify URL 连接。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.apify.com/?tools=fluidfaith/pdf-to-markdown-tables
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://mcp.apify.com/?tools=fluidfaith/pdf-to-markdown-tables需要授权

工具

详细介绍

面向 AI Agent 的 PDF 转 Markdown(含表格)

将 PDF、Word、PowerPoint 和 Excel 转换为简洁的 Markdown,并将每个表格转换为 JSON 行;为扫描件提供 OCR。

  • Apify Store:https://apify.com/fluidfaith/pdf-to-markdown-tables
  • MCP 服务(远程、可流式传输的 HTTP):https://mcp.apify.com/?tools=fluidfaith/pdf-to-markdown-tables
  • 价格:每份文档 $0.008 + 每页 $0.002 + 每个表格 $0.002。失败的项目免费,且每次运行的费用绝不会超过最高收费金额。

Claude Code、Cursor、VS Code(MCP 配置)

{
  "mcpServers": {
    "pdf-to-markdown-tables": {
      "url": "https://mcp.apify.com/?tools=fluidfaith/pdf-to-markdown-tables",
      "headers": { "Authorization": "Bearer ${APIFY_TOKEN}" }
    }
  }
}

Claude Code 单行命令:claude mcp add --transport http pdf-to-markdown-tables "https://mcp.apify.com/?tools=fluidfaith/pdf-to-markdown-tables" --header "Authorization: Bearer $APIFY_TOKEN"

Python(apify-client)

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("fluidfaith/pdf-to-markdown-tables").call(run_input={"urls": ["https://www.census.gov/retail/mrts/www/data/pdf/ec_current.pdf"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

LangChain

from langchain_apify import ApifyActorsTool
tool = ApifyActorsTool("fluidfaith/pdf-to-markdown-tables")

JavaScript(apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fluidfaith/pdf-to-markdown-tables').call({"urls": ["https://www.census.gov/retail/mrts/www/data/pdf/ec_current.pdf"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。