MCPcopy
hub / github.com/run-llama/llama_cloud_services

github.com/run-llama/llama_cloud_services @0.6.94 sqlite

repository ↗ · DeepWiki ↗ · release 0.6.94 ↗
914 symbols 3,040 edges 124 files 359 documented · 39%
README

PyPI - Downloads GitHub contributors Discord

Llama Cloud Services

⚠️ DEPRECATION NOTICE

This repository and its packages are deprecated and will be maintained until May 1, 2026.

Please migrate to the new packages: - Python: pip install llama-cloud>=1.0 (GitHub) - TypeScript: npm install @llamaindex/llama-cloud (GitHub)

The new packages provide the same functionality with improved performance, better support, and active development.

This repository contains the code for hand-written SDKs and clients for interacting with LlamaCloud.

This includes:

  • LlamaParse - A GenAI-native document parser that can parse complex document data for any downstream LLM use case (Agents, RAG, data processing, etc.).
  • LlamaExtract - A prebuilt agentic data extractor that can be used to transform data into a structured JSON representation.
  • LlamaCloud Index - A widely customizable and fully automated document ingestion pipeline that also serves retrieval purposes.

Getting Started

Install the package:

pip install llama-cloud-services

Then, get your API key from LlamaCloud.

Then, you can use the services in your code:

from llama_cloud_services import (
    LlamaParse,
    LlamaExtract,
    LlamaCloudIndex,
)

parser = LlamaParse(api_key="YOUR_API_KEY")
extract = LlamaExtract(api_key="YOUR_API_KEY")
index = LlamaCloudIndex(
    "my_first_index", project_name="default", api_key="YOUR_API_KEY"
)

See the quickstart guides for each service for more information:

Switch to EU SaaS 🇪🇺

If you are interested in using LlamaCloud services in the EU, you can adjust your base URL to https://api.cloud.eu.llamaindex.ai.

You can also create your API key in the EU region here.

from llama_cloud_services import (
    LlamaParse,
    LlamaExtract,
    EU_BASE_URL,
)

parser = LlamaParse(api_key="YOUR_API_KEY", base_url=EU_BASE_URL)
extract = LlamaExtract(api_key="YOUR_API_KEY", base_url=EU_BASE_URL)
index = LlamaCloudIndex(
    "my_first_index",
    project_name="default",
    api_key="YOUR_API_KEY",
    base_url=EU_BASE_URL,
)

Documentation

You can see complete SDK and API documentation for each service on our official docs.

Terms of Service

See the Terms of Service Here.

Get in Touch (LlamaCloud)

You can get in touch with us by following our contact link.

Extension points exported contracts — how you extend this code

AgentDataClientOptions (Interface)
(no doc)
ts/llama_cloud_services/src/beta/agent/client.ts
FileRoutesByFullPath (Interface)
(no doc)
examples-ts/classify/src/routeTree.gen.ts
BoundingBox (Interface)
(no doc)
ts/llama_cloud_services/src/beta/agent/types.ts
FileRoutesByTo (Interface)
(no doc)
examples-ts/classify/src/routeTree.gen.ts
PageDimensions (Interface)
(no doc)
ts/llama_cloud_services/src/beta/agent/types.ts
FileRoutesById (Interface)
(no doc)
examples-ts/classify/src/routeTree.gen.ts
FieldCitation (Interface)
(no doc)
ts/llama_cloud_services/src/beta/agent/types.ts
FileRouteTypes (Interface)
(no doc)
examples-ts/classify/src/routeTree.gen.ts

Core symbols most depended-on inside this repo

delete
called by 19
ts/llama_cloud_services/src/beta/agent/client.ts
extract
called by 16
py/llama_cloud_services/extract/extract.py
sleep
called by 15
ts/llama_cloud_services/src/utils.ts
upload_file
called by 15
py/llama_cloud_services/files/client.py
loadData
called by 14
ts/llama_cloud_services/src/reader.ts
augment_async_errors
called by 13
py/llama_cloud_services/utils.py
_get_mime_type
called by 12
py/llama_cloud_services/extract/extract.py
await_for_completion
called by 11
py/llama_cloud_services/index/base.py

Shape

Function 470
Method 315
Class 89
Interface 21
Route 19

Languages

Python65%
TypeScript35%

Modules by API surface

ts/llama_cloud_services/src/client/sdk.gen.ts165 symbols
py/llama_cloud_services/extract/extract.py53 symbols
py/llama_cloud_services/parse/base.py44 symbols
py/llama_cloud_services/parse/types.py43 symbols
py/tests/extract/test_extract_api.py36 symbols
py/llama_cloud_services/index/base.py29 symbols
py/unit_tests/beta/agent/test_agent_data_schema.py26 symbols
py/llama_cloud_services/beta/sheets/client.py26 symbols
py/tests/parse/test_llama_parse.py23 symbols
py/tests/index/test_index.py22 symbols
py/llama_cloud_services/beta/agent_data/schema.py21 symbols
py/llama_cloud_services/index/api_utils.py19 symbols

Dependencies from manifests, versioned

@ai-sdk/openai1.3.23 · 1×
@changesets/cli2.29.5 · 1×
@eslint/js9.32.0 · 1×
@hey-api/client-fetch0.10.1 · 1×
@hey-api/openapi-ts0.67.5 · 1×
@llamaindex/core0.6.22 · 1×
@llamaindex/env0.1.30 · 1×
@llamaindex/workflow-core1.3.3 · 1×
@tanstack/react-router1.133.22 · 1×
@tanstack/react-router-devtools1.133.22 · 1×
@tanstack/react-start1.133.22 · 1×

For agents

$ claude mcp add llama_cloud_services \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact