适合谁
- 希望将文档转换集成到 AI 代理或 MCP 客户端(如 Claude Desktop)的开发者。
- 需要将 PDF 转换为 Markdown/JSON 并用于 RAG 或知识管理的团队。
- 使用 Docling Serve 或想要混合模式(远程+本地回退)的用户。
Docling MCP 是一个功能丰富的文档转换服务器,支持远程和本地转换,提供广泛的工具集(转换、生成、RAG)。它适合需要将文档处理集成到 AI 代理的开发者,但配置复杂度较高,且远程模式依赖外部服务。
Docling MCP 是一个基于模型上下文协议(MCP)的文档处理服务,利用 Docling 库将 PDF 和其他文档转换为结构化格式,并提供缓存、生成、RAG 等工具。支持远程(Docling Serve)和本地(docling-mcp[local])转换模式。
pip install docling-mcp 或 pip install docling-mcp[local]。DOCLING_MCP_CONVERSION_MODE、DOCLING_MCP_SERVICE_URL 等)。uvx --from docling-mcp docling-mcp-server --transport stdio 启动服务器。{
"mcpServers": {
"docling": {
"command": "uvx",
"args": [
"--from=docling-mcp",
"docling-mcp-server"
],
"env": {
"DOCLING_MCP_CONVERSION_MODE": "remote",
"DOCLING_MCP_SERVICE_URL": "https://your-docling-service.example.com",
"DOCLING_MCP_SERVICE_API_KEY": "your-api-key-here"
}
}
}
}