LlamaIndex MCP server for AI agents

Live

OAUTH 2.1

DOCUMENT PROCESSING

AI

LlamaIndex MCP gives your agent document processing on the LlamaParse Platform: parse files to markdown, extract structured data, classify and split files, and build indexes your agent can search.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
LlamaIndex MCP
agent · Acme Q3
Run
Find the termination clause in the vendor contracts index.
S
llamaindexmcp_retrievefromindex
760ms
Document agent
Found 3 matching passages across 2 contracts, led by the 30-day termination notice in the Acme services agreement.
Sources: LlamaIndex index, 3 passages
llamaindexmcp
3 passages
18:29
Message Claude...

Tools your document processing agent reaches for on LlamaIndex MCP, scoped per user.

CALL ANY TOOL
27 tools for document processing in LlamaIndex MCP: parse, classify, split, and extract from files, upload files, and create, sync, search, and read indexes.
llamaindexmcp_addfilestodirectory
Addfilestodirectory
Add already-uploaded files to a directory, so they can be indexed. Takes file IDs from getUploadUrl or uploadFileByUrl. Files are added one by one, so the response reports which succeeded and which failed, retry only the failed ones. If the directory already backs an index, call syncIndex afterwards to pull the new files in.
Parameters
Name
Type
Required
Description
directoryId
string
Required
ID of the directory to add the files to
fileIds
array
Required
IDs of the files to add, as returned by getUploadUrl or uploadFileByUrl
projectId
string
Optional
Project ID that the tool should use. Uses the default project if not provided.
llamaindexmcp_classifyfile
Classifyfile
llamaindexmcp_createdirectory
Createdirectory
llamaindexmcp_createextractionconfigfromschema
Createextractionconfigfromschema
llamaindexmcp_createindex
Createindex
llamaindexmcp_createprojectapikey
Createprojectapikey
llamaindexmcp_estimatefilecomplexity
Estimatefilecomplexity
llamaindexmcp_extractfile
Extractfile
llamaindexmcp_extractfileturbo
Extractfileturbo
llamaindexmcp_findfilesinindex
Findfilesinindex
llamaindexmcp_generateextractionconfig
Generateextractionconfig
llamaindexmcp_getindexstatus
Getindexstatus
llamaindexmcp_getschematemplate
Getschematemplate
llamaindexmcp_getuploadurl
Getuploadurl
llamaindexmcp_getuserprojects
Getuserprojects
llamaindexmcp_grepfilefromindex
Grepfilefromindex
llamaindexmcp_listdirectories
Listdirectories
llamaindexmcp_listdirectory
Listdirectory
llamaindexmcp_listindexes
Listindexes
llamaindexmcp_parsefile
Parsefile
llamaindexmcp_parsewithliteparse
Parsewithliteparse
llamaindexmcp_readfilefromindex
Readfilefromindex
llamaindexmcp_retrievefromindex
Retrievefromindex
llamaindexmcp_searchschematemplates
Searchschematemplates
llamaindexmcp_splitfile
Splitfile
llamaindexmcp_syncindex
Syncindex
llamaindexmcp_uploadfilebyurl
Uploadfilebyurl
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// LlamaIndex tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["llamaindexmcp"], toolNames: [
    "llamaindexmcp_uploadfilebyurl",
    "llamaindexmcp_parsefile",
    "llamaindexmcp_extractfileturbo"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Upload this PDF from its URL, parse it to markdown, and extract the invoice line items" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["llamaindexmcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Upload this PDF from its URL, parse it to markdown, and extract the invoice line items" }],
  tools,
});

// Execute the tool call with the user's vaulted LlamaIndex OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["llamaindexmcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Upload this PDF from its URL, parse it to markdown, and extract the invoice line items" }],
  tools,
});

// Tool call runs with the user's vaulted LlamaIndex OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["llamaindexmcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "document_agent",
  model: "gemini-2.5-pro",
  instruction: "LlamaIndex tools scoped to this user",
  tools,
});

await agent.run("Upload this PDF from its URL, parse it to markdown, and extract the invoice line items");
Try these prompts
Copy any prompt into your agent. Each maps directly to a LlamaIndex MCP tool. Click to copy, paste into your agent, done.
Parse and classify
Copy the prompt
Copied
Parse this PDF to markdown.
Copy the prompt
Copied
Estimate how complex this PDF is to parse.
Copy the prompt
Copied
Classify this file as an invoice, contract, or resume.
Extract structured data
Copy the prompt
Copied
Search the starter schemas for an invoice template.
Copy the prompt
Copied
Generate an extraction configuration for this file.
Copy the prompt
Copied
Extract the line items from this invoice in real time.
Indexes and search
Copy the prompt
Copied
List my indexes.
Copy the prompt
Copied
Search the contracts index for payment terms.
Copy the prompt
Copied
Re-index the contracts directory.
SEE HOW AUTH WORKS
Each user signs in to LlamaIndex once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
LlamaIndex MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
LlamaIndex MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
LlamaIndex MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
LlamaIndex MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI connectors.
GTM and RevOps Teams
Deal room sync
Pulls opportunity context from Salesforce, captures key decisions from Slack, and syncs a running summary to the deal room doc in Google Drive, but only when the deal actually changed.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other AI connectors.
GTM
Deal room sync agent
Pull opportunity context from Salesforce, capture decisions from Slack, and keep the Google Drive deal room doc current.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared LlamaIndex token looks fine in a demo. In production every parse and index change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
LlamaIndex today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access LlamaIndex as the user or through a shared service account?
As the user. Each user signs in to LlamaIndex once, and Scalekit stores and refreshes their tokens. Every parse, extraction, and index change in your audit trail is attributed to that user, not a shared service account.
Where is the LlamaIndex OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in LlamaIndex?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the search and read tools without llamaindexmcp_createprojectapikey, which creates a credential scoped to one project, or the create and sync tools. Scalekit also enforces scope checks before every API call.
What happens when a user revokes LlamaIndex access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent search a document collection?
It adds files to a directory with llamaindexmcp_addfilestodirectory, creates an index with llamaindexmcp_createindex, and searches with llamaindexmcp_retrievefromindex. Indexing is asynchronous, so the agent checks llamaindexmcp_getindexstatus until the index has finished building.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""llamaindexmcp"": {
""url"": ""https://mcp.scalekit.com/llamaindexmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.llamaindexmcp]
url = ""https://mcp.scalekit.com/llamaindexmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""llamaindexmcp"": {
""url"": ""https://mcp.scalekit.com/llamaindexmcp"",
""type"": ""http""
}
}
}