dsh-read-pdf
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dsh-read-pdfOCR the scanned Chinese PDF and summarize the key points"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dsh-read-pdf — MCP server + CLI tool that lets DSH read PDFs
A PDF-reading server built on Model Context Protocol: text extraction, Chinese OCR (scanned pages), page rendering, file search, drag-and-drop inbox, ready to use out of the box. Compatible with any MCP client: DSH, Claude Desktop, Codex, Cursor, or your own app. Repo: https://github.com/xiaoxuPekingUniversity/dsh-read-pdf
中文
Features
Tool | Description |
| Page count / scanned or not / file size |
| Extract text from specified pages ( |
| Chinese OCR for scanned PDFs (RapidOCR, runs locally, no network needed) |
| Render pages to PNG (for manual review of formula/diagram pages) |
| Find PDFs in a directory by keyword (newest first by modification time) |
The CLI version pdf_tools.py provides the same capabilities without depending on any MCP client.
PDF Drop inbox (drag-and-drop upload): pdf_drop_server.py is a zero-dependency local web service.
Drag PDFs into the drop zone in your browser and they are saved to a local folder — great for "feeding materials to AI" without host-side attachment upload support.
Install
pip install -r requirements.txtUsage
Command line (CLI)
python pdf_tools.py info exam.pdf
python pdf_tools.py text exam.pdf --pages 1-3
python pdf_tools.py ocr scanned.pdf # 扫描版中文识别
python pdf_tools.py render exam.pdf --pages 1-3
python pdf_tools.py find --dir ~/Downloads "期末"PDF Drop inbox (drag-and-drop upload)
python pdf_drop_server.py --port 8765 # 浏览器打开 http://127.0.0.1:8765As an MCP server
DSH (append to profiles/web/cordis.patch.yml):
- insert:
- id: mcp-pdf
name: '@deepseek-ai/dsh-mcp-client'
config:
transport: stdio
serverName: pdf
command: python
args:
- /绝对路径/mcp_pdf_server.py
failOnStartupError: falseAs a native DSH plugin (with a Web settings-page toggle, recommended)
ds-plugin/ provides a zero-build host plugin with a "PDF Reading" toggle on the settings page (start/stop tools at runtime); see ds-plugin/README.md.
Claude Desktop (claude_desktop_config.json): see examples/claude_desktop_config.json.
Typical use cases
Drop scanned exam papers into an MCP-capable AI client → text is recognized automatically → generate solutions/handouts;
Pair with a local AI workspace: the AI directly calls
pdf_text/pdf_ocrto read PDFs in a materials folder.
Roadmap
Support more file types (docx / xlsx)
Drag-and-drop upload (drag PDFs directly into the chat box) — requires host client support for non-image attachments; contributions welcome in this repo
PDF merge / split / batch conversion to images
Related MCP server: MCP Server Knowledge Engine
English
Features
Tool | Description |
| Page count / scanned detection / size |
| Extract text from selected pages ( |
| Chinese OCR for scanned PDFs (RapidOCR, fully local) |
| Render pages to PNG (for formula/diagram pages) |
| Find PDFs in a directory by keyword (newest first) |
A CLI (pdf_tools.py) provides the same capabilities without any MCP client.
pdf_drop_server.py adds a zero-dependency local drag-and-drop inbox web page
for feeding PDFs into an AI workspace (no host-side attachment support needed).
Install
pip install -r requirements.txtUsage
CLI
python pdf_tools.py info exam.pdf
python pdf_tools.py text exam.pdf --pages 1-3
python pdf_tools.py ocr scanned.pdf
python pdf_tools.py render exam.pdf --pages 1-3
python pdf_tools.py find --dir ~/Downloads "final"As an MCP server — register with any MCP-capable client (DSH, Claude Desktop, Codex…). See examples/ for config snippets.
Roadmap
Support more file types (docx / xlsx)
Drag-and-drop upload into chat UIs (requires host-side non-image attachment support — contributions welcome)
PDF merge / split / batch conversion
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceAn MCP server that provides a tool to extract text content from local PDF files, supporting both standard PDF reading and OCR capabilities with optional page selection.133
- FlicenseNot gradedqualityDmaintenanceTransforms PDF collections into a searchable knowledge base using TF-IDF indexing and proximity matching. It enables users to search documents, retrieve specific page content, and manage document libraries through natural language via MCP clients.5
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to read, search, and analyze PDF files from local paths or URLs. It provides tools for extracting specific page ranges, searching for terms, and retrieving document metadata.4341MIT
- AlicenseAqualityNot gradedmaintenanceAn MCP server that enables users to read, search, and analyze PDF documents. It provides tools for extracting text, viewing metadata, searching content with context, and generating word statistics.5
Related MCP Connectors
MCP server for the PDFGate API. Generate PDFs, manage documents and handle e-signatures.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
2,000+ MCP servers read at source level. Know what one does before you connect. Free, no key.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiaoxuPekingUniversity/dsh-read-pdf'
If you have feedback or need assistance with the MCP directory API, please join our Discord server