Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_pdf_infoB

Get metadata and basic info about a PDF file.

Args:
    filename: Path to a PDF file.
get_table_of_contentsA

Get the table of contents (bookmarks/outline) from a PDF.

When max_level is not specified and the TOC is very large, the depth is automatically
reduced to keep the response manageable. The response will include an
``auto_trimmed_to_level`` field and a hint when this happens.

Args:
    filename: Path to a PDF file.
    parent: Return only children of the entry whose title contains this string
            (case-insensitive). For example, pass a chapter title to get its sections.
    max_level: Only include entries up to this depth (1=chapters only, 2=sections, etc.).
               When used with parent, levels are relative: 1 means direct children only,
               2 means children and grandchildren, etc.
get_page_textA

Extract text content from one or more PDF pages.

Args:
    filename: Path to a PDF file.
    start_page: First page number (1-indexed, inclusive).
    end_page: Last page number (1-indexed, inclusive). Defaults to start_page.
    format: Output format. "json" returns structured page data with block/line/span
            detail. "text" returns plain text. "markdown" returns markdown via
            PyMuPDF4LLM. "html" returns HTML.
    include_headers_footers: If False, crops top/bottom margins to exclude
                             headers and footers. Default True.
get_page_imageA

Render a single PDF page as a PNG image.

Args:
    filename: Path to a PDF file.
    page: Page number (1-indexed).
    dpi: Image resolution. Default 150 (good balance of readability and size).
    output: "base64" returns the image inline as MCP image content.
            "file" writes to a temp file and returns the path.
search_textA

Search for text in a PDF file (case-insensitive).

Returns a list of hits with page number and surrounding context.

Args:
    filename: Path to a PDF file.
    query: Text to search for.
    context_chars: Characters of context to include around each hit. Default 100.

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/I-CAN-hack/pdf-mcp'

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