Skip to main content
Glama
ypolosov

pageindex-mcp

by ypolosov

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYYesAPI key for OpenAI (required for indexing)
OPENAI_BASE_URLNoBase URL for OpenAI API (e.g., for OpenRouter)
PAGEINDEX_MODELNoOpenAI model (default: gpt-4o-2024-11-20)
INDEX_STORE_PATHNoWhere to store JSON indexes (default: ~/.pageindex-store)
PAGEINDEX_REPO_PATHYesPath to cloned PageIndex repository

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
index_documentA

Converts a local PDF into a PageIndex hierarchical tree structure. This is a one-time operation per document. Requires: PAGEINDEX_REPO_PATH env var pointing to cloned VectifyAI/PageIndex repo, and OPENAI_API_KEY for tree generation.

get_page_contentA

Extracts text content from specific pages or a tree node of an indexed document. Use get_document_tree first to find relevant node_ids, then call this to read the content. Claude Code handles all reasoning — this tool just returns raw text.

list_documentsA

Lists all documents in the local PageIndex store with metadata.

get_document_treeA

Returns the full hierarchical tree structure of an indexed document. Useful to understand document organization before searching.

delete_documentA

Removes a document from the local index store.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ypolosov/pageindex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server