PDF MCP Server
Extract text and data from PDF files using pdfplumber by providing local file paths.
PDF MCP Server
A simple Model Context Protocol (MCP) server that provides PDF reading capabilities using pdfplumber.
Features
- extract_text: Extract all text content from PDF files
- get_pdf_info: Get basic PDF information (page count, metadata, dimensions)
- extract_tables: Extract tables from PDF files
Installation
Option 1: Without installation (using uvx)
You can run the server directly without installing it:
uvx --from git+https://github.com/gstiebler/pdf-mcp-server.git pdf-mcp-server
Option 2: Local installation
Clone the repository and install dependencies:
git clone https://github.com/gstiebler/pdf-mcp-server.git
cd pdf-mcp-server
uv sync
Usage
If installed locally:
python main.py
The server runs using stdio transport and can be integrated with any MCP client.
Available Tools
extract_text
Extracts all text content from a PDF file.
Parameters:
file_path(string): Path to the PDF file
Returns:
- Complete text content from all pages
get_pdf_info
Gets basic information about a PDF file.
Parameters:
file_path(string): Path to the PDF file
Returns:
- Dictionary containing:
page_count: Number of pagesmetadata: PDF metadata (if available)page_dimensions: Width and height of the first page
extract_tables
Extracts tables from a PDF file.
Parameters:
file_path(string): Path to the PDF filepage_number(integer, optional): Specific page number to extract from (1-indexed)
Returns:
- List of tables with:
page: Page number where the table was founddata: Table data as a list of rows (each row is a list of cell values)
Integration with Claude Desktop
To use this server with Claude Desktop, add it to your Claude Desktop configuration:
Option 1: Direct from GitHub (recommended)
{
"mcpServers": {
"pdf-reader": {
"command": "uvx",
"args": ["--from", "git+https://github.com/gstiebler/pdf-mcp-server.git", "pdf-mcp-server"]
}
}
}
Option 2: From local installation
{
"mcpServers": {
"pdf-reader": {
"command": "python",
"args": ["/path/to/pdf-mcp-server/main.py"]
}
}
}
Requirements
- Python 3.10+
- pdfplumber
- mcp
관련 서버
Local Utilities
Provides essential utility tools for text processing, file operations, and system tasks.
Vulcan File Ops
MCP server that gives Claude Desktop and other desktop MCP clients filesystem powers—read, write, edit, and manage files like AI coding assistants.
IDE MEMORY MCP
IDE Memory MCP gives AI coding agents a persistent memory layer that works across any IDE supporting the Model Context Protocol. Write project context once — the AI remembers it everywhere.
fff
The fastest and the most accurate file search toolkit for AI agents
Edit File Lines MCP Server
Make precise line-based edits to text files within allowed directories.
Android Filesystem
Securely browse and read files within an Android project, with built-in validation and access controls for sensitive directories.
PDF Agent MCP
A server for AI agents to selectively process and extract content from PDF documents.
302AI File Parser
Parses various file formats using the 302.AI API, requiring a 302AI_API_KEY.
JSON MCP Server
A high-performance MCP server for comprehensive JSON file operations, including reading, writing, and advanced querying, optimized for LLM interactions.
MCP-PROCESS
Provides shell access to execute commands and interact with the local file system.