Apify Actors in your agent framework
Three routes, all documented by Apify: a tool that wraps the Actor (LangChain, LangGraph, CrewAI), a document loader for retrieval (LlamaIndex), or the hosted Apify MCP server with a URL scoped to one Actor (OpenAI Agents SDK, Mastra). Every Actor page has all five snippets for its own input, each run against the current package before it is published. Checked 2026-11-12.
Frameworks
LangChain and LangGraph
Run any catalogue Actor as a LangChain tool with langchain-apify's ApifyActorsTool, then hand it to a LangGraph agent. Tested snippet for every Actor.
Actor toolCrewAI
Add a catalogue Actor to a CrewAI agent with crewai_tools' ApifyActorsTool(actor_name=...). Tested snippet for every Actor, with the env variable CrewAI expects.
Actor toolLlamaIndex
Turn a catalogue Actor's records into LlamaIndex Documents with llama-index-readers-apify's ApifyActor reader. Tested snippet with the text and URL fields mapped.
document loaderOpenAI Agents SDK
Point MCPServerStreamableHttp at a scoped Apify MCP URL so an OpenAI agent gets exactly one Actor's tools. Tested snippet for every Actor.
Apify MCP serverMastra
Add a scoped Apify MCP URL to Mastra's MCPClient and pass its tools to an Agent. Tested TypeScript snippet for every Actor.
Apify MCP server
Using a coding agent instead (Claude Code, Cursor, VS Code, ChatGPT, Codex)? See the client setup guides.