Document Loader MCP Server
Model Context Protocol (MCP) server for document parsing and content extraction
This MCP server provides tools to parse and extract content from various document formats including PDF, Word documents, Excel spreadsheets, PowerPoint presentations, and images.
Features
- PDF Text Extraction: Extract text content from PDF files using pdfplumber
- Word Document Processing: Convert DOCX/DOC files to markdown using markitdown
- Excel Spreadsheet Reading: Parse XLSX/XLS files and convert to markdown
- PowerPoint Presentation Processing: Extract content from PPTX/PPT files
- Image Loading: Load and display various image formats (PNG, JPG, GIF, BMP, TIFF, WEBP)
Prerequisites
Installation Requirements
- Install
uvfrom Astral or the GitHub README - Install Python 3.10 or newer using
uv python install 3.10(or a more recent version)
Installation
| Kiro | Cursor | VS Code |
|---|---|---|
Configure the MCP server in your MCP client configuration:
{
"mcpServers": {
"awslabs.document-loader-mcp-server": {
"command": "uvx",
"args": ["awslabs.document-loader-mcp-server@latest"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
},
"disabled": false,
"autoApprove": []
}
}
}
For Kiro MCP configuration, see the Kiro IDE documentation or the Kiro CLI documentation for details.
For global configuration, edit ~/.kiro/settings/mcp.json. For project-specific configuration, edit .kiro/settings/mcp.json in your project directory.
Available Tools
read_document: Extract content from various document formats by specifying file_path and file_type ('pdf', 'docx', 'doc', 'xlsx', 'xls', 'pptx', 'ppt')read_image: Load image files for LLM viewing and analysis
Environment Variables
FASTMCP_LOG_LEVEL: Set logging level (ERROR, INFO, DEBUG)
Development
Setup
# Clone the repository
git clone https://github.com/awslabs/mcp.git
cd mcp/src/document-loader-mcp-server
# Install dependencies
uv sync
# Install in development mode
uv pip install -e .
Testing
# Run tests
uv run pytest
# Run with coverage
uv run pytest --cov=awslabs.document_loader_mcp_server
The test suite includes:
- Server functionality validation
- Document parsing tests with generated sample files
- Error handling verification
Sample Documents
The test suite automatically generates sample documents for testing:
- PDF with multi-page content
- DOCX with formatted text and lists
- XLSX with multiple sheets and data
- PPTX with slides and content
- Various image formats
Docker
You can also run this server in a Docker container:
docker build -t document-loader-mcp-server .
docker run -p 8000:8000 document-loader-mcp-server
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
Support
For issues and questions, please use the GitHub issue tracker.
Metadata
Release files for awslabs.document-loader-mcp-server 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| awslabs_document_loader_mcp_server-1.0.11.tar.gz | 175.9 kB | With provenance | Details for awslabs_document_loader_mcp_server-1.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| awslabs_document_loader_mcp_server-1.0.11-py3-none-any.whl | Python 3 | none | any | Details for awslabs_document_loader_mcp_server-1.0.11-py3-none-any.whl |
Total release size: 188.8 kB
Release files / awslabs_document_loader_mcp_server-1.0.11.tar.gz
| Download URL | awslabs_document_loader_mcp_server-1.0.11.tar.gz |
|---|---|
| Size | 175.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc89a1b9106a6dac129055cc10ad9c67c93e8eec54b40f86a2347418ad9f7f86
|
|
BLAKE2b-256 checksum How to use checksums |
f84efb0d645fdf96d548cdf22034f7d7735488627162a8cf16c5b6577661093a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 5, 2026.
Transparency logRelease files / awslabs_document_loader_mcp_server-1.0.11-py3-none-any.whl
| Download URL | awslabs_document_loader_mcp_server-1.0.11-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6558f027bb70b048d55e84319567153b23db2af711b37cd60aeaf360582a6c73
|
|
BLAKE2b-256 checksum How to use checksums |
e00dd9cb1945a6522b41d2cbc535e99223d2c570c1d3859efae6cc13b68b9f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 5, 2026.
Transparency logSecurity for awslabs.document-loader-mcp-server 1.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for awslabs_document_loader_mcp_server-1.0.11.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.