> ## Documentation Index
> Fetch the complete documentation index at: https://linkly.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Let Claude Code Read and Search PDFs

> How Claude Code reads PDFs on its own, its page limits, and how to search many PDFs, including scans, with Linkly AI.

Claude Code can open a PDF when you give it the path. To **search across many PDFs**, or to read scanned ones as text, add Linkly AI over MCP.

## What Claude Code does on its own

According to the [tools reference](https://code.claude.com/docs/en/tools-reference):

* PDFs of up to 10 pages are read whole.
* Longer ones are read in ranges, such as pages `1-5`, up to 20 pages at a time.
* Reading ranges needs poppler. On macOS run `brew install poppler`; on Debian or Ubuntu run `apt-get install poppler-utils`.

This is fine for one known file. It doesn't search inside PDFs.

## When to add Linkly AI

| Task | Claude Code alone | With Linkly AI |
| - | - | - |
| Read one short PDF | Yes | Yes |
| Find which of 500 PDFs mentions a clause | No | Yes |
| Read one section of a 400-page manual | In page ranges | Through the outline, then the lines needed |
| Scanned pages | Looks at page images | Searchable text through OCR |
| Word, slides, e-books | Not as documents | Yes |

## Set it up

**1. Install Linkly AI and add folders**

Add the folders that hold your PDFs. Indexing runs on your computer.

**2. Connect Claude Code**

```bash theme={null}
claude mcp add --transport http linkly-ai "http://127.0.0.1:60606/mcp?client=claude-code"
```

**3. Try it**

```
Search my documents for the warranty terms of the 2025 supply contract and quote the clause with its source
```

More options are in [Using Linkly AI in Claude Code](https://linkly.ai/docs/en/integration/use-in-claude-code.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.