AI 클라이언트가 하나의 통합된 도구를 통해 파일 시스템의 DOCX, PDF, Excel, TXT 파일을 읽을 수 있게 합니다.
다른 이름 xt765/mcp_documents_reader, mcp-documents-reader
- 스타
- 23
- Tools
- 1
- 다운로드, 30일
- 570
- 최신 버전
- 1.3.1
- 마지막 커밋
- 2026년 10월 16일
- 라이선스
- MIT
Document Reader MCP란?
Document Reader은(는) MCP server입니다. AI 클라이언트가 하나의 통합된 도구를 통해 파일 시스템의 DOCX, PDF, Excel, TXT 파일을 읽을 수 있게 합니다. 1개 도구를 제공합니다. 예: filename.
프로젝트 README에서 생성된 요약
Document Reader MCP server 정보
이 도구를 사용하면 AI 어시스턴트 내에서 다양한 파일 형식의 텍스트를 직접 추출할 수 있습니다. AI 에이전트가 로컬 파일 시스템의 콘텐츠에 접근하고 처리할 수 있도록 단일 인터페이스를 제공합니다. AI 클라이언트는 read_document 도구를 사용하여 Excel 스프레드시트, Word 문서, PDF, 일반 텍스트 파일 등 네 가지 특정 형식의 데이터를 해석할 수 있습니다.
개발자는 uvx 명령어를 사용하여 JSON 파일로 설정함으로써 Claude Desktop 또는 Trae IDE와 같은 환경에 이 server를 통합할 수 있습니다. server는 로컬에서 실행되며 사용자가 제공한 절대 경로 또는 상대 경로를 통해 파일에 접근합니다. 파일 유형을 감지하고 Word 파일의 경우 python-docx, Excel 파일의 경우 openpyxl과 같은 적절한 내부 리더를 선택하여 추출된 텍스트 콘텐츠를 모델에 반환하는 복잡한 과정을 처리합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Document Reader MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 Document Reader MCP 설치
$ claude mcp add mcp-documents-reader -- uvx mcp-documents-readerCursor에 Document Reader MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-documents-reader": {
"command": "uvx",
"args": [
"mcp-documents-reader"
]
}
}
}VS Code에 Document Reader MCP 설치
.vscode/mcp.json
{
"servers": {
"mcp-documents-reader": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-documents-reader"
]
}
}
}VS Code CLI에 Document Reader MCP 설치
$ code --add-mcp '{"name":"mcp-documents-reader","type":"stdio","command":"uvx","args":["mcp-documents-reader"]}'Claude Desktop에 Document Reader MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"mcp-documents-reader": {
"command": "uvx",
"args": [
"mcp-documents-reader"
]
}
}
}Codex에 Document Reader MCP 설치
$ codex mcp add mcp-documents-reader -- uvx mcp-documents-readerCodex config.toml에 Document Reader MCP 설치
~/.codex/config.toml
[mcp_servers.mcp-documents-reader] command = "uvx" args = ["mcp-documents-reader"]
Gemini CLI에 Document Reader MCP 설치
$ gemini mcp add -s user mcp-documents-reader uvx -- mcp-documents-readerGemini settings.json에 Document Reader MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"mcp-documents-reader": {
"command": "uvx",
"args": [
"mcp-documents-reader"
]
}
}
}Document Reader MCP 도구 1
README에서 감지됨filename
| filename | — |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능xt765/mcp_documents_reader is public and reachablegithub.com/xt765/mcp_documents_reader ↗통과
- 패키지가 이 저장소를 소스로 명시mcp-documents-reader names xt765/mcp_documents_reader as sourcepypi.org/project/mcp-documents-reader/ ↗통과
- 빌드 출처(Sigstore 증명)Sigstore attestation for mcp-documents-readerpypi.org/project/mcp-documents-reader/ ↗통과
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-10-16github.com/xt765/mcp_documents_reader ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from mcp-documents-reader통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음34 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음1 tool description and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기Features
- Multi-format Support: Supports 4 mainstream document formats: Excel (XLSX/XLS), DOCX, PDF, and TXT
- MCP Protocol: Compliant with MCP standards, can be used as a tool for AI assistants like Trae IDE
- Easy Integration: Simple configuration for immediate use
- Reliable Performance: Successfully tested and running in Trae IDE
- File System Support: Reads documents directly from the file system
📚 Documentation
User Guide · API Reference · Contributing · Changelog · License
Architecture
graph TB
A[AI Assistant / User] -->|Call read_document| B[MCP Document Reader]
B -->|Detect file type| C{File Type?}
C -->|.docx| D[DOCX Reader]
C -->|.pdf| E[PDF Reader]
C -->|.xlsx/.xls| F[Excel Reader]
C -->|.txt| G[Text Reader]
D -->|Extract text| H[Return Content]
E -->|Extract text| H
F -->|Extract text| H
G -->|Extract text| H
H -->|Text content| A
style A fill:#e1f5ff
style B fill:#fff4e1
style C fill:#f0f0f0
style D fill:#e8f5e9
style E fill:#e8f5e9
style F fill:#e8f5e9
style G fill:#e8f5e9
style H fill:#fff9c4
Supported Formats
| Format | Extensions | MIME Type | Features |
|---|---|---|---|
| Excel | .xlsx, .xls | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Sheet and cell data extraction |
| DOCX | .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Text and structure extraction |
| application/pdf | Text extraction | ||
| Text | .txt | text/plain | Plain text reading |
Installation
Using pip (Recommended)
pip install mcp-documents-reader
From Source
git clone https://github.com/xt765/mcp_documents_reader.git
cd mcp_documents_reader
pip install -e .
MCP Tools
This server provides the following tool:
read_document
Read any supported document type with a unified interface.
Arguments:
filename(string, required): Document file path, supports absolute or relative paths.
Configuration
Using in Trae IDE / Claude Desktop
Add the following to your MCP configuration file:
Option 1: Using PyPI (Recommended)
{
"mcpServers": {
"mcp-document-reader": {
"command": "uvx",
"args": [
"mcp-documents-reader"
]
}
}
}
Option 2: Using GitHub repository
{
"mcpServers": {
"mcp-document-reader": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/xt765/mcp_documents_reader",
"mcp_documents_reader"
]
}
}
}
Option 3: Using Gitee repository (Faster access in China)
{
"mcpServers": {
"mcp-document-reader": {
"command": "uvx",
"args": [
"--from",
"git+https://gitee.com/xt765/mcp_documents_reader",
"mcp_documents_reader"
]
}
}
}
Usage
As an MCP Tool
After configuration, AI assistants can directly call the following tool:
# Read a DOCX file
read_document(filename="example.docx")
# Read a PDF file
read_document(filename="example.pdf")
# Read an Excel file
read_document(filename="example.xlsx")
# Read a text file
read_document(filename="example.txt")
As a Python Library
from mcp_documents_reader import DocumentReaderFactory
# Using factory (recommended)
reader = DocumentReaderFactory.get_reader("document.pdf")
content = reader.read("/path/to/document.pdf")
# Check if format is supported
if DocumentReaderFactory.is_supported("file.xlsx"):
reader = DocumentReaderFactory.get_reader("file.xlsx")
content = reader.read("/path/to/file.xlsx")
Tool Interface Details
read_document
Read any supported document type.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| filename | string | ✅ | Document file path, supports absolute or relative paths |
Dependencies
Core Dependencies
mcp>= 1.26.0 - MCP protocol implementationpython-docx>= 1.2.0 - DOCX file readingpypdf>= 6.8.0 - PDF file reading (replaces PyPDF2)openpyxl>= 3.1.5 - Excel file reading
Development Dependencies
pytest>= 8.0.0 - Testing frameworkpytest-asyncio>= 0.24.0 - Async testing supportpytest-cov>= 6.0.0 - Coverage reportingbasedpyright>= 0.28.0 - Type checkingruff>= 0.8.0 - Linting and formatting
License
MIT License
Contributing
Issues and Pull Requests are welcome!
Related Projects
- MCP Document Converter - MCP document converter supporting multiple format conversions
- Model Context Protocol - Official Model Context Protocol documentation
Document Reader MCP 질문
Document Reader MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add mcp-documents-reader -- uvx mcp-documents-reader를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Document Reader MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
Document Reader MCP는 어떤 도구를 제공하나요?
1개 도구를 제공합니다. 예: filename.
이 MCP server는 어떤 문서 형식을 지원하나요?
Excel (XLSX/XLS), DOCX, PDF, TXT 파일을 읽을 수 있습니다.
문서 리더 MCP server를 어떻게 설치하나요?
PyPI에서 pip로 설치하거나, 저장소를 클론하여 소스에서 설치할 수 있습니다.
이 server가 AI 클라이언트에 제공하는 도구는 무엇인가요?
파일명이 입력되면 추출된 텍스트를 반환하는 단일 read_document 도구를 제공합니다.
Python 라이브러리로 사용할 수 있나요?
네, DocumentReaderFactory를 통해 특정 파일에 대한 리더를 반환받거나 형식 지원 여부를 확인할 수 있습니다.