paperpeel-mcp
by Nishan30
README.md
# paperpeel-mcp
[](https://www.npmjs.com/package/paperpeel-mcp)
[](https://github.com/Nishan30/paperpeel-mcp/actions/workflows/ci.yml)
[](LICENSE)
An MCP server that reads arXiv papers the way you would: the outline first, then only the sections that matter.
Math arrives as clean LaTeX, references come resolved, figures come as images. Hosted by
[PaperPeel](https://www.paperpeel.com), free, no API key.
## Connect
The server is hosted at:
```
https://www.paperpeel.com/mcp
```
**Claude (claude.ai and the desktop app):** Settings → Connectors → Add custom connector, then paste the URL.
**Claude Code:**
```bash
claude mcp add --transport http paperpeel https://www.paperpeel.com/mcp
```
**Cursor** (`~/.cursor/mcp.json`) and other clients that take a URL:
```json
{ "mcpServers": { "paperpeel": { "url": "https://www.paperpeel.com/mcp" } } }
```
**Clients that only run local (stdio) servers** use this package, which forwards to the same hosted server:
```json
{ "mcpServers": { "paperpeel": { "command": "npx", "args": ["-y", "paperpeel-mcp"] } } }
```
or `claude mcp add paperpeel -- npx -y paperpeel-mcp`. On Windows, if a client can't start `npx` directly, use
`"command": "cmd", "args": ["/c", "npx", "-y", "paperpeel-mcp"]`.
## Tools
| Tool | What it returns |
| --- | --- |
| `paper_outline` | Start here. Abstract, a plain-English brief when one exists, every section with its size in tokens, and the figure list. Usually 600-1,300 tokens. |
| `read_paper` | The paper, or one section (by number like `3.2` or title words like `experiments`), as Markdown with LaTeX math and tables. References left out. |
| `get_references` | The bibliography resolved to titles, years, authors, arXiv ids and one-line TL;DRs. Follow a citation with `read_paper` on its id. |
| `get_figure` | A figure as an image, with its caption. |
| `get_notation` | Every symbol the paper defines, with the sentence that defines it. |
| `get_reproduction_card` | Datasets, model, optimizer, learning rate, batch size, schedule, hardware, compute, seeds, metric, each with the quote it came from, plus code and data links. |
| `trending_papers` | The most upvoted papers of the last few days, one line each. |
| `related_papers` | Similar papers (Semantic Scholar recommendations). |
| `search_arxiv` | Relevance-ranked arXiv search with abstracts. |
Every tool takes an arXiv id (`1706.03762`, `hep-th/9901001`) or URL (`https://arxiv.org/abs/2501.12948`).
## Why not just fetch arxiv.org?
Measured on four papers (Attention Is All You Need, a 2026 MoE paper, a 2026 agents paper, Adam):
- **The text is cleaner.** arXiv's HTML, as text, carries every equation twice: loose MathML glyphs, then the LaTeX. Its PDF text
flattens them (`softmax(QKT √dk )V`). PaperPeel returns `$$\mathrm{softmax}(\frac{QK^{T}}{\sqrt{d_{k}}})V$$`, in 25-45% fewer
tokens than the HTML.
- **You read only what you need.** The outline is ~1,000 tokens against 8,000-28,000 for the paper as text, so a question about one
section costs roughly 5-10x less.
- **References stay out until asked for.** They are 16-29% of a paper, and come back resolved.
- **Papers with no HTML version still work.** About 10,000 arXiv papers (Adam among them) only exist as PDFs; they are reflowed from
the PDF.
- **Things a fetch doesn't return:** plain-English briefs, notation glossaries, reproduction cards, trending papers, figures as
images.
## What's in this repository
This is the **stdio bridge**, the code that runs on your machine when you use `npx paperpeel-mcp`. It connects to the hosted
server over Streamable HTTP, lists its tools and forwards every call. It sends nothing else anywhere and stores nothing. New tools
reach you without a new release, because they live on the server.
The hosted server (paper parsing, outlines, figures, glossaries and so on) is part of [PaperPeel](https://www.paperpeel.com) and is
not in this repository. Problems with what a tool returns, such as a paper that parses badly or a missing figure, are very welcome
as issues here. Please include the arXiv id.
`PAPERPEEL_MCP_URL` points the bridge at another deployment.
## Development
```bash
npm install
npm test # vitest: the bridge against an in-memory server
npm run typecheck
npm run build # tsup -> dist/
node dist/index.js # speaks MCP over stdio
```
Try it with the MCP Inspector:
```bash
npx @modelcontextprotocol/inspector node dist/index.js
```
## Notes
- Notation glossaries and reproduction cards are generated the first time anyone asks for a paper (15-30 seconds), then instant.
- Fair use: about 120 calls a minute per address. No account. The server logs which tool was called for which arXiv paper, not
who called it.
## Without MCP
Any paper as Markdown: `https://www.paperpeel.com/md/1706.03762`, or add `.md` to a paper URL, or send `Accept: text/markdown`.
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues