Skip to content
MCP server

PageIndex MCP

Chat with long PDFs through a vectorless, reasoning-based document index

Runs locally

PageIndex MCP is a freemium MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
API, CLI, Web
Runs
Locally
Version
1.9.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pageindex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pageindex/mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About PageIndex MCP

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.

What it does

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

Pricing

Freemium

First 1,000 pages free; further pricing not listed

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.

How AIPoweredBot checks servers