# PageIndex MCP

> PageIndex MCP is a freemium MCP server for files and documents. Chat with long PDFs through a vectorless, reasoning-based document index. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, Web
- **Repository:** https://github.com/vectifyai/pageindex-mcp
- **MCP Registry name:** io.github.VectifyAI/pageindex-mcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

PageIndex swaps the usual embeddings-and-chunks approach for a hierarchical tree of a document's structure, which the model navigates by reasoning, much as a reader uses a book's table of contents. The README lists the claimed properties as no vector database, no chunking and no top-K cut-off, with a traceable search path.

There are three ways to connect. Developers can point an agent framework at the hosted endpoint with an API key from the PageIndex dashboard, and the README names the Claude Agent SDK, Vercel AI SDK, OpenAI Agents SDK and LangChain adapters. Existing PageIndex App users can connect over OAuth, including a one-click Claude Desktop bundle. A local stdio server run through npx is the route for uploading local PDFs, and needs Node 18 or later.

It handles both local and online PDFs. The README promises 1,000 free pages and unlimited conversations, and points to the hosted PageIndex App for a managed experience. The code is under the MIT licence.

## Features

- **Tree-structured index:** Represents a document as a hierarchy the model can navigate.
- **Local and online PDFs:** Works with files on disk or at a URL.
- **Three connection modes:** Hosted API key, OAuth with the app, or a local npx server.
- **No vector database:** Retrieval relies on reasoning over structure, not embeddings.
- **SDK compatibility:** Works with the Claude, Vercel, OpenAI and LangChain agent stacks.
- **One-click bundle:** An MCPB file installs it in Claude Desktop.

## Good for

- Ask questions of a PDF that is too long for the context window
- Trace which section an answer came from
- Give an agent framework document-reading access
- Query a local PDF without uploading it to an app

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add pageindex-mcp -- npx -y @pageindex/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pageindex-mcp -- npx -y @pageindex/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pageindex-mcp]
command = "npx"
args = ["-y", "@pageindex/mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user pageindex-mcp npx -- -y @pageindex/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
```

## FAQ

### How much is free?

The README says the first 1,000 pages are free, with unlimited conversations.

### Do I need an API key?

The hosted developer endpoint uses an API key; the app route uses OAuth.

### Can PageIndex MCP read local files?

Yes, through the local server run with npx -y @pageindex/mcp.

### What does PageIndex MCP use instead of vectors?

A tree of the document's structure and multi-step reasoning.

### How do I add PageIndex MCP to Claude Code?

Run this command in your terminal: claude mcp add pageindex-mcp -- npx -y @pageindex/mcp

### What are the best alternatives to PageIndex MCP?

The closest alternatives to PageIndex MCP are headroom, omniget, next-ai-draw-io, Claude Code Ultimate Guide and mcp-for-blender.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [headroom](https://ai-powered.com/mcp/headroom-3): headroom is an open-source MCP server for ai models and llm tooling.
- [omniget](https://ai-powered.com/mcp/omniget): omniget is an open-source MCP server for ai models and llm tooling.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.
- [tyk](https://ai-powered.com/mcp/tyk): tyk is an open-source MCP server for developer tools.
- [fastapi_mcp](https://ai-powered.com/mcp/fastapi-mcp): fastapi_mcp is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/pageindex-mcp
