Skip to main content

Hybrid Search RAG - A Model Context Protocol (MCP) server for RAG-based document search

Project description

RAG-based MCP Server

ENG | KOR


English

This package provides an MCP (Model Context Protocol) server that uses a Retrieval Augmented Generation (RAG) approach. It allows you to specify a folder containing PDF files for augmentation, and leverages an OpenAI API key to perform hybrid search.

Installation

Install the package from PyPI using UV or pip:

uv pip install mcp-hybrid-search

or

pip install mcp-hybrid-search

Configuration

To run your project in the Claude app, add the following entry to your claude_desktop_config.json:

{
  "rag-mcp": {
    "command": "uvx",
    "args": [
      "mcp-hybrid-search",
      "path/to/your/allowed/folder"
    ],
    "env": {
      "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
    }
  }
}
  • Replace path/to/your/allowed/folder with the actual path where you want to store and access your data.
  • In that folder, create a subfolder named data and place any PDF files you want to use for augmentation in this data folder.

Usage

  1. Install and configure the server as described above.
  2. Start or restart your MCP setup or application to enable the RAG-based MCP server.
  3. The server will use the PDF files within the data folder to generate context and augment your prompts.

License

MIT


한국어

이 패키지는 RAG(Retrieval Augmented Generation) 방식을 사용하는 MCP(Model Context Protocol) 서버를 제공합니다. PDF 파일을 증강 자료로 활용할 수 있도록 설정된 폴더를 지정하고, OpenAI API 키를 이용하여 하이브리드 검색을 수행합니다.

설치 방법

UV 또는 pip를 이용하여 PyPI에서 패키지를 설치합니다:

uv pip install mcp-hybrid-search

또는

pip install mcp-hybrid-search

설정 방법

Claude 앱에서 프로젝트를 실행하기 위해 claude_desktop_config.json에 다음과 같이 설정을 추가하세요:

{
  "rag-mcp": {
    "command": "uvx",
    "args": [
      "mcp-hybrid-search",
      "접근을 허용할 폴더 경로"
    ],
    "env": {
      "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
    }
  }
}
  • 접근을 허용할 폴더 경로 부분을 실제 PDF 파일을 저장할 경로로 바꾸세요.
  • 해당 폴더 안에 data라는 이름의 하위 폴더를 만들고, 여기에 증강 자료로 사용할 PDF 파일을 넣으세요.

사용 방법

  1. 위 설치 및 설정 과정을 완료합니다.
  2. MCP 설정을 실행하거나 애플리케이션을 재시작하여 RAG 기반 MCP 서버를 활성화하세요.
  3. data 폴더 내 PDF 파일을 이용하여 메시지에 대한 맥락을 생성하고 증강된 응답을 받아볼 수 있습니다.

라이센스

MIT

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

mcp_hybrid_search-1.1.12.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

mcp_hybrid_search-1.1.12-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_hybrid_search-1.1.12.tar.gz.

File metadata

  • Download URL: mcp_hybrid_search-1.1.12.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for mcp_hybrid_search-1.1.12.tar.gz
Algorithm Hash digest
SHA256 bb030d78d744517bea95fe53b68f90c4e46627b0f3ac16ded6221ebef39db9bd
MD5 bdcb7c15e7985a4dc9ee5aa794606017
BLAKE2b-256 b64a65ebd8892f4e79cf0fdfb760f38b14681cc29899f905a3b5cbd1b9cd5b8d

See more details on using hashes here.

File details

Details for the file mcp_hybrid_search-1.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_hybrid_search-1.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 efcf35d123272d41b9118d36c9f7b2ecadc2443a8309c746f53f28af963d4de8
MD5 3df41dd3b68a195f365b997b6d19db10
BLAKE2b-256 0c433effcc7f8ccf43e5d740ddde491caea1da96dca568bde6ffee083d9af683

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