This guide will help you get started with document-reader-mcp in under 5 minutes.
git clone https://github.com/ifmelate/document-reader-mcp.git
cd document-reader-mcpOption A: Automated Setup (Recommended)
chmod +x dev-setup.sh
./dev-setup.shOption B: Manual Setup
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtOption A: Automated Setup (Recommended)
dev-setup.batOption B: Manual Setup
python -m venv .venv
.venv\Scripts\activate.bat
pip install -r requirements.txtOption A: Automated Setup (Recommended)
.\dev-setup.ps1Option B: Manual Setup
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txtmacOS/Linux:
python3 -m server.mainWindows:
python -m server.mainYou should see the server start. Press Ctrl+C to stop it.
- Open Cursor Settings
- Navigate to MCP section
- Add this configuration:
{
"mcpServers": {
"document-reader": {
"command": "python3",
"args": ["-m", "server.main"],
"cwd": "/absolute/path/to/document-reader-mcp"
}
}
}{
"mcpServers": {
"document-reader": {
"command": "python",
"args": ["-m", "server.main"],
"cwd": "C:/Users/YourUsername/document-reader-mcp"
}
}
}Note: Replace the path with your actual installation directory. On Windows, you can use forward slashes (/) or double backslashes (\\\\).
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"document-reader": {
"command": "python3",
"args": ["-m", "server.main"],
"cwd": "/path/to/document-reader-mcp"
}
}
}Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"document-reader": {
"command": "python",
"args": ["-m", "server.main"],
"cwd": "C:/Users/YourUsername/document-reader-mcp"
}
}
}Once configured, you can use these commands in your MCP client:
Extract text from ~/Documents/report.pdf
Read the first 10 rows from data.xlsx
What's in sales_data.csv?
Show me the contents of config.json
| Format | Extensions |
|---|---|
.pdf |
|
| Excel | .xlsx, .xlsm, .xltx, .xltm |
| Word | .docx |
| CSV | .csv |
| Text | .txt, .log, .text |
| JSON | .json |
| Markdown | .md, .markdown |
Set the DOC_READER_RATE_LIMIT_PER_MINUTE environment variable:
export DOC_READER_RATE_LIMIT_PER_MINUTE=120
python -m server.mainOr in your MCP client configuration:
{
"mcpServers": {
"document-reader": {
"command": "python3",
"args": ["-m", "server.main"],
"cwd": "/path/to/document-reader-mcp",
"env": {
"DOC_READER_RATE_LIMIT_PER_MINUTE": "120"
}
}
}
}- macOS/Linux: Verify Python 3.10+ is installed:
python3 --version - Windows: Verify Python 3.10+ is installed:
python --version - Ensure dependencies are installed:
pip install -r requirements.txt - Check for port conflicts (though this uses stdio, not network)
- macOS/Linux: Activate the virtual environment:
source .venv/bin/activate - Windows (CMD): Activate the virtual environment:
.venv\Scripts\activate.bat - Windows (PowerShell): Activate the virtual environment:
.venv\Scripts\Activate.ps1 - Reinstall dependencies:
pip install -r requirements.txt
- Check the file extension is supported (see table above)
- Verify the file exists and is readable
- Wait 60 seconds, or
- macOS/Linux: Increase limit:
export DOC_READER_RATE_LIMIT_PER_MINUTE=120 - Windows (CMD): Increase limit:
set DOC_READER_RATE_LIMIT_PER_MINUTE=120 - Windows (PowerShell): Increase limit:
$env:DOC_READER_RATE_LIMIT_PER_MINUTE=120
If you see "cannot be loaded because running scripts is disabled":
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser- Ensure Python is in your PATH
- Try using
pyinstead ofpythonif the installer added it:py --version - Reinstall Python from python.org with "Add to PATH" checked
- Read the full README.md for detailed documentation
- Check CONTRIBUTING.md to contribute
- Review SECURITY.md for security considerations
- See RELEASE.md for release process
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: README.md
MIT License - see LICENSE file for details.