Skip to main content
Glama
gabrielmrojas

PDF Processor Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TEMP_DIRNoWorking temp storage directory (default temp_files)
LOG_LEVELNoLogging level (default INFO)
SERVER_NAMENoServer name (default pdf-processor-server)
LOG_FILE_PATHNoLog file path (default logs/pdf-processor-server.log)
SERVER_VERSIONNoServer version (default 1.0.0)
MAX_FILE_SIZE_MBNoMax file size for inputs (default 50)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
server_infoA

Return basic server info and configuration snapshot (non-secret).

list_temp_resourcesA

List available temporary files with optional filtering.

  • content_type: filter by 'application/pdf', 'image/png', 'image/jpeg'

  • max_items: limit the number of returned entries

get_pdf_infoB

Get comprehensive PDF information without processing content.

get_resource_base64B

Return base64 for a file within the temp directory only.

extract_textA

Extract all text from a PDF.

Accepts:

  • Full path string

  • Short filename previously written to temp storage

  • Bytes / file-like / dict with base64 (will be saved to temp)

extract_text_by_pageB

Extract text from specific pages or page ranges.

extract_metadataC

Extract comprehensive PDF metadata.

merge_pdfsB

Merge multiple PDF files into one document.

split_pdfB

Split PDF into separate files by page ranges.

rotate_pagesC

Rotate specific pages in a PDF.

pdf_to_imagesC

Convert PDF pages to image files.

images_to_pdfC

Create PDF from multiple image files.

upload_fileB

Persist an uploaded file into the server temp directory.

Accepts:

  • Full path string

  • Short filename previously written to temp storage

  • Bytes / file-like / dict with base64 (will be saved to temp)

upload_file_base64B

Upload a file encoded as base64 and persist it in temp storage.

Pass the base64-encoded content and the desired filename (e.g., "document.pdf").

upload_file_urlA

Download a file from a URL and persist it in temp storage.

Provide a direct URL and optional filename override. Requires 'requests' to be installed.

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/gabrielmrojas/pdf_mcp_server'

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