Artificial Intelligence

LlamaIndex MCP

LlamaIndex MCP lets agents use LlamaCloud: upload, parse, classify, split and extract structured data from documents, build and sync indexes over directories, and search or read indexed files.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Classify file

    Classify a file (based on specific categories) providing its file ID. Use with file IDs obtained with the getUploadUrl/uploadFileByUrl tool or that the user provided

  • Create directory

    Create a directory (folder) to hold source documents. A directory is what an index is built over: upload files, add them to a directory with addFilesToDirectory, then call createIndex on it.

  • Create extraction config from schema

    Create an extraction configuration from a JSON Schema you already have, and return its configuration id for use with `extractFile`. Supply either a `templateId` from `searchSchemaTemplates` (the server loads the schema for you) or an explicit `dataSchema` — a schema you wrote, or a template schema you edited. Unlike `generateExtractionConfig`, this needs no sample file and involves no LLM step.

  • Create index

    Create an index over a directory, making its documents searchable with retrieveFromIndex and the other index tools. The directory must already contain the files you want indexed — upload them and call addFilesToDirectory first. Indexing runs in the background: the returned index is not queryable until getIndexStatus reports it ready.

  • Estimate file complexity

    Estimate the parsing complexity of a PDF file (providing its file ID) using LiteParse. Returns a JSON object mapping each page with the LlamaParse tier it should be parsed with (or if you should use LiteParse), based on the parsing complexity and the need for OCR. Use in combination with parseFile and parseWithLiteParse. The tool needs a file ID obtained with the getUploadUrl/uploadFileByUrl tool or provided by the user. Only works with PDF files.

  • Extract file

    Extract structured data from a file based on the configuration created with the `generateExtractionConfig` tool. Returns the extracted structured data.

  • Extract file turbo

    Extract structured data from a file in real time using the Turbo tier: one call, schema supplied inline, structured JSON back in seconds — no saved configuration step. Supply either a `templateId` from `searchSchemaTemplates` or an explicit `dataSchema` JSON Schema, plus a `fileId` from the upload tools. Turbo constraints: accepts only PDF, JPG and PNG; returns one object per document; produces no parse output; bills 35 credits/page. Prefer this tool whenever response time is user-facing. For per_page or per_table_row extraction, other file types, or a reusable saved configuration, use `createExtractionConfigFromSchema` + `extractFile` instead.

  • Generate extraction config

    Generate the configuration to extract structured data from a specific file using the Extract service from the LlamaParse Platform. Provide a prompt describing what the schema of the extracted data, the ID of the file to extract and, optionally, a project ID.

  • Get upload url

    Get a pre-signed URL to upload a file to the LlamaParse S3 storage. Not available when authenticating with an API key — use uploadFileByUrl instead.

  • Parse file

    Parse a file providing its file ID, retrieving markdown or plain text content of the file. Use with file IDs obtained with the getUploadUrl/uploadFileByUrl tool or that the user provided

  • Parse with lite parse

    Parse a PDF file with LiteParse, a fast, in-process parser that does not consume credits from the LlamaParse Platform. The tool needs a file ID obtained with the getUploadUrl/uploadFileByUrl tool or provided by the user. Only works with PDF files.

  • Split file

    Split a file into category-based segments providing its file ID. Use with file IDs obtained with the getUploadUrl/uploadFileByUrl tool or that the user provided

  • Upload file by url

    Upload a file to LLamaParse S3 storage providing a URL to download the file data. On upload completion, the file will be sent to LlamaParse S3 storage, so that it can be used for downstream processing tasks like parsing, classification or splitting.