Installation
Prerequisites
- Node.js (>= 18.0.0 recommended)
- npm (comes with Node.js)
Using npm (Recommended)
To use the server in your project or MCP host environment, install it as a dependency:
bash
npm install @sylphx/pdf-reader-mcpRunning Standalone (for testing/development)
Clone the repository:
bashgit clone https://github.com/SylphxAI/pdf-reader-mcp.git cd pdf-reader-mcpInstall dependencies:
bashnpm installBuild the project:
bashnpm run buildRun the server: The server communicates via stdio. You'll typically run it from an MCP host.
bashnode build/index.jsImportant: Ensure you run this command from the root directory of the project containing the PDFs you want the server to access.
Using Docker
A Docker image is available on Docker Hub.
bash
docker pull sylphx/pdf-reader-mcp:latestTo run the container, you need to mount the project directory containing your PDFs into the container's working directory (/app):
bash
docker run -i --rm -v "/path/to/your/project:/app" sylphx/pdf-reader-mcp:latestReplace /path/to/your/project with the actual absolute path to your project folder.