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

TDQS

A4.2/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct action: indexing, reading content, listing documents, retrieving structure, and deleting. No overlap or confusion between tools.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern: index_document, get_page_content, list_documents, get_document_tree, delete_document.

Tool Count5/5

With 5 tools, the set is well-scoped for the domain of document indexing and retrieval. Every tool serves a clear, necessary function without redundancy.

Completeness5/5

The tools cover the full lifecycle of a document in the index: create (index), read (list, tree, content), and delete. No critical operations are missing given the stated purpose.

Maintenance

ActivityInactive
ResponsivenessNo issues