
hyson666/pdf-rag-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
hyson666/pdf-rag-mcp-server は [https://github.com/hyson666/pdf-rag-mcp-server.] からインポートされた MCP サーバーの候補です
概要
hyson666/pdf-rag-mcp-server は [https://github.com/hyson666/pdf-rag-mcp-server.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
PDF処理、ベクターストレージ、MCP(Model Context Protocol)を活用した強力なドキュメントナレッジベースシステムで、PDF文書のセマンティック検索機能を提供します。 このシステムは、近代的なWebインターフェイスを介して、またはCursorのようなAIツールと統合するためのMCPプロトコルを介して、PDF文書をアップロード、処理、およびクエリすることができます。
##特徴
-PDF文書のアップロードと処理:PDFをアップロードして、自動的に抽出、チャンク、およびベクター化コンテンツ
- リアルタイム処理ステータス:ドキュメント処理中のWebSocketベースのリアルタイムステータス更新 -Semantic Search:すべての処理された文書を渡るベクトルベースの皮下調査 -MCPプロトコルサポート: Model Context Protocol を使用した Cursor のような AI ツールを統合 -Modern Web Interface:ドキュメント管理とクエリのReact/Chakra UI フロントエンド
- 速い依存関係管理: 効率的な Python 依存性管理のための uv を使用する
システムアーキテクチャ
システムはから成っています:
- FastAPI Backend:APIリクエスト、PDF処理、およびベクターストレージの処理
- React Frontend:文書を管理するためのユーザーフレンドリーなインターフェイスを提供
- ベクトルデータベース: semantic検索のための埋め込むストア
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
PDF RAG MCP Server
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:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"pdf-rag": {
"url": "http://localhost:7800/mcp"
}
}
}