Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OCR_SPACE_API_KEYYesFree tier API key from OCR.space
OCR_SPACE_PRO_API_KEYNoOptional PRO tier API key
OCR_SPACE_PRO_ENDPOINTNoOptional PRO endpoint URL (e.g., https://eu.api.ocr.space/parse/image)https://api.ocr.space/parse/image

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
ocr_fileA

Extract text from a local image or PDF file using OCR.space API. Supports PNG, JPG, GIF, BMP, TIFF, PDF. Free tier: max 1 MB. PRO tier: max 5 MB (EU endpoint for GDPR). Optionally saves result to txt or json file.

ocr_urlA

Extract text from an image or PDF at a URL using OCR.space API. The URL must be publicly accessible. Free tier: max 1 MB. PRO tier: max 5 MB.

ocr_autoA

Smart OCR that automatically handles oversized files. For PDFs: splits into chunks, OCRs each, and joins results. For images: compresses to fit within size limit before OCR. Use this when you don't know if the file exceeds the size limit.

split_pdfA

Split a large PDF into smaller chunks that fit within API size limits. Useful for processing PDFs that exceed the 1 MB (free) or 5 MB (pro) limit. Each chunk contains as many pages as possible while staying under the limit.

list_languagesA

List all supported OCR languages with their codes.

check_tier_statusA

Check which API tiers are configured and available. Shows which environment variables are set.

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/agentic-ai-forge/ocr-space-mcp'

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