Claude Code for Research Papers: Use It on Your Mitra Library

The Mitra team · · Updated · 7 min read

If you already pay for Claude, you have one of the best reading assistants there is, sitting in a terminal. Claude Code is good at long, careful work: searching, reading, checking, and searching again. The catch is that it works on files in a folder. A PhD library isn’t a folder of clean text. It’s several hundred PDFs, half of them two-column with equations.

To use Claude Code for research papers, connect it to Mitra. Mitra keeps your PDFs in a library on your computer, indexed and searchable, and lets Claude Code read it through Mitra’s tools on your own Claude plan. You ask a question in Mitra’s Ask screen; Claude Code searches the library, reads the passages, and answers with a chip on every claim that opens the exact page.

Why not just point Claude Code at a folder of PDFs?

You can. Claude Code will try to read the PDFs with whatever tools it has, one file at a time. For three papers, fine. For a literature review, three things go wrong.

It can’t search what it hasn’t read. There’s no index, so “which of my papers mention flame-wall interaction?” means opening every file.

PDFs are messy. Two-column layouts, headers, figure text and equations come out jumbled unless something has extracted them carefully.

There’s no page to click. Even a good answer gives you a file name, not the page and passage, so checking a claim means hunting.

Mitra does the library work first. Every paper is extracted page by page in reading order (two-column aware), split into passages and indexed on your computer. In Mitra’s own measurements, a search across 1,000 sources (52,000 passages) took a median of 44 ms on an M4 Max. Claude Code then does what it’s good at: deciding what to search for, reading the results and writing the answer.

How to set up Claude Code with Mitra

  1. Install Claude Code. Anthropic’s setup page gives one command per system. On macOS: curl -fsSL https://claude.ai/install.sh | bash. On Windows PowerShell: irm https://claude.ai/install.ps1 | iex. Homebrew and WinGet work too.
  2. Sign in. Run claude once in a terminal. A browser opens and you sign in with your claude.ai account (authentication docs).
  3. Download Mitra and add your papers: drag in a folder, let Find your papers search your computer, or import a Zotero, Mendeley, EndNote or BibTeX library.
  4. Choose Claude Code in Settings → AI. Mitra shows each AI’s status: Not installed (with Get it), Needs sign-in (Sign in opens a terminal with Claude Code’s own sign-in), or Ready.
  5. Ask. Open Ask, pick a scope (the whole library, a folder, a tag or one paper) and type your question.
Mitra's Settings, AI page, Your AI section: ChatGPT not connected, Mitra AI, On this computer (offline), Codex Ready codex-cli 0.144.6, Claude Code selected and Ready 2.1.332 (Claude Code), Cursor Ready, then Model and Quick model fields and a Check again button
Settings → AI found Claude Code installed and signed in ("Ready · 2.1.332"). Selecting it makes it the AI behind Ask and the co-writer.

There’s no API key to paste and no extra bill. Mitra runs your own claude CLI on your own plan. As of November 2026, Claude Pro is $20 a month ($17 a month billed yearly) and includes Claude Code; the Free plan doesn’t. Anthropic’s help page notes that Pro and Max have a five-hour session limit and a weekly limit, shared between Claude and Claude Code.

Two settings matter. Model picks which Claude model Claude Code uses (empty means its own default). Quick model handles small jobs like summaries, inline edits, flashcards and quizzes; left empty, Mitra picks Claude Code’s Sonnet.

Claude Code is also the quickest of the AIs Mitra measures to start answering: about 0.5 s to first words, against 1.5 s for Codex and 2.5 s for ChatGPT.

A real question across 24 papers

Our demo library holds 24 open-access arXiv papers on gas turbine combustion. With Claude Code selected, we asked across the whole library:

“Which papers in my library admit a limitation of their own method, and what limitation does each one name? Quote the page.”

That’s a question a literature review needs and no single search answers. You can’t keyword-search for humility.

Mitra's Ask screen. Under the question, a list of steps: four library searches such as limitation of the present method and drawback, fails to capture, not able to predict, each returning 20 passages, and Listed 24 of 24 sources. The answer begins: I found seven papers in your library that name a limitation of their own method, then lists Laurent's 2021 thesis with quoted limitations on pages 66, 105, 114, 132, 153 and 204, each with a page chip
Claude Code ran four library searches through Mitra's tools, listed all 24 sources, then answered: seven papers name their own limitations, each quoted with a page chip.

Look at the steps above the answer. Claude Code didn’t guess. It searched the library four times with different phrasings (“limitation of the present method”, “drawback, fails to capture, not able to predict, future work should address”, and two more), each returning 20 passages, and listed all 24 sources to see what it was working with.

Then it answered: seven papers name a limitation of their own method, each quoted word for word with its page. A few examples from the answer:

  • Laurent’s 2021 thesis on low-order modelling names the most, including that adding modes past N = 70 doesn’t help, “as the minimal achievable error is once again limited by the numerical approximations affecting the frame generation” (p. 105).
  • The invertible-neural-network design paper admits that “generative learning requires considerable amounts of data” (p. 1) and that surrogate-based optimization may be better in other domains (p. 11).
  • The ignition-probability paper lists assumptions rather than limitations, and the answer said so.

Then the part that makes it trustworthy. Under “Mentions I didn’t count”, it set aside limits papers discuss about other methods. And it said its searches found nothing in the other 17 papers, but that “doesn’t mean they have none: searches can miss a paper’s conclusion section”, naming the likely gaps to check by hand.

Every quote has a chip. Click it and the PDF opens at that page with the passage highlighted.

What Claude Code can and can’t do inside Mitra

Inside Mitra, Claude Code’s own tools are switched off. It can’t run shell commands or edit files on its own. It acts only through Mitra’s tools: search the library, read passages, look at a page, and (in the editors) suggest edits to your draft. If it wants to delete or move many things, you get an Approve card first, and every run can be undone. Text inside your papers is treated as data, never as instructions, so a PDF can’t tell the AI what to do.

Its citations are checked against your library too, so you don’t have to take its word for anything (how that works).

Already live in Claude Code? Bring Mitra to your terminal

Some people would rather stay in the terminal. Mitra works the other way round too. Under Settings → AI → Connect your own, turn on “Let my own agent use Mitra” and it gives you the exact command to add Mitra as an MCP server in Claude Code.

Mitra's Settings, AI, Connect your own section with Let my own agent use Mitra switched on, a masked token with Show and Copy buttons, tabs for Claude Code, Codex and Cursor, and a Run in Terminal box starting claude mcp add --transport http mitra http://127.0.0.1:47231/mcp --header, with Copy setup and New token buttons
Connect your own: one switch, then a ready-made claude mcp add command. Copy setup puts the real token in; the screen keeps it masked.

It’s off by default, listens only on your own computer (127.0.0.1) while Mitra is open, and uses a token you can revoke with New token. From then on, your terminal Claude Code can search and cite your library, and read and edit your drafts. Changes to drafts still wait for you in Mitra, and can be undone. The command follows Claude Code’s own MCP syntax, claude mcp add --transport http.

It’s handy when you write analysis code. In your repository, ask Claude Code to “add a docstring to fit_flame_model() citing the paper this correlation comes from, with the page”, and it looks the paper up in your library.

Good questions to ask Claude Code about your papers

Claude Code likes multi-step questions. Give it work that needs several searches:

  • “Which papers measure NOx, at what oxygen correction, and which don’t say?”
  • “Find every place my library disagrees with the claim in my draft’s second paragraph.”
  • “For each paper in the Thermoacoustics folder, what’s the experimental rig and its operating pressure?”
  • “Which of these papers would an examiner expect me to cite on flashback that I haven’t tagged to cite?”

For more on asking across many papers at once, see chat with multiple research papers. For using chatbots on literature without fake references, see how to use AI for research without fake citations.

Claude Code, or another AI?

Mitra doesn’t tie you to one. The same library works with any AI Mitra supports, including a model running offline on your computer (in beta), and you can switch in Settings → AI whenever you like without losing threads or drafts. If you already have Claude Pro, Claude Code costs you nothing extra.

One honest limit: Pro’s usage limits are shared between Claude and Claude Code and reset every five hours and every week. A long session of library-wide questions can use a good part of that, so on a heavy week, save the multi-search questions for the ones that need them.

Give it an afternoon’s question

You already have the subscription. Download Mitra (free on one computer for good), drag in your papers and select Claude Code in Settings → AI. Then ask the question you’d normally give a whole afternoon to, and watch the searches stack up above the answer.

Questions people ask

Can I use Claude Code to read research papers?

Yes. On its own, Claude Code works on files in a folder. Connected to Mitra, it searches and reads your whole research library through Mitra's tools and answers with a chip on every claim that opens the exact page. It runs on your own Claude plan.

Which Claude plan do I need?

Claude Code needs a paid plan or a Console account. As of November 2026, Claude Pro is $20 a month, or $17 a month billed yearly, and includes Claude Code. Usage limits are shared between Claude and Claude Code.

Does Mitra upload my PDFs to Anthropic?

Your PDFs, their text and the search index stay on your computer. Only the passages a question needs go to the AI you chose, through Claude Code's own connection.

Can Claude Code change my files or my library?

Inside Mitra, Claude Code's own tools are switched off, so it acts only through Mitra's tools. Destructive or bulk actions ask first, edits to drafts arrive as suggestions you accept, and every run can be undone.

Keep reading