extract_textLABSCO SUMMARY
It reads PDFs; it does not change them.
Three read-only calls cover what an assistant usually needs from a PDF someone sent: the text, the tables, and a quick check of page count and metadata before pulling the whole document into the conversation. Tables come back as rows with their page number, so a report's figures stay usable instead of being flattened into prose.
What it is
A local PDF reader built on pdfplumber. Three tools take a file path and return the document's text, its tables, or its page count, metadata and first-page size.
What you get
- Text from every page of a PDF, returned as plain text — extract_text
- Tables as rows of cell values, each tagged with the page it was found on, for the whole file or a single page — extract_tables
- Page count, the document metadata and the width and height of the first page — get_pdf_info
Requirements
PDF files on paths the server can read — every tool takes a local file path and only reads it. Python 3.10+; it runs with uvx straight from the GitHub repository, or from a clone with uv sync. No credentials.
Setup effort
One command — uvx --from git+https://github.com/gstiebler/pdf-mcp-server.git pdf-mcp-server
USE CASES
Reading a PDF someone sent you
Give it the file path and the text of every page comes back as text.
Getting the numbers out of a report
Tables come back as rows of cell values with the page each was found on, and you can ask for a single page.
Checking a file before you pull it into the conversation
Page count, metadata and the dimensions of the first page.
3 tools
Listed in project docs. Your client may show a different list.
get_pdf_infoextract_tablesBEFORE YOU INSTALL
What to know first
Tools you get
3 tools named in the project's documentation.
Requires
- uvx on PATH
- Python 3.10+
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
Setup
git clone https://github.com/gstiebler/pdf-mcp-server.git
cd pdf-mcp-server
uv syncuvx
uvx --from git+https://github.com/gstiebler/pdf-mcp-server.git pdf-mcp-serverMCP Clients
Any MCP client
{
"mcpServers": {
"pdf-reader": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/gstiebler/pdf-mcp-server.git",
"pdf-mcp-server"
]
}
}
}