Skip to main content
Glama

PDF.co MCP Server

Official
by pdfdotco
MIT License
1
  • Apple
  • Linux

find_text

Locate specific text within PDFs and retrieve their coordinates. Supports regex for advanced search patterns, enabling precise text extraction from any page range.

Instructions

Find text in PDF and get coordinates. Supports regular expressions. Ref: https://developer.pdf.co/api-reference/pdf-find/basic.md

Input Schema

NameRequiredDescriptionDefault
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
httppasswordNoHTTP auth password if required to access source url. (Optional)
httpusernameNoHTTP auth user name if required to access source url. (Optional)
pagesNoComma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. The first-page index is 0. (Optional)
passwordNoPassword of the PDF file. (Optional)
regexSearchNoSet to True to enable regular expressions in the search string. (Optional)
searchStringYesText to search. Can support regular expressions if regexSearch is set to True.
urlYesURL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.
wordMatchingModeNoValues can be either SmartMatch, ExactMatch, or None. (Optional)

Input Schema (JSON Schema)

{ "properties": { "api_key": { "default": null, "description": "PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)", "title": "Api Key", "type": "string" }, "httppassword": { "default": "", "description": "HTTP auth password if required to access source url. (Optional)", "title": "Httppassword", "type": "string" }, "httpusername": { "default": "", "description": "HTTP auth user name if required to access source url. (Optional)", "title": "Httpusername", "type": "string" }, "pages": { "default": "", "description": "Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. The first-page index is 0. (Optional)", "title": "Pages", "type": "string" }, "password": { "default": "", "description": "Password of the PDF file. (Optional)", "title": "Password", "type": "string" }, "regexSearch": { "default": false, "description": "Set to True to enable regular expressions in the search string. (Optional)", "title": "Regexsearch", "type": "boolean" }, "searchString": { "description": "Text to search. Can support regular expressions if regexSearch is set to True.", "title": "Searchstring", "type": "string" }, "url": { "description": "URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.", "title": "Url", "type": "string" }, "wordMatchingMode": { "default": null, "description": "Values can be either SmartMatch, ExactMatch, or None. (Optional)", "title": "Wordmatchingmode", "type": "string" } }, "required": [ "url", "searchString" ], "type": "object" }

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/pdfdotco/pdfco-mcp'

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