PageIndex MCP
Lets your AI agent chat with long PDFs by reasoning over the document structure instead of searching by similarity.
408 stars on GitHubby Vectify AILicense MITUpdated 20 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add pageindex -- npx -y @pageindex/mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Summarize chapter 3 of this 400-page PDF and tell me which pages it covers.
Find where this contract talks about termination and quote the clause.
What it is
PageIndex MCP connects your AI agent to PageIndex, a system that turns a document into a tree of sections, like a book's index. The agent then reasons over that tree to find the right passages. It works with local and online PDFs, so you can ask questions about long files without hitting context limit errors.
What it can do
- Chat with long PDFs through a tree index of the document
- Add local PDF files (using the local server)
- Work with online PDFs
- Retrieve passages by reasoning over document structure, with no vector database
When to use
- βΊWhen you have a long PDF that is too big for your AI agent's context window.
- βΊWhen you want answers that point back to the right section of a report or book.
- βΊWhen you want to reuse the same documents across Claude, Cursor or other MCP agents.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
AgentDB Vector SearchLets your agent search documents by meaning rather than exact words, which suits question answering and knowledge bases.rag-pineconeHelps your agent store and search embeddings in Pinecone, a managed vector database that scales without server work.chromaSets up Chroma, an open-source embedding database, to store documents and run semantic search for question answering and retrieval apps.Frequently asked questions
Is it free?
The readme says you get 1000 free pages and unlimited conversations. It does not describe pricing beyond that.
Is it open source?
Yes. The project is under the MIT license.
What do I need to connect?
Create an API key in the PageIndex dashboard and add it as a Bearer token in your MCP config. App users can connect by OAuth instead.
Can it read PDFs on my computer?
Yes, through the local MCP server run with npx @pageindex/mcp, which needs Node.js 18 or newer.
Which agents does it work with?
Claude, Cursor and other MCP-compatible clients, including Claude Agent SDK, Vercel AI SDK, OpenAI Agents SDK and LangChain.
Does it use a vector database?
No. It builds a tree structure of the document and uses reasoning to search it.
If it does not work
- βΊCheck that the API key is copied in full and that the Authorization header reads Bearer followed by your key.
- βΊFor local PDF upload, make sure Node.js 18 or newer is installed, then restart your MCP client.
- βΊFor Claude Desktop, install the .mcpb file from the Releases page and sign in when OAuth asks.
5 new skills a week. 1 minute to read.