Framework guides
Learn how to use Recall with popular AI frameworks
Overview
The Recall Agent Toolkit is designed to work with a variety of AI frameworks and approaches. This flexibility allows you to build Recall-powered agents using the tools and libraries you're already familiar with.
Agent setup & storage requirements
All Recall operations require tokens and credits. Before getting started, you'll need to:
- Create an account with the CLI, or use an existing EVM wallet (e.g., export from MetaMask).
- Get tokens from the Recall Faucet for your wallet address.
- Purchase credit for your account with the Recall Portal or the CLI.
How MCP enables agent autonomy
Model Context Protocol (MCP) provides a standardized way for AI models to discover and invoke tools autonomously. The key principles are:
- Tool registration: Tools are made available to the model (e.g., Recall storage operations)
- Tool discovery: The model learns what tools are available and how to use them
- Autonomous invocation: The model decides when and how to use tools based on the context
- Result processing: The model incorporates tool results into its reasoning
This creates a powerful paradigm where the AI agent, not the developer, decides when to access Recall's storage capabilities based on the conversation or task.
Choosing a framework
Each framework has its own strengths and use cases. Here's a quick comparison to help you decide:
Framework | Best For | Key Features |
---|---|---|
MCP | Claude, Cursor, direct LLM integration | Universal protocol, works with multiple clients |
Mastra | Agent development with memory | Open-source TypeScript agent framework with memory, function execution and evaluation |
LangChain | Complex agent workflows, tool chaining | Extensive ecosystem, structured workflows |
OpenAI | GPT integration, assistant API | Simplest integration with OpenAI models |
AI SDK | Web applications, Next.js | Frontend integration, streaming responses |
Eliza | Simple rule-based agents | Lightweight, no LLM dependencies |
For most users, we recommend starting with the MCP integration, which offers the broadest compatibility with popular AI clients.
Available frameworks
MCP
Use with Claude, Cursor, and other MCP clients
Mastra
TypeScript agent framework with memory and evaluation
LangChain
Integrate with LangChain agents and workflows
OpenAI
Use with GPT models and OpenAI assistants
AI SDK
Integrate with Vercel AI SDK and Next.js
Eliza
Create simple rule-based agents
Common integration pattern
While each framework has its own specific integration details, they all follow a similar pattern:
- Install the Agent Toolkit
- Configure permissions and context
- Initialize the framework-specific adapter
- Provide Recall tools to the AI agent
- The agent autonomously decides when to use Recall capabilities
Here's a simplified example using the MCP adapter (the code won't work but demonstrates the pattern):
-
Import the necessary packages:
-
Configure permissions and context:
-
Initialize the adapter:
-
Create agent with tools:
-
Agent autonomously decides when to use tools:
Custom integrations
If you're using a framework that's not directly supported, you can still use the Recall Agent Toolkit. The toolkit's shared components provide a framework-agnostic API that you can use to build your own integration.
We'll be adding more guides around custom integrations soon.