### Troubleshoot Python Virtual Environment for Installation Source: https://github.com/xraywu/mcp-pdf-extraction-server/blob/master/README.md Commands to create and activate a new Python virtual environment, then install the PDF extraction server, useful for resolving installation issues. ```bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -e . ``` -------------------------------- ### Example Usage of PDF Extraction Tool in Claude Source: https://github.com/xraywu/mcp-pdf-extraction-server/blob/master/README.md Examples of natural language prompts to instruct Claude to extract content from PDF files using the `extract-pdf-contents` tool. ```text "Can you extract the content from the PDF at /path/to/document.pdf?" "Extract pages 1-3 and the last page from /path/to/document.pdf" ``` -------------------------------- ### Install PDF Extraction Server for Claude Code CLI Source: https://github.com/xraywu/mcp-pdf-extraction-server/blob/master/README.md Instructions to clone the repository and install the PDF extraction server in development mode using pip, specifically for use with Claude Code CLI. ```bash git clone https://github.com/lh/mcp-pdf-extraction-server.git cd mcp-pdf-extraction-server pip install -e . ``` -------------------------------- ### Locate Installed PDF Extraction Command Source: https://github.com/xraywu/mcp-pdf-extraction-server/blob/master/README.md Command to find the full path of the installed `pdf-extraction` executable, which is required for adding it to Claude Code CLI. ```bash which pdf-extraction ``` -------------------------------- ### Verify PDF Extraction Server Connection in Claude Source: https://github.com/xraywu/mcp-pdf-extraction-server/blob/master/README.md Steps to start a new Claude session and check the connection status of the `pdf-extraction` MCP server. ```bash claude /mcp ``` -------------------------------- ### API Documentation: extract-pdf-contents Tool Source: https://github.com/xraywu/mcp-pdf-extraction-server/blob/master/README.md Documentation for the `extract-pdf-contents` tool, detailing its purpose, required and optional arguments, and capabilities including text extraction and OCR. ```APIDOC Tool: extract-pdf-contents Description: Extract contents from a local PDF file. Arguments: pdf_path (string, required): Local file path to the PDF. pages (string, optional): Comma-separated page numbers (e.g., "1,3,-1"). Supports negative indexing. Capabilities: - PDF text extraction - OCR for scanned documents ``` -------------------------------- ### Add PDF Extraction Server to Claude Code CLI Source: https://github.com/xraywu/mcp-pdf-extraction-server/blob/master/README.md Commands to register the `pdf-extraction` server with Claude Code CLI using its full path and verify its successful addition. ```bash claude mcp add pdf-extraction /opt/homebrew/Caskroom/miniconda/base/bin/pdf-extraction claude mcp list ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.