Docling MCP
AI 에이전트가 Docling으로 PDF와 다른 문서를 구조화된 형식으로 바꾸고, 새 문서를 만들게 합니다.
784 GitHub 스타제작 Docling project (IBM Research Zurich)라이선스 MIT업데이트 19일 전
설치 방법
이 MCP는 로컬 방식이에요. 내 컴퓨터에서 실행돼요.
PC에 설치한 앱(Claude Desktop, Claude Code, Cursor, VS Code 등)에서 쓸 수 있어요. 앱을 고르세요:
터미널에 붙여 넣기:
claude mcp add docling -- uvx --from docling-mcp==3.5.0 docling-mcp-server --transport stdio docling-mcp
채워야 할 것
| 이름 | 설명 | 필수 |
|---|---|---|
DOCLING_MCP_CONVERSION_MODE | Conversion mode: 'remote' (default) or 'local' (requires docling-mcp[local] extra). | 아니요 |
DOCLING_MCP_SERVICE_URL | Base URL of the Docling Serve instance. Required when conversion mode is remote. | 아니요 |
DOCLING_MCP_SERVICE_API_KEY | API key for authenticating with Docling Serve. | 아니요 |
DOCLING_MCP_SERVICE_TIMEOUT | Request timeout in seconds for the remote Docling Serve API. Default: 300.0. | 아니요 |
DOCLING_MCP_SERVICE_MAX_RETRIES | Maximum number of retry attempts for remote API requests. Default: 3. | 아니요 |
DOCLING_MCP_FALLBACK_TO_LOCAL | Set to 'true' to fall back to local conversion when Docling Serve is unreachable. | 아니요 |
DOCLING_MCP_KEEP_IMAGES | Set to 'true' to retain page images in converted documents. Default: false. | 아니요 |
DOCLING_MCP_IMAGES_SCALE | Image scale factor (e.g. 1.0, 2.0). Increase to avoid tensor batching errors. Default: 1.0. | 아니요 |
DOCLING_MCP_DO_OCR | Set to 'false' to disable the OCR pipeline. Default: true. | 아니요 |
DOCLING_MCP_OCR_ENGINE | OCR engine kind: 'auto' (default), 'easyocr', 'tesseract', 'tesserocr', 'ocrmac', 'rapidocr'. Must be installed on the conversion backend. | 아니요 |
DOCLING_MCP_OCR_LANG | Comma-separated OCR languages (e.g. 'iso:en,iso:de' or 'eng,deu'). When unset the engine's default languages apply. | 아니요 |
DOCLING_MCP_DO_TABLE_STRUCTURE | Set to 'false' to disable table structure detection. Default: true. | 아니요 |
DOCLING_MCP_DO_PICTURE_DESCRIPTION | Set to 'true' to run a vision-language model to generate textual descriptions for figures and pictures. Requires a VLM to be available on the conversion backend. Default: false. | 아니요 |
DOCLING_MCP_PICTURE_DESCRIPTION_PRESET | Preset ID for the picture-description VLM (e.g. 'smolvlm', 'granite_vision'). When unset the backend default is used. Only applies when DOCLING_MCP_DO_PICTURE_DESCRIPTION=true. | 아니요 |
DOCLING_MCP_IMAGE_EXPORT_MODE | Controls how images are rendered when exporting to Markdown. Accepted values: 'placeholder' (default, emits <!-- image -->), 'embedded' (base64 data-URI), 'referenced' (file path / URL). | 아니요 |
DOCLING_MCP_CACHE_MAX_DOCUMENTS | Maximum number of documents to keep in the in-memory cache. Oldest (least-recently-used) documents are evicted when the limit is reached. Default: 10. | 아니요 |
준비 끝! 이제 테스트해 보세요
앱을 다시 시작하고 아래 요청 중 하나를 채팅에 붙여 넣으세요:
C:/reports/q3.pdf의 PDF를 Docling 문서로 변환하고 문서 키를 알려 주세요.
토크나이저에 관한 새 문서를 제목, 소제목, 목록과 함께 쓰고 저장해 주세요.
무엇인가요
이 서버는 문서 처리 라이브러리인 Docling에 에이전트를 연결합니다. 에이전트는 PDF 파일이나 URL을 구조화된 문서로 바꾸고, Markdown 같은 형식으로 내보내고, 새 문서를 한 조각씩 만들 수 있습니다. 원격 Docling Serve 서비스를 쓰거나 변환을 로컬에서 실행할 수 있습니다.
할 수 있는 일
- PDF(파일 또는 URL)를 구조화된 DoclingDocument로 변환합니다
create_new_docling_document: 새 문서를 시작합니다add_title_to_docling_document: 제목을 추가합니다open_list_in_docling_document와close_list_in_docling_document: 목록을 만듭니다export_docling_document_to_markdown: 작성한 내용을 Markdown으로 내보냅니다- RAG를 위해 Milvus로 문서를 올리고 가져옵니다
언제 쓰나요
- ›PDF를 에이전트가 읽을 수 있는 구조화된 텍스트로 바꾸고 싶을 때
- ›에이전트가 문서를 쓰고 저장하게 하고 싶을 때
- ›문서를 검색하는 기능을 만들며 먼저 문서를 변환해야 할 때
필요한 것
함께 쓰면 좋은 스킬
MCP일까, 스킬일까?
MCP는 에이전트에게 손을 주고, 스킬은 그 손을 제대로 쓰는 법을 알려 줘요. 함께 쓰면 결과가 좋아지고 토큰도 덜 들어요.
자주 묻는 질문
무료이고 오픈소스인가요?
코드는 MIT 라이선스입니다. 기반 패키지의 모델 라이선스는 별도입니다.
Docling Serve 서비스가 필요한가요?
아니요. 원격 모드는 서비스를 쓰지만, 로컬 모드(docling-mcp[local])는 사용자의 컴퓨터에서 변환합니다.
로컬 변환으로 대체할 수 있나요?
네. 로컬 설치와 함께 DOCLING_MCP_FALLBACK_TO_LOCAL=true를 설정하세요.
OCR을 지원하나요?
네. OCR은 기본으로 켜져 있으며, 설치되어 있다면 easyocr이나 tesseract 같은 엔진을 고를 수 있습니다.
어떤 전송 방식을 지원하나요?
stdio, sse, streamable-http입니다.
어떤 버전을 고정해야 하나요?
3.0.0 이상은 MCP SDK v2가 필요합니다. 클라이언트가 아직 v2로 옮기지 않았다면 docling-mcp<3.0.0으로 고정하세요.
작동하지 않을 때
- ›uvx --from docling-mcp docling-mcp-server로 실행하고, uv가 설치되어 있는지 확인하세요.
- ›원격 모드에서는 DOCLING_MCP_SERVICE_URL과 DOCLING_MCP_SERVICE_API_KEY를 확인하세요.
- ›그림 설명이 느리면 DOCLING_MCP_SERVICE_TIMEOUT 또는 클라이언트 제한 시간을 늘리세요.
매주 새 스킬 5개. 읽는 데 1분.