pdf-rag-mcp-server
PDF RAG server for cursor.
Install / Use
claude mcp add hyson666 -- npx -y github:hyson666/pdf-rag-mcp-serverIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of pdf-rag-mcp-server
pdf-rag-mcp-server scores 64/100 on our quality scale, 3914th of 4,674 Development & Engineering skills we index.
Its MCP Server is 6.8 KB long, well organised into 30 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 42 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 17 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
- Our last check on 2026-09-19 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 68/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
pdf-rag-mcp-server compared with similar skills
All 4 of these similar skills score higher than pdf-rag-mcp-server; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| pdf-rag-mcp-server (this skill)by hyson666 | 64 | 42 | 17mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 87.6k | 16d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.3k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.7k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
Frequently asked questions
- How do I install pdf-rag-mcp-server?
- Run
claude mcp add hyson666 -- npx -y github:hyson666/pdf-rag-mcp-server. The install tabs above show the steps for each supported agent. - Which AI agents does pdf-rag-mcp-server work with?
- It is written for Claude Code, Claude Desktop and Cursor, as a MCP Server file. Other agents that read the same format can often use it too.
- Is pdf-rag-mcp-server safe to use?
- It declares no license and scores 68/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is pdf-rag-mcp-server still maintained?
- The repository was last updated about 17 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
Skill content
View source on GitHubPDF RAG MCP Server
<img width="600" alt="image" src="https://github.com/user-attachments/assets/3aeb102a-6d7f-4d58-a15b-129e640b2e35" /> <img width="1614" alt="image" src="https://github.com/user-attachments/assets/2b6e12c0-48f1-49f8-8d50-db03da2d1ee8" />A powerful document knowledge base system that leverages PDF processing, vector storage, and MCP (Model Context Protocol) to provide semantic search capabilities for PDF documents. This system allows you to upload, process, and query PDF documents through a modern web interface or via the MCP protocol for integration with AI tools like Cursor.
Features
- PDF Document Upload & Processing: Upload PDFs and automatically extract, chunk, and vectorize content
- Real-time Processing Status: WebSocket-based real-time status updates during document processing
- Semantic Search: Vector-based semantic search across all processed documents
- MCP Protocol Support: Integrate with AI tools like Cursor using the Model Context Protocol
- Modern Web Interface: React/Chakra UI frontend for document management and querying
- Fast Dependency Management: Uses uv for efficient Python dependency management
System Architecture
The system consists of:
- FastAPI Backend: Handles API requests, PDF processing, and vector storage
- React Frontend: Provides a user-friendly interface for managing documents
- Vector Database: Stores embeddings for semantic search
- WebSocket Server: Provides real-time updates on document processing
- MCP Server: Exposes knowledge base to MCP-compatible clients
Quick Start
Prerequisites
- Python 3.8 or later
- uv - Fast Python package installer and resolver
- Git
- Cursor (optional, for MCP integration)
Quick Installation and Startup with uv and run.py
-
Clone the repository:
git clone https://github.com/yourusername/PdfRagMcpServer.git cd PdfRagMcpServer -
Install uv if you don't have it already:
curl -sS https://astral.sh/uv/install.sh | bash -
Install dependencies using uv:
uv init . uv venv source .venv/bin/activate uv pip install -r backend/requirements.txt -
Start the application with the convenient script:
uv run run.py -
Access the web interface at http://localhost:8000
-
Using with Cursor
Go Settings -> Cursor Settings -> MCP -> Add new global MCP server, paste below into your Cursor ~/.cursor/mcp.json file. See Cursor MCP docs for more info.
{
"mcpServers": {
"pdf-rag": {
"url": "http://localhost:7800/mcp"
}
}
}
You could also change localhost into the host ip you deployed the service. After this confige added to the mcp json, you will see the mcp server showes at the Cursor mcp config page, switch it on to enable the server:
<img width="742" alt="image" src="https://github.com/user-attachments/assets/d9b2c97c-c535-4d2a-bcf1-2d2c6343aeb3" />Building the Frontend (For Developers)
If you need to rebuild the frontend, you have two options:
Option 1: Using the provided script (recommended)
# Make the script executable if needed
chmod +x build_frontend.py
# Run the script
./build_frontend.py
This script will automatically:
- Install frontend dependencies
- Build the frontend
- Copy the build output to the backend's static directory
Option 2: Manual build process
# Navigate to frontend directory
cd frontend
# Install dependencies
npm install
# Build the frontend
npm run build
# Create static directory if it doesn't exist
mkdir -p ../backend/static
# Copy build files
cp -r dist/* ../backend/static/
After building the frontend, you can start the application using the run.py script.
Simple Production Setup
For a production environment where the static files have already been built:
- Place your pre-built frontend in the
backend/staticdirectory - Start the server:
cd backend uv pip install -r requirements.txt python -m app.main
Development Setup (Separate Services)
If you want to run the services separately for development:
Backend
-
Navigate to the backend directory:
cd backend -
Install the dependencies with uv:
uv pip install -r requirements.txt -
Run the backend server:
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
Frontend
-
Navigate to the frontend directory:
cd frontend -
Install the dependencies:
npm install -
Run the development server:
npm run dev
Usage
Uploading Documents
- Access the web interface at http://localhost:8000
- Click on "Upload New PDF" and select a PDF file
- The system will process the file, showing progress in real-time
- Once processed, the document will be available for searching
Searching Documents
- Use the search functionality in the web interface
- Or integrate with Cursor using the MCP protocol
MCP Integration with Cursor
- Open Cursor
- Go to Settings → AI & MCP
- Add Custom MCP Server with URL:
http://localhost:8000/mcp/v1 - Save the settings
- Now you can query your PDF knowledge base directly from Cursor
Troubleshooting
Connection Issues
- Verify that port 8000 is not in use by other applications
- Check that the WebSocket connection is working properly
- Ensure your browser supports WebSockets
Processing Issues
- Check if your PDF contains extractable text (some scanned PDFs may not)
- Ensure the system has sufficient resources (memory and CPU)
- Check the backend logs for detailed error messages
Project Structure
PdfRagMcpServer/
├── backend/ # FastAPI backend
│ ├── app/
│ │ ├── __init__.py
│ │ ├── main.py # Main FastAPI application
│ │ ├── database.py # Database models
│ │ ├── pdf_processor.py # PDF processing logic
│ │ ├── vector_store.py # Vector database interface
│ │ └── websocket.py # WebSocket handling
│ ├── static/ # Static files for the web interface
│ └── requirements.txt # Backend dependencies
├── frontend/ # React frontend
│ ├── public/
│ ├── src/
│ │ ├── components/ # UI components
│ │ ├── context/ # React context
│ │ ├── pages/ # Page components
│ │ └── App.jsx # Main application component
│ ├── package.json # Frontend dependencies
│ └── vite.config.js # Vite configuration
├── uploads/ # PDF file storage
└── README.md # This documentation
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Skills
Agent-Reach
87.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.7k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
