LlamaParse MCP
MCP integration to connect the LlamaParse Platform to any MCP client.
The LlamaParse MCP is a Model Context Protocol server that exposes the LlamaParse Platform’s document-processing capabilities (Parse, Classify, Extract, Split, and Index) as tools that any MCP-compatible agent can call. Instead of wiring up the REST API or SDK yourself, you connect your agent to the MCP server once and let it parse documents, extract structured data, classify and split files, and build, refresh, and retrieve from your indexes directly.
The server is open source and hosted at https://mcp.llamaindex.ai.
Authentication
Section titled “Authentication”The MCP server uses OAuth, aligned with the rest of the LlamaParse Platform. You authenticate once, in your MCP client, and the same credentials gate access to all LlamaParse services, no API key needed. Authentication happens automatically on first use, and tokens refresh without manual intervention.
Connecting an MCP client
Section titled “Connecting an MCP client”Connect to the unified endpoint https://mcp.llamaindex.ai/mcp to get the full platform surface area
(Parse, Classify, Extract, Split, and Index) in one server.
Click the button to add the server in one click:
Open in CursorOr add the server manually to ~/.cursor/mcp.json:
{ "mcpServers": { "llamaparse": { "type": "http", "url": "https://mcp.llamaindex.ai/mcp" } }}Click the button to add the server in one click:
Open in VS CodeOr add the server manually to your settings.json:
{ "mcp": { "servers": { "llamaparse": { "type": "http", "url": "https://mcp.llamaindex.ai/mcp" } } }}claude mcp add --transport http llamaparse https://mcp.llamaindex.ai/mcpOpen the connectors settings to add the server:
Open in Claude DesktopOr add the server manually to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{ "mcpServers": { "llamaparse": { "type": "http", "url": "https://mcp.llamaindex.ai/mcp" } }}Open Codex settings to add the server:
Open in CodexOr add through the CLI:
codex mcp add llamaparse --url https://mcp.llamaindex.ai/mcpThe first time your agent uses a tool, you’ll be prompted to authenticate through your browser.
EU region
Section titled “EU region”Accounts in the Europe region connect to https://mcp.eu.llamaindex.ai/mcp instead. The tool surface and
the OAuth flow are identical to North America — only the host changes.
Click a button to add the Europe server in one click:
Open in Cursor Open in VS CodeOr add the server manually, in the same file and shape your client uses above — for Cursor, that is
~/.cursor/mcp.json:
{ "mcpServers": { "llamaparse-eu": { "type": "http", "url": "https://mcp.eu.llamaindex.ai/mcp" } }}From the CLI:
# Claude Codeclaude mcp add --transport http llamaparse-eu https://mcp.eu.llamaindex.ai/mcp
# Codexcodex mcp add llamaparse-eu --url https://mcp.eu.llamaindex.ai/mcpThe llamaparse-eu name keeps the Europe server distinct from a llamaparse entry pointing at North
America, so both can stay installed side by side. The one-click buttons above install under the name
llamaparse, so rename that entry if you already have the North America server configured.
Available tools
Section titled “Available tools”The server groups its tools by product. The project and upload helpers below are carried by every endpoint — the unified one and each product-specific one — because the processing tools all take a file ID and, for accounts with more than one project, a project ID.
Projects and uploads
Section titled “Projects and uploads”getUserProjects— lists the projects your account can reach, so an agent can resolve a project by name and pass the right project ID to the other tools.uploadFileByUrl— accepts a public file URL, fetches the file, and uploads it to the platform.getUploadUrl— returns a temporary, authenticated upload endpoint your client canPOSTa local file to via multipart form data.
parseFile— runs a Parse job over a file and returns clean markdown or plain text.parseWithLiteParse— runs LiteParse over a PDF, a fast parser that costs no Parse credits. PDFs only, and best on text-dense documents with straightforward layouts.estimateFileComplexity— scores a PDF page by page and returns, for each page, the Parse tier it needs or whether LiteParse is enough. Pair it withparseFileandparseWithLiteParseto send only the pages that need it to the heavier tiers.
Classify
Section titled “Classify”classifyFile— assigns a document to one of your defined categories using Classify.
splitFile— segments a document into logical sections using Split.
Extract
Section titled “Extract”Structured extraction is more reliable through dedicated tools than asking an agent to read a parsed document and pull fields out of the text: agents may only receive a truncated version of large documents, and prompt-only extraction leaves the output schema underspecified.
generateExtractionConfig— generates a JSON schema and extraction rules from a description.extractFile— runs extraction against a file using an extraction configuration.
Index is the managed knowledge base offered by the LlamaParse Platform, built for agentic workflows. Beyond semantic search, it gives agents file-system-like access to the underlying documents. The tools cover both halves of that: building an index and querying one.
An index is built over a directory of source documents, so the build flow is upload the files, put them in a directory, then index it:
createDirectory— creates a directory, the folder of source documents an index is built over.addFilesToDirectory— adds already-uploaded files to a directory, using the file IDs returned by the upload helpers. Files are added one at a time and the response reports which succeeded, so you retry only the failures.createIndex— indexes a directory. Indexing runs in the background, and the index isn’t queryable until it reports ready.syncIndex— re-indexes a directory to pick up files added or changed since the last run. An index doesn’t refresh on its own, so this is how an existing one sees new documents.getIndexStatus— reports whether an index has finished building. Querying an index that isn’t ready yet looks the same as querying one with no matching documents, so poll this aftercreateIndexandsyncIndex.listDirectories— lists the directories in a project, one page at a time.listDirectory— lists the files inside a directory, one page at a time.
Searching and reading an index:
listIndexes— discovers the indexes you can query.findFilesInIndex— locates relevant files within an index.readFileFromIndex— reads the contents of a file in an index.grepFileFromIndex— searches for pattern matches within indexed files.retrieveFromIndex— performs hybrid (sparse + dense) retrieval over an index.
Product-specific servers
Section titled “Product-specific servers”The unified /mcp endpoint exposes every capability, which is ideal for exploratory work and broader
document-processing tasks. When you want a more focused tool list, you can connect directly to a
product-specific server instead. Narrowing the scope helps agents make tool-selection decisions more
reliably and run independent tasks in parallel.
The server tree looks like this:
https://mcp.llamaindex.ai/├── mcp # full platform: Parse, Classify, Extract, Split, Index├── parse│ └── /mcp├── classify│ ├── /mcp│ └── /{configId}/mcp├── extract│ ├── /mcp│ └── /{configId}/mcp├── split│ ├── /mcp│ └── /{configId}/mcp└── index └── /mcpThe same subpaths exist under https://mcp.eu.llamaindex.ai/ for accounts in the Europe region.
Every product-specific server carries getUserProjects and both upload helpers, plus its own tools:
| Server | Tools beyond the shared helpers |
|---|---|
/parse/mcp | parseFile, parseWithLiteParse, estimateFileComplexity |
/classify/mcp | classifyFile |
/split/mcp | splitFile |
/extract/mcp | generateExtractionConfig, extractFile |
/index/mcp | every Index tool listed above |
The classify, extract, and split servers can optionally inherit a configuration ID directly from
the route. When you connect to a /{configId}/mcp endpoint, the agent operates with that
configuration already in context: classifyFile takes its categories from it, splitFile its
categories and splitting strategy, and extractFile its schema — so the pinned extract server drops
generateExtractionConfig entirely.
For example, to connect an agent directly to a specific classification configuration:
{ "mcpServers": { "classify-folder-1": { "type": "http", "url": "https://mcp.llamaindex.ai/classify/cfg-abc/mcp" } }}And, in parallel, to a specific extraction configuration:
{ "mcpServers": { "extract-folder-1": { "type": "http", "url": "https://mcp.llamaindex.ai/extract/cfg-abc/mcp" } }}This modular model lets you compose workflows from multiple specialized servers, each responsible for a well-defined task, improving isolation, enabling greater parallelism, and giving you fine-grained control over throughput.
Example workflows
Section titled “Example workflows”- Classify, then extract — an agent classifies the files in a folder using a classification server, organizes them into category-specific subfolders, then runs the matching extraction configuration against each category in parallel and saves the results as JSON for downstream analysis.
- Agentic retrieval — an agent discovers indexes with
listIndexes, locates relevant files withfindFilesInIndex, inspects them withreadFileFromIndex, searches withgrepFileFromIndex, and retrieves passages withretrieveFromIndex— navigating PDFs, Office documents, images, and other unstructured files the way it would a file system. - Build a knowledge base from scratch — an agent uploads a batch of files with
uploadFileByUrlorgetUploadUrl, groups them withcreateDirectoryandaddFilesToDirectory, callscreateIndex, pollsgetIndexStatusuntil the index is ready, and then queries it. Later runs add files to the same directory and callsyncIndexto fold them in. - Parse only what needs it — an agent runs
estimateFileComplexityover a PDF, sends the pages that need a heavier tier toparseFile, and handles the rest withparseWithLiteParse.
Related
Section titled “Related”- Skills and Plugins — install the MCP server and a parsing skill together with the
llamaparse-mcpplugin, or give a coding agent the skills alone. - LlamaParse Platform n8n Node — the same capabilities as nodes in a no-code workflow.