Logo van PDF Knowledgebase MCP Server

PDF Knowledgebase MCP Server

Community
juanqui

A PDF document RAG MCP that is easy to setup, supports completely local parsing and embedding, hybrid search, and semantic chunking. Also features an optional web interface.

Uitgeverjuanqui
Repositorypdfkb-mcp
TaalPython
Forks
5
Sterren
13
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    PDF Knowledgebase MCP Server biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • Beschikbare tools: 0

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Belangstelling voor het opensourceproject

    Statistieken van de gekoppelde repository (sterren: 13, forks: 5).

PDF Knowledgebase MCP Server

A powerful Model Context Protocol (MCP) server that transforms your PDF and Markdown document collection into an intelligent, searchable knowledge base. Built for seamless integration with Claude Desktop, VS Code, Continue, and other MCP-enabled AI assistants.

Description

pdfkb-mcp processes your documents using advanced PDF parsing, creates semantic embeddings, and provides sophisticated search capabilities through the Model Context Protocol. Whether you're managing research papers, technical documentation, or business reports, pdfkb-mcp makes your document collection instantly searchable and accessible to your AI assistant.

Motivation

I built pdfkb-mcp because I needed a way to efficiently index and search through hundreds of semiconductor datasheets and technical documents. Traditional file search wasn't sufficient—I needed semantic understanding, context preservation, and the ability to ask complex questions about technical specifications across multiple documents. This tool has transformed how I work with technical documentation, and I'm sharing it so others can benefit from intelligent document search in their workflows.

✨ Features

🤖 Intelligent Document Processing

  • Multiple PDF Parsers: PyMuPDF4LLM (fast), Marker (balanced), Docling (tables), MinerU (academic), LLM (complex layouts)
  • Markdown Support: Native processing of .md and .markdown files with metadata extraction
  • Smart Chunking: LangChain, semantic, page-based, and unstructured chunking strategies
  • Background Processing: Non-blocking document processing with intelligent caching

🔍 Advanced Search & AI

  • Hybrid Search: Combines semantic similarity with keyword matching (BM25) for superior results
  • AI Reranking: Qwen3-Reranker models improve search relevance by 15-30%
  • Local & Remote Embeddings: Privacy-focused local models or high-performance API-based options
  • Document Summarization: Auto-generates rich metadata with titles, descriptions, and summaries

🌐 Multi-Client & Remote Access

  • MCP Protocol Support: Works with Claude Desktop, VS Code, Continue, Cline, and other MCP clients
  • Web Interface: Modern web UI for document management, search, and analysis
  • HTTP/SSE Transport: Remote access from multiple clients simultaneously
  • Docker Deployment: Production-ready containerized deployment

🔒 Privacy & Performance

  • Local-First Option: Run completely offline with local embeddings—no API costs, full privacy
  • Quantized Models: GGUF models use 50-70% less memory with maintained quality
  • Best Practices: Background processing, health checks, monitoring, and scalability

🌐 Web Interface Preview

Once your setup is complete, you'll have access to a modern web interface for document management and search:

PDF Knowledgebase Web Interface

The web interface provides document upload, real-time processing status, semantic search, and comprehensive document management capabilities.

Key Features:

  • 🔍 Real-time Search: Instant semantic and hybrid search
  • 📊 Processing Status: Live updates on document processing
  • 📈 Document Analytics: View chunks, metadata, and summaries
  • ⚙️ System Monitoring: Server performance and resource usage

🚀 Quick Start

Get up and running in minutes using Docker/Podman with DeepInfra as your AI provider.

Prerequisites

  • Container Runtime: Docker or Podman installed
  • DeepInfra API Key: Get your free key (recommended for cost-effectiveness)
  • Documents: A folder with PDF or Markdown files to index

1. Set Up Docker Compose

bash
# Download configuration and create directories
curl -o docker-compose.yml https://raw.githubusercontent.com/juanqui/pdfkb-mcp/main/docker-compose.sample.yml
mkdir -p ./documents ./cache ./logs

# Edit docker-compose.yml and update:
# 1. Volume path: "/path/to/your/documents:/app/documents:rw"
# 2. API key: PDFKB_OPENAI_API_KEY: "your-deepinfra-api-key-here"

2. Start the Server

bash
# Using Podman (recommended)
podman-compose up -d

# Or using Docker
docker compose up -d

Access Points:

3. Configure Your MCP Client

Claude Desktop - Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "pdfkb": {
      "transport": "http",
      "url": "http://localhost:8000/mcp/"
    }
  }
}

VS Code with Continue - Add to .continue/config.json:

json
{
  "mcpServers": {
    "pdfkb": {
      "transport": "http",
      "url": "http://localhost:8000/mcp/"
    }
  }
}

4. Add Your Documents

  • Web Interface: Open http://localhost:8000
  • File System: Copy files to your documents directory — they're automatically detected

5. Start Searching

Ask your AI assistant to search your documents:

  • "What register do I need to configure to reset charging in the nPM1300?"
  • "Is XYZ a clock capable pin according to the nRF54L15 datasheet?"
  • "What is the conversion formula to interpret temperature as celcius according to the XYZ datashet?"

The setup includes:

  • ✅ DeepInfra AI: Cost-effective embeddings, reranking, and document summarization
  • ✅ Hybrid Search: Semantic + keyword matching
  • ✅ Document Summarization: Auto-generated metadata (i.e. title, description)
  • ✅ Web Interface: Document management UI
  • ✅ Persistent Storage: Documents and cache preserved

📚 User Guide

For complete documentation, configuration options, and advanced features:

👉 View the Complete User Guide

The user guide includes:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Installatie

TypingMind
Vereisten:

Node.js 18+

{
  "mcpServers": {
    "juanqui-pdfkb-mcp": {
      "command": "uvx",
      "args": [
        "pdfkb-mcp"
      ]
    }
  }
}

Gebruik PDF Knowledgebase MCP Server MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra PDF Knowledgebase MCP Server is verbonden, kun je de verbinding dus met verschillende AI-modellen in TypingMind gebruiken, zonder die voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg PDF Knowledgebase MCP Server toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus op ‘Gereed’ staat.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van PDF Knowledgebase MCP Server.
  4. Sla de serverlijst op.
  5. Vernieuw de pagina als je wilt controleren of de connectorstatus nog op ‘Gereed’ staat.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "juanqui-pdfkb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdfkb-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van PDF Knowledgebase MCP Server in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van PDF Knowledgebase MCP Server in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je PDF Knowledgebase MCP Server gebruiken om me hiermee te helpen?
PDF Knowledgebase MCP Server
Zeker. Ik heb het gelezen.
Dit vond ik met PDF Knowledgebase MCP Server.

Veelgestelde vragen

Waarvoor wordt de MCP-server PDF Knowledgebase MCP Server gebruikt?

PDF Knowledgebase MCP Server is een MCP-server waarmee compatibele AI-clients toegang krijgen tot externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik PDF Knowledgebase MCP Server MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je PDF Knowledgebase MCP Server gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom PDF Knowledgebase MCP Server MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als PDF Knowledgebase MCP Server verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik PDF Knowledgebase MCP Server MCP met TypingMind?

PDF Knowledgebase MCP Server werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt PDF Knowledgebase MCP Server MCP in TypingMind?

PDF Knowledgebase MCP Server biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om PDF Knowledgebase MCP Server MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als PDF Knowledgebase MCP Server authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇