How to connect LlamaIndex MCP to Claude

Connect Claude Web, Desktop and Cowork to LlamaIndex MCP. Parse invoices into structured llamacloud data, search indexed files for policy details, and more using natural language, with authentication handled for you.

LlamaIndex MCP logoLlamaIndex MCP
Dcr Oauth

LlamaIndex MCP connects agents to LlamaCloud's document and indexing tools. It provides a managed way to parse, classify, index, and search business files.

27 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your LlamaIndex account to Claude via Composio Connect, enabling it to parse invoices into structured LlamaCloud data, search indexed files for policy details, sync a directory into a LlamaCloud index, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate LlamaIndex MCP with

Connecting LlamaIndex to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your LlamaIndex account

Back in Claude, ask it to connect to LlamaIndex or give it any LlamaIndex-related task.

For example, ask Claude to:

  • "Parse invoices into structured LlamaCloud data"
  • "Search indexed files for policy details"
  • "Sync a directory into a LlamaCloud index"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your LlamaIndex account is ready to use.

What is the LlamaIndex Claude Connector, and what's possible with it?

The LlamaIndex MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your LlamaIndex account. It provides structured and secure access to LlamaCloud document processing, extraction, and indexing tools, so your agent can upload and parse files, classify and split documents, extract structured data, and search indexed content on your behalf.

  • Document upload and parsing: Have your agent upload files from a URL, parse them into markdown or plain text, and use LiteParse for fast PDF processing.
  • Structured data extraction: Let the agent find extraction templates, create extraction configurations, and pull structured JSON from documents such as invoices, contracts, resumes, and other supported files.
  • Document organization: Direct your agent to create directories, add uploaded files, list directory contents, classify files, and split documents into category-based segments.
  • Searchable index management: Instruct your agent to create indexes over document directories, check index status, sync changed files, and list available indexes.
  • Content search and retrieval: Have your agent search indexed documents, find matching files, read file content, or locate text patterns with surrounding context.

Troubleshooting

1. Why does Claude not use the Composio connector for LlamaIndex?

The connector can show as connected, but Claude must use it in each LlamaIndex conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to LlamaIndex again.

2. Why does Claude show an MCP server error before LlamaIndex connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for LlamaIndex.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect LlamaIndex.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the LlamaIndex authorization link not work?

The Composio connector is one server. Your LlamaIndex account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the LlamaIndex connection.
  • Composio creates a fresh LlamaIndex authorization link.
  • Open that link in your browser and finish the LlamaIndex sign-in.

4. Why do LlamaIndex actions fail after they worked before?

The LlamaIndex connection can expire or lose permission.

  • Ask Claude to inspect the LlamaIndex connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the LlamaIndex account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in LlamaIndex.
  • If the action still fails with a permission error, check that the connected account has that permission in LlamaIndex itself.

5. How do I switch to a different LlamaIndex account?

Claude can manage the LlamaIndex connection for you.

  • Ask Claude to disconnect or delete the current LlamaIndex account.
  • Ask Claude to connect LlamaIndex again.
  • Open the new Composio authorization link for LlamaIndex.
  • Sign in with the other LlamaIndex account in the browser.
  • After the account connects, ask Claude to retry the LlamaIndex task.

6. Why is my LlamaIndex connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your LlamaIndex connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If LlamaIndex tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect LlamaIndex.
TOOLS

Supported Tools

Every LlamaIndex MCP action and event your agent gets out of the box.

Add files to directory

Add already-uploaded files to a directory, so they can be indexed.

Classify file

Classify a file (based on specific categories) providing its file ID.

Create directory

Create a directory (folder) to hold source documents.

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`.

Create index

Create an index over a directory, making its documents searchable with retrieveFromIndex and the other index tools.

Create project api key

Create a LlamaCloud API key scoped to one project, for handing to an application or a teammate.

Estimate file complexity

Estimate the parsing complexity of a PDF file (providing its file ID) using LiteParse.

Extract file

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

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.

Find files in index

Search files within an index.

Generate extraction config

Generate the configuration to extract structured data from a specific file using the Extract service from the LlamaParse Platform.

Get index status

Check whether an index has finished building.

Get schema template

Retrieve the full JSON Schema for one starter extraction template, by id, as returned by `searchSchemaTemplates`.

Get upload url

Get a pre-signed URL to upload a file to the LlamaParse S3 storage.

Get user projects

List the projects available to the user, with their names, so you can pass the right projectId to other tools.

Grep file from index

Grep the content of a file from an index, providing its file ID, the pattern to grep for and, optionally, a number of context characters and a maximum number of grep matches to retrieve.

List directories

List the directories in a project.

List directory

List the files inside a directory, along with the directory itself.

List indexes

List all the available indexes on the LlamaParse Platform.

Parse file

Parse a file providing its file ID, retrieving markdown or plain text content of the file.

Parse with lite parse

Parse a PDF file with LiteParse, a fast, in-process parser that does not consume credits from the LlamaParse Platform.

Read file from index

Read the content of a file from an index, providing its file ID and, optionally, an offset and a maximum length (in characters) to read.

Retrieve from index

Perform hybrid search on the index, providing a query and, optionally, the top K documents to retrieve and the top N documents to rerank.

Search schema templates

Search the built-in library of starter extraction schemas (invoice, contract, resume, 10-K, patient intake and more) by keyword or category.

Split file

Split a file into category-based segments providing its file ID.

Sync index

Re-index a directory, picking up files added or changed since the last run.

Upload file by url

Upload a file to LLamaParse S3 storage providing a URL to download the file data.

FRAMEWORKS

How to build LlamaIndex MCP Agent with another framework

FAQ

Frequently asked questions

Start with LlamaIndex MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every LlamaIndex MCP tool your agent needs.Free to start.

Start building