Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Llama Cloud Mcp

БесплатноПоддерживается

The official MCP Server for the Llama Cloud API

GitHubEmbed

Описание

The official MCP Server for the Llama Cloud API

README

NPM version npm bundle size

The official TypeScript SDK for LlamaParse - the enterprise platform for agentic OCR and document processing.

With this SDK, create powerful workflows across many features:

  • Parse - Agentic OCR and parsing for 130+ formats
  • Extract - Structured data extraction with custom schemas
  • Classify - Document categorization with natural-language rules
  • Agents - Deploy document agents as APIs
  • Index - Document ingestion and embedding for RAG

Documentation

Installation

npm install @llamaindex/llama-cloud

Quick Start

import LlamaCloud from '@llamaindex/llama-cloud';

const client = new LlamaCloud({
  apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});

// Parse a document
const job = await client.parsing.create({
  tier: 'agentic',
  version: 'latest',
  file_id: 'your-file-id',
});

console.log(job.id);

File Uploads

import fs from 'fs';
import LlamaCloud from '@llamaindex/llama-cloud';

const client = new LlamaCloud();

// Upload using a file stream
await client.files.create({
  file: fs.createReadStream('/path/to/document.pdf'),
  purpose: 'purpose',
});

// Or using a File object
await client.files.create({
  file: new File(['content'], 'document.txt'),
  purpose: 'purpose',
});

MCP Server

Use the Llama Cloud MCP Server to enable AI assistants to interact with the API:

Add to Cursor Install in VS Code

Error Handling

When the API returns a non-success status code, an APIError subclass is thrown:

await client.pipelines.list({ project_id: 'my-project-id' }).catch((err) => {
  if (err instanceof LlamaCloud.APIError) {
    console.log(err.status); // 400
    console.log(err.name); // BadRequestError
  }
});
Status Code Error Type
400 BadRequestError
401 AuthenticationError
403 PermissionDeniedError
404 NotFoundError
422 UnprocessableEntityError
429 RateLimitError
>=500 InternalServerError
N/A APIConnectionError

Retries and Timeouts

The SDK automatically retries requests 2 times on connection errors, timeouts, rate limits, and 5xx errors. Requests timeout after 1 minute by default. Functions that combine multiple API calls (e.g. client.parsing.parse()) will have larger timeouts by default to account for the multiple requests and polling.

const client = new LlamaCloud({
  maxRetries: 0, // Disable retries (default: 2)
  timeout: 30 * 1000, // 30 second timeout (default: 1 minute)
});

Pagination

List methods support auto-pagination with for await...of:

async function fetchAllExtractV2Jobs(params) {
  const allExtractV2Jobs = [];
  // Automatically fetches more pages as needed.
  for await (const extractV2Job of client.extract.list({ page_size: 20 })) {
    allExtractV2Jobs.push(extractV2Job);
  }
  return allExtractV2Jobs;
}

Or fetch one page at a time:

let page = await client.extract.list({ page_size: 20 });
for (const extractV2Job of page.items) {
  console.log(extractV2Job);
}

while (page.hasNextPage()) {
  page = await page.getNextPage();
}

Logging

Configure logging via the LLAMA_CLOUD_LOG environment variable or the logLevel option:

const client = new LlamaCloud({
  logLevel: 'debug', // 'debug' | 'info' | 'warn' | 'error' | 'off'
});

Requirements

  • TypeScript >= 4.9
  • Node.js 20+, Deno 1.28+, Bun 1.0+, or modern browsers

Contributing

See CONTRIBUTING.md.

from github.com/run-llama/llama-parse-ts

Установить Llama Cloud Mcp в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install llama-cloud-mcp

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add llama-cloud-mcp --env LLAMA_CLOUD_API_KEY="" -- npx -y @llamaindex/llama-cloud-mcp

Пошаговые гайды: как установить Llama Cloud Mcp

FAQ

Llama Cloud Mcp MCP бесплатный?

Да, Llama Cloud Mcp MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Llama Cloud Mcp?

Да, требуются переменные окружения: LLAMA_CLOUD_API_KEY. Unyly подставит их в конфиг при установке.

Llama Cloud Mcp — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Llama Cloud Mcp в Claude Desktop, Claude Code или Cursor?

Открой Llama Cloud Mcp на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Llama Cloud Mcp with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development