New advertisers: 50% off your first month with code FIRSTMONTHSee slots
neelghoshal avatar

Paper Librarian

neelghoshal/mcp

Local, searchable library of research papers from arXiv and PDFs, with cited answers.

tools
8
transport
STDIO
env var
1
last updated
Nov 20, 2026
View on GitHub

What it does

  • Reads and searches with search, get_paper, list_papers, and get_citations; search runs hybrid vector and keyword matching and returns section and page
  • Writes with add_paper and add_note, and removes with remove_paper, which keeps the PDF file; compare_papers gathers passages per aspect
  • Runs locally over stdio with one SQLite file and a PDF folder; only arXiv downloads and the one-time model download go out
  • Designed for literature review, comparing papers, and asking cited questions across a personal research library

Tools

8 tools

Public tool metadata for what this MCP can expose to an agent.

add_paperAdd a paper to the library by arXiv id or local PDF path, reporting progress as it runs.

Add a paper to the library by arXiv id or local PDF path, reporting progress as it runs.

No parameter schema in public metadata yet.

searchHybrid vector and keyword search over the library, returning passages with paper, section and page.

Hybrid vector and keyword search over the library, returning passages with paper, section and page.

No parameter schema in public metadata yet.

get_paperReturn a paper's metadata, abstract, sections, and notes, or the full text of one section.

Return a paper's metadata, abstract, sections, and notes, or the full text of one section.

No parameter schema in public metadata yet.

get_citationsList a paper's references with links to library papers, and the library papers that cite it.

List a paper's references with links to library papers, and the library papers that cite it.

No parameter schema in public metadata yet.

compare_papersGather the most relevant passages per paper per aspect for comparison.

Gather the most relevant passages per paper per aspect for comparison.

No parameter schema in public metadata yet.

add_noteAttach a note to a paper in the library.

Attach a note to a paper in the library.

No parameter schema in public metadata yet.

list_papersList the papers in the library with a count and summaries.

List the papers in the library with a count and summaries.

No parameter schema in public metadata yet.

remove_paperRemove a paper from the library (the PDF file is kept).

Remove a paper from the library (the PDF file is kept).

No parameter schema in public metadata yet.

Configuration

LIBRARIAN_HOME

Folder for the library database and downloaded PDFs (default: ~/.librarian)

Readme

Paper Librarian

An MCP server that gives Claude a local, searchable library of research papers (arXiv + PDFs). Built on the MCP Python SDK 2.x (MCPServer, the 2.x successor to FastMCP).

Add papers by arXiv id or PDF path, then ask questions about them. Answers cite the paper, section and page, and references between papers in the library are linked in both directions.


Demo

A session in Claude Code with the server connected.

1. Add a paper by arXiv id. add_paper downloads Attention Is All You Need, splits it into 44 searchable chunks and parses its 40 references. None are linked yet because the library was empty.

Adding the first paper

2. Claude calls the MCP tool. Asked to add BERT (1810.04805), Claude Code routes the request to the paper-librarian server.

Claude Code calling paper-librarian

3. Add a second paper; citations link automatically. BERT is added with 71 chunks and 56 references. One of them matches the Transformer paper already in the library, so the two papers are now linked.


View the full README on GitHub

Details

Repository
github.com/neelghoshal/mcp
Categories
Research & Academic, AI Agents & LLM Apps
Package
paper-librarian
Transport
STDIO
Registry
MCP registry, active

Similar to Paper Librarian

More Research & Academic