Skip to main content

MCP server for semantic PDF querying using RAG

Project description

RAG Multiple Files MCP Server

A local MCP server that lets you semantically search multiple PDFs using natural language queries.

Use from Claude Code

Configure the MCP server:

"mcpServers": {
    ...
    "rag-multiple-files": {
        "type": "stdio",
        "command": "uvx",
        "args": [
            "rag-multiple-files"
        ],
        "env": {
            "PDF_FOLDER": "/path/to/your/folder"
        }
    }
}

Sample Request

Query:

YYYYYYYYYYYYYYY.pdf: What is the chain slack

Response:

Based on the YYYYYYYYYYYYYYY owner's manual:
    Chain tension (slack): XX mm (ZZ in)

How it works

  1. Querying — The query is embedded with the same model and searched against the FAISS index. The top-k most similar chunks are returned with their page numbers and similarity scores.

Parameters:

  • query (str) - required - no default - the question or topic to search for
  • file_name (str) - required - no default - the name of the PDF file
  • top_k (int) - not required - 5 default - number of chunks to return

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rag_multiple_files-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rag_multiple_files-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file rag_multiple_files-0.1.0.tar.gz.

File metadata

  • Download URL: rag_multiple_files-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for rag_multiple_files-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d0e1470a34fa817d337b159e33b6d0d387a541ec07704c925755618fff21d9cf
MD5 45ffcca46486e7e05dcd7833ca85fd28
BLAKE2b-256 f892a66319b9236a5002f28349acfcf82f5eef18b13e0fbe90932bf93606034e

See more details on using hashes here.

File details

Details for the file rag_multiple_files-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rag_multiple_files-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for rag_multiple_files-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0fa7ccf73734d9843bf33252ea711606267e0dc958bf5949fe5dc0d84f7018d
MD5 1191cb28f1bf36831eb91091cc10aaa1
BLAKE2b-256 fee3bc4de9cdbe81cc13958ec69fdd15aef08281e57a24fbbb51eed32c0b104d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page