MCP server for deep reading and synthesis across a PDF library using PaperQA2

MCP server for deep reading and synthesis across a PDF library using PaperQA2

paperqa-mcp-server•bymenyoung

An MCP server that indexes a folder of PDFs and lets Claude ask questions requiring deep reading across multiple papers.

License: Not specified•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Builds a search index from PDFs by reading each file, splitting it into chunks, and sending chunks to OpenAI's embedding API.
  • •Refuses queries when more than 10 papers are unindexed and asks the user to run the index step, while indexing a few new papers automatically on query.
  • •Caches the index and reprocesses only new or changed files on later runs.
  • •Lets the internal reasoning and summary models and embedding model be configured through environment variables.

BEST FOR

  • •Asking Claude questions that require reading and synthesizing evidence across many PDFs in a Zotero storage folder or other PDF directory.
  • •Paired with zotero-mcp, using PaperQA citations' Zotero storage keys to pull up item metadata and annotations.

ABOUT PAPERQA-MCP-SERVER

MCP server for deep reading and synthesis across a PDF library using PaperQA2 is cataloged as an MCP server attributed to menyoung. An MCP server that indexes a folder of PDFs and lets Claude ask questions requiring deep reading across multiple papers. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for deep reading and synthesis across a PDF library using PaperQA2 are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What happens if my library has many unindexed papers?

The server checks the index before each query; with more than 10 unindexed papers it returns a diagnostic instead of answering and tells you to run the index step first.

Can I direct it at a PDF folder other than the default Zotero storage?

Yes; if your PDFs are not in the default Zotero storage location, a PAPER_DIRECTORY environment entry points the server at another folder.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 15a09590b7da · 采集于 2026-11-13 10:51:47 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

paperqa-mcp-server

Give Claude the ability to read, search, and synthesize across your entire PDF library. Built on PaperQA2.

Point it at your Zotero storage folder (or any folder of PDFs) and ask Claude questions that require deep reading across multiple papers.

Quick start

1. Install uv

uv is a Python package manager. If you don't have it yet:

curl -LsSf https://astral.sh/uv/install.sh | sh

After installing, restart your terminal so uv is on your PATH.

Verify it works:

uv --version

2. Get an OpenAI API key

PaperQA2 uses OpenAI for embeddings and internal reasoning. Get a key at https://platform.openai.com/api-keys

3. Warm the package cache

The first run downloads ~90 Python packages — this is normal and only happens once. Run this so the packages are cached before Claude Desktop tries to start the server:

uvx paperqa-mcp-server index 2>&1 | head -1

You should see output like Building index: .... Press Ctrl+C to stop (we'll run the real index build in step 6). If you see a Python error instead, something went wrong with the install.

4. Find your full path to uvx

Claude Desktop can't find uvx on its own — you need to give it the full path. Run:

which uvx

This prints something like /Users/yourname/.local/bin/uvx. Copy it — you'll need it in the next step.

5. Add to Claude Desktop

  1. Open Claude Desktop
  2. Go to Settings → Developer → Edit Config
  3. This opens claude_desktop_config.json. Add a paperqa entry inside mcpServers (create mcpServers if it doesn't exist):
{
  "mcpServers": {
    "paperqa": {
      "command": "/Users/yourname/.local/bin/uvx",
      "args": ["paperqa-mcp-server"],
      "env": {
        "OPENAI_API_KEY": "sk-your-key-here"
      }
    }
  }
}

Replace the two placeholders:

  • /Users/yourname/.local/bin/uvx — paste the output of which uvx from step 4
  • sk-your-key-here — your OpenAI API key from step 2

If your PDFs are somewhere other than ~/Zotero/storage, add a PAPER_DIRECTORY entry to env:

"env": {
  "OPENAI_API_KEY": "sk-your-key-here",
  "PAPER_DIRECTORY": "/full/path/to/your/pdfs"
}
  1. Quit Claude Desktop completely (Cmd+Q, not just close the window) and reopen it
  2. You should see a hammer icon — click it and paper_qa should be listed

6. Pre-build the index

Before Claude can search your papers, the server needs to build a search index. This reads each PDF, splits it into chunks, and sends the chunks to OpenAI's embedding API. With hundreds of papers this takes a while and costs a few dollars in API calls.

If you have more than 10 unindexed papers, the server will refuse to answer queries and tell you to run this step first. A few new papers will be indexed automatically when you query.

export OPENAI_API_KEY=sk-your-key-here
uvx paperqa-mcp-server index

You'll see log lines as each paper is processed. When it finishes, it prints Done.

If this crashes with a rate limit error, just re-run the same command. It picks up where it left off — each run indexes more files. With a large library (500+ papers) you may need to run it a few times.

After that, the index is cached at ~/.pqa/indexes/. Only new or changed files get re-processed on subsequent runs.

Troubleshooting

"Server disconnected" in Claude Desktop

Claude Desktop has a short startup timeout. If uv needs to download packages on first launch, it will time out. Fix: run uvx paperqa-mcp-server once from the terminal first so packages are cached.

"Index incomplete" when querying

The server checks the index before each query. If too many papers are unindexed, it returns a diagnostic message instead of trying (and failing) to index them all on the fly. Fix: run the index command in step 6.

Hammer icon doesn't appear

Make sure you quit Claude Desktop completely (Cmd+Q) and reopened it. Check for JSON syntax errors in claude_desktop_config.json — a missing comma is the most common mistake.

Use a different LLM

By default, PaperQA2 uses gpt-4o-mini for its internal reasoning. This is separate from Claude — Claude calls the tool, PaperQA2 does its own LLM calls internally to gather and synthesize evidence.

To use a different model, add env vars to your Claude Desktop config:

"env": {
  "OPENAI_API_KEY": "sk-your-key-here",
  "PQA_LLM": "gpt-4o",
  "PQA_SUMMARY_LLM": "gpt-4o-mini"
}

All environment variables

VariableDefaultPurpose
PAPER_DIRECTORY~/Zotero/storageFolder containing your PDFs
OPENAI_API_KEY—Required for default embeddings
PQA_LLMgpt-4o-miniLLM for internal reasoning
PQA_SUMMARY_LLMgpt-4o-miniLLM for summarizing chunks
PQA_EMBEDDINGtext-embedding-3-smallEmbedding model
ANTHROPIC_API_KEY—Only if using Claude as internal LLM

Works with zotero-mcp

This pairs well with zotero-mcp:

  • paperqa-mcp-server — deep reading and synthesis across full paper text
  • zotero-mcp — browse your library, search metadata, read annotations

Claude can cross-reference between them — for example, finding papers with PaperQA and then pulling up their Zotero metadata and annotations. PaperQA2's citations include Zotero storage keys (e.g. ABC123DE from storage/ABC123DE/paper.pdf) that Claude can use to look up items via zotero-mcp.

Index implementation notes

paperqa-mcp-server index uses the same _settings() function as the MCP server, so the index it builds is exactly the one the server will look for. The PaperQA2 index directory name is a hash of the settings (embedding model, chunk size, paper directory path, etc.). The settings include:

  • Multimodal OFF — skip image extraction from PDFs (avoids a crash on PDFs with CMYK images)
  • Doc details OFF — skip Crossref/Semantic Scholar metadata lookups (avoids rate limits; Claude can get metadata from Zotero directly via zotero-mcp)
  • Concurrency 1 — index one file at a time to stay under OpenAI's embedding rate limit

Why not pqa index? The pqa CLI constructs settings via pydantic's CliSettingsSource, which produces different defaults than constructing Settings() directly in Python (e.g. chunk_chars of 7000 vs 5000). Different settings = different index hash = server can't find the index. Always use paperqa-mcp-server index to build the index.

Install from GitHub (latest)

To use the latest version from the main branch instead of PyPI:

{
  "mcpServers": {
    "paperqa": {
      "command": "/Users/yourname/.local/bin/uvx",
      "args": ["--from", "git+https://github.com/menyoung/paperqa-mcp-server", "paperqa-mcp-server"],
      "env": {
        "OPENAI_API_KEY": "sk-your-key-here"
      }
    }
  }
}

To build the index from the latest main branch:

OPENAI_API_KEY=sk-your-key-here uvx --from git+https://github.com/menyoung/paperqa-mcp-server paperqa-mcp-server index

Development

If you want to contribute or modify the server locally:

git clone https://github.com/menyoung/paperqa-mcp-server.git
cd paperqa-mcp-server
uv sync
uv run paperqa-mcp-server        # run the server
uv run paperqa-mcp-server index  # build the index

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for deep reading and synthesis across a PDF library using PaperQA2 from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/paperqa-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation