Scholar RAG MCP
개요
제작자가 쓴 설명(영어 원문)
Academic paper knowledge-base MCP server: PDF ingest, vector search with reranking, KB management.
PopNx MCP의 세 기둥
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
- 사용자 의견i아직 리뷰가 없어요리뷰는 다음 단계에서 계정 기능과 함께 열려요
- 우리의 기본 점검i1개 중 1개 통과공개된 정보로 점검했으며, 코드는 아직 스캔하지 않았어요
- 사용 정도i아주 새로움↓ 30/주 · ★ –
할 수 있는 일
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
- 연결 방식: 내 컴퓨터에서 실행
- 전송 방식: stdio
- 카테고리: 검색 및 AI 기억
- 입력해야 할 값: SCHOLAR_RAG_CHAT_BASE_URL, SCHOLAR_RAG_EMBED_BASE_URL, SCHOLAR_RAG_RERANK_BASE_URL
설치
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
설치하기 전에
- 기본 점검: 1개 중 1개 통과
- 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
- 직접 입력할 값:
SCHOLAR_RAG_DATA_DIR,SCHOLAR_RAG_CHAT_BASE_URL,SCHOLAR_RAG_EMBED_BASE_URL,SCHOLAR_RAG_RERANK_BASE_URL
필요한 것
- PyPIPython의 uv 설치(uvx 명령어용)
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"scholar-rag": {
"command": "uvx",
"args": [
"scholar-rag-mcp"
],
"env": {
"SCHOLAR_RAG_DATA_DIR": "your-value",
"SCHOLAR_RAG_CHAT_BASE_URL": "your-value",
"SCHOLAR_RAG_EMBED_BASE_URL": "your-value",
"SCHOLAR_RAG_RERANK_BASE_URL": "your-value"
}
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add scholar-rag --env SCHOLAR_RAG_DATA_DIR=your-value --env SCHOLAR_RAG_CHAT_BASE_URL=your-value --env SCHOLAR_RAG_EMBED_BASE_URL=your-value --env SCHOLAR_RAG_RERANK_BASE_URL=your-value -- uvx scholar-rag-mcp실행하기 전에 빈 값을 채워 주세요.
또는 설정을 직접 복사하기
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"scholar-rag": {
"command": "uvx",
"args": [
"scholar-rag-mcp"
],
"env": {
"SCHOLAR_RAG_DATA_DIR": "your-value",
"SCHOLAR_RAG_CHAT_BASE_URL": "your-value",
"SCHOLAR_RAG_EMBED_BASE_URL": "your-value",
"SCHOLAR_RAG_RERANK_BASE_URL": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
또는 설정을 직접 복사하기
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"scholar-rag": {
"type": "stdio",
"command": "uvx",
"args": [
"scholar-rag-mcp"
],
"env": {
"SCHOLAR_RAG_DATA_DIR": "your-value",
"SCHOLAR_RAG_CHAT_BASE_URL": "your-value",
"SCHOLAR_RAG_EMBED_BASE_URL": "your-value",
"SCHOLAR_RAG_RERANK_BASE_URL": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
직접 입력할 값
SCHOLAR_RAG_DATA_DIRenvData root directory (knowledge bases, caches, jobs)- OpenAI-compatible chat endpoint for annotation/keywords (e.g. local vLLM)
- OpenAI-compatible embeddings endpoint
- Rerank endpoint (/v1/rerank)
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
할 수 있는 일
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
기본 점검i
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 9일 점검
- ✓ 통과
제작자와 저장소 일치
레지스트리 이름이 GitHub 계정 notwhiteblank 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
- … 아직 점검 안 함
계속 관리되고 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- … 아직 점검 안 함
라이선스 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- – 해당 없음
엔드포인트 응답
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
- – 해당 없음
OAuth로 로그인
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
- … 아직 점검 안 함
도구 설명에 숨겨진 지시 없음
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
검색 및 AI 기억 카테고리의 다른 서버와 비교i
- 이 카테고리의 다른 서버 5747개 중 0%보다 스타가 많아요
- 이 카테고리의 다른 서버 5747개 중 38%보다 최근에 레지스트리에 공개됐어요
- 기본 점검 결과가 이 카테고리의 다른 서버 5747개 중 100%와 같거나 더 좋아요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
자주 묻는 질문
Scholar RAG MCP, 안전한가요?
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
어떤 키나 코드가 필요한가요?
입력해야 할 값: SCHOLAR_RAG_CHAT_BASE_URL, SCHOLAR_RAG_EMBED_BASE_URL, SCHOLAR_RAG_RERANK_BASE_URL
내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
아직 관리되고 있나요?
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.4.0)은 2개월 전 레지스트리에 올라왔어요.
어떤 앱에서 쓸 수 있나요?
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
대신 쓸 수 있는 건 뭐가 있나요?
같은 카테고리에는: Context7, Codebase Memory, Exa
대안
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 README
README 열기
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
scholar-rag-mcp
Status: preview release (v0.4.0). Interfaces and storage layout may change in future versions.
scholar-rag-mcp is a publishable academic-paper knowledge-base MCP tool. Point it at a folder of PDFs and it ingests each paper through a real parsing pipeline (MinerU), normalizes metadata, annotates section structure, chunks and embeds the text, and stores everything in Qdrant - after which an agent (or you) can semantically search chunks, run PubMed-style document queries, read full text section by section, add/remove single papers, and manage knowledge bases - all through 11 MCP tools over stdio. Embedding, annotation and re-ranking run on OpenAI-compatible model services (e.g. vLLM).
Features
- Real ingestion pipeline: MinerU PDF parsing (python/cli/api backends) -> metadata extraction (local heuristics, CrossRef, optional GROBID) -> cleaning -> section annotation -> deterministic chunking (configurable 300/1500/100 chars) -> embedding.
- Fast retrieval at scale: embedding first-pass + cross-encoder re-rank, optional metadata filtering (
doc_id,section,year,journal, ...) evaluated inside the Qdrant index. 100k-chunk p95 query latency < 1s (seedocs/perf-report.md). - Async jobs:
create_kb/add_documentare background jobs with progress queryable viaget_job; safe to restart (interrupted jobs are recovered and skipped on re-run). - Context-safe reading: paginated
get_document_textwith hard size caps; *outline first, pages on demand*. - 11 MCP tools over stdio:
list_kbs,create_kb,delete_kb(two-phase),add_document,remove_document,get_document,get_document_text,list_documents,search_documents,search_chunks,get_job. - Self-contained storage: knowledge bases live under a single data directory (default location is platform-specific, see Data layout); Qdrant is either auto-launched (single binary, version-pinned) or connected to an external instance.
Installation
scholar-rag-mcp runs on Linux x64, Windows x64 and macOS (Intel and Apple Silicon). It is published on PyPI; the standard way to run it is with uv (a suitable Python 3.12 is fetched automatically):
uvx scholar-rag-mcp # download and start the MCP server (stdio)
No repository checkout is needed. Configure model endpoints and storage with SCHOLAR_RAG_* environment variables or /config.json (see .env.example); the Qdrant binary used for auto-launch is downloaded per platform on first use.
One-click install / uninstall
uvx scholar-rag-mcp install --with-mineru # install via uv, provision managed MinerU, register MCP clients
uvx scholar-rag-mcp install # MCP only; bring your own parse service (see PDF parsing) scholar-rag-mcp uninstall # unregister clients and remove the package
uvx scholar-rag-mcp install installs the package via uv tool install and interactively walks through the six model-endpoint settings (chat/embed/rerank base URLs and model names), using the defaults listed in Minimal environment unless a SCHOLAR_RAG_* value or a --chat-base-url / --chat-model / --embed-base-url / --embed-model / --rerank-base-url / --rerank-model flag is given; --yes accepts all defaults without prompting. It then detects the four supported MCP clients (Claude Desktop, Claude Code, opencode, Codex) and registers the tool by merging the scholar-rag-mcp entry into their user-level configs, touching only that entry; pass --client to register a single client. Configs that cannot be parsed (e.g. JSON with comments) are left untouched and a manual snippet is printed instead.
scholar-rag-mcp uninstall removes the scholar-rag-mcp entry from the detected clients and runs uv tool uninstall; the knowledge-base data directory is kept. --purge additionally deletes the data directory after explicit confirmation (skip the prompt with --yes).
From source (development)
Requires pixi. From the repository root:
pixi install # installs the default environment
The pixi environments are locked for all four supported targets. The project defines two pixi environments, each serving a different purpose:
| Environment | Purpose |
|---|---|
default | Core runtime + dev tooling (pytest/ruff/mypy). Run the MCP server and all scripts here. |
mineru | Adds MinerU (==3.4.5) plus its full runtime stack (pinned transformers<5, torch, onnxruntime, shapely, ...). Use for PDF parsing and the e2e smoke test. |
Verify your environment with the built-in doctor:
pixi run python scripts/doctor.py
Model deployment
Environment ('chat', 'embed' and 'rerank' clients) expects OpenAI-compatible HTTP endpoints. scripts/serve_models.sh launches three vLLM instances for the reference model set:
| Service | Model | Port |
|---|---|---|
| chat | Qwen3.5-0.8B | 8101 |
| embed | jina-embeddings-v5-text-small | 8102 |
| rerank | jina-reranker-v3.5 | 8103 |
# point *_MODEL at your local model directories, then:
bash scripts/serve_models.sh
SCHOLAR_RAG_CHAT_MODEL, SCHOLAR_RAG_EMBED_MODEL and SCHOLAR_RAG_RERANK_MODEL are required - the script exits with a message listing them if any is unset. Each value must be an absolute path to a local HuggingFace model directory; vLLM serves each model under a short name equal to the directory basename, so the client settings must use that short name (the served name no longer equals the full path). Replace the /path/to/... placeholders in .env.example accordingly. Ports (CHAT_PORT/EMBED_PORT/RERANK_PORT) and GPU ids remain optional with working defaults.
The script passes the vLLM flags verified for the default model set, notably --trust-remote-code, which all three models require on the pinned vLLM (0.27.1). Model load takes several minutes; the script polls health until all three answer.
scripts/serve_models.sh is Linux-only (bash + CUDA + vLLM; vLLM has no Windows support). On Windows/macOS point the *_BASE_URL settings at any OpenAI-compatible server instead - for example Ollama (http://127.0.0.1:11434/v1), LM Studio's local server, or a llama.cpp server - and set each *_MODEL to the model name that server reports. The rerank endpoint must expose /v1/rerank (or leave reranking to the embed-only fallback).
Minimal environment
Start from .env.example and set at least the model endpoints (use the short names the serve script exposes, equal to each model directory's basename):
# data dir is optional - defaults to the platform data directory (see Data layout)
SCHOLAR_RAG_DATA_DIR=
SCHOLAR_RAG_QDRANT_STORAGE_DIR=
SCHOLAR_RAG_CHAT_BASE_URL=http://127.0.0.1:8101/v1 SCHOLAR_RAG_CHAT_MODEL=Qwen3.5-0.8B
SCHOLAR_RAG_EMBED_BASE_URL=http://127.0.0.1:8102/v1 SCHOLAR_RAG_EMBED_MODEL=jina-embeddings-v5-text-small
SCHOLAR_RAG_RERANK_BASE_URL=http://127.0.0.1:8103/v1 SCHOLAR_RAG_RERANK_MODEL=jina-reranker-v3.5
The embed model dimension is recorded in kb_meta.json at kb creation, so changing the embedding model later requires a new kb.
PDF parsing (MinerU)
Since v0.4.0 the default parse backend is api. The recommended setup is the managed sidecar, which installs MinerU into an isolated Python 3.12 venv (MinerU requires Python >=3.10,<3.14) and auto-starts mineru-api on first parse:
scholar-rag-mcp install --with-mineru
The first parse triggers MinerU's model download; set MINERU_MODEL_SOURCE=modelscope if you need a China-friendly mirror.
Self-managed alternative: install MinerU in any Python 3.12 environment, run mineru-api --host 127.0.0.1 --port 8010, and keep the defaults (SCHOLAR_RAG_MINERU_BACKEND=api, SCHOLAR_RAG_MINERU_API_URL=http://127.0.0.1:8010).
The python backend (in-process import) and cli backend (subprocess per file) remain available via SCHOLAR_RAG_MINERU_BACKEND.
MCP client setup
Point your MCP client at the uvx entry point and configure the model endpoints in the env block (any OpenAI-compatible server works; see Model deployment). To check that the server starts, run uvx scholar-rag-mcp in a terminal - it waits for an MCP client on stdio (Ctrl+C to exit).
Claude (Claude Desktop / claude CLI)
{
"mcpServers": { "scholar-rag-mcp": { "command": "uvx", "args": ["scholar-rag-mcp"], "env": { "SCHOLAR_RAG_CHAT_BASE_URL": "http://127.0.0.1:8101/v1", "SCHOLAR_RAG_CHAT_MODEL": "Qwen3.5-0.8B", "SCHOLAR_RAG_EMBED_BASE_URL": "http://127.0.0.1:8102/v1", "SCHOLAR_RAG_EMBED_MODEL": "jina-embeddings-v5-text-small", "SCHOLAR_RAG_RERANK_BASE_URL": "http://127.0.0.1:8103/v1", "SCHOLAR_RAG_RERANK_MODEL": "jina-reranker-v3.5" } } } }
opencode
{
"$schema": "https://opencode.ai/config.json", "mcp": { "scholar-rag-mcp": { "type": "local", "command": ["uvx", "scholar-rag-mcp"], "environment": { "SCHOLAR_RAG_CHAT_BASE_URL": "http://127.0.0.1:8101/v1", "SCHOLAR_RAG_CHAT_MODEL": "Qwen3.5-0.8B", "SCHOLAR_RAG_EMBED_BASE_URL": "http://127.0.0.1:8102/v1", "SCHOLAR_RAG_EMBED_MODEL": "jina-embeddings-v5-text-small", "SCHOLAR_RAG_RERANK_BASE_URL": "http://127.0.0.1:8103/v1", "SCHOLAR_RAG_RERANK_MODEL": "jina-reranker-v3.5" } } } }
Running from a source checkout instead: use pixi run scholar-rag-mcp as the command (from the repository root) and set the same variables in your shell.
Tools
| Tool | Purpose |
|---|---|
list_kbs | List knowledge bases with document/chunk counts and status. |
create_kb | Asynchronously ingest every PDF in a folder into a new kb (returns job_id). |
delete_kb | Two-phase kb deletion (see below). |
add_document | Asynchronously ingest a single PDF into an existing kb (returns job_id). |
remove_document | Synchronously delete one document (Qdrant points + catalog + files). |
get_document | Document overview: metadata, abstract, section outline, total size. |
get_document_text | Paginated full-text reading of one document or a single section. |
list_documents | Paginated browse of documents in a kb. |
search_documents | PubMed-style document-level search (FTS + title/authors/journal/year). |
search_chunks | Semantic chunk search with metadata filters and embed+rerank scores. |
get_job | Query status/progress/result/elapsed time of a background job. |
Data layout
<data_dir>/ # SCHOLAR_RAG_DATA_DIR, default: platform data dir (below)
├── kbs/ / │ ├── kb_meta.json # dimension, chunk config, schema version │ ├── catalog.sqlite3 # documents / authors / keywords / chunks + FTS5 │ └── documents/ / # source.pdf, full_text.md, sections.json ├── cache/parse/ # MinerU markdown cache, keyed by content hash ├── cache/resolver/ # annotation resolver cache, keyed by content hash ├── jobs.sqlite3 # async job history ├── bin/ # auto-downloaded Qdrant binary (v1.12.5) └── qdrant-storage/ # default QDRANT_STORAGE_DIR location
Default data_dir per platform (override with SCHOLAR_RAG_DATA_DIR):
| Platform | Default |
|---|---|
| Linux | $XDG_DATA_HOME/scholar-rag (falls back to ~/.local/share/scholar-rag) |
| macOS | ~/Library/Application Support/scholar-rag |
| Windows | %LOCALAPPDATA%\scholar-rag |
Qdrant storage defaults to /qdrant-storage (override with SCHOLAR_RAG_QDRANT_STORAGE_DIR) - it must be on a local filesystem, not a 9p/network mount.
Upgrading from v0.1.0 on Linux: the old defaults (~/.scholar-rag and ~/.local/share/scholar-rag/qdrant) are migra
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요