Table of Contents
Prologue
Laravel’s AI development tools and ecosystem have evolved significantly in 2026. The framework now provides a first-party SDK for AI development, and several community packages have emerged, addressing particular issues the framework does not fully resolve. The critical question surrounding these packages is not which package is better but which architectural problem they aim to solve. A provider abstraction library, an agent framework, and a protocol-level utility like MCP are not mutually exclusive but often solve divergent problems and can be used together.
This article was last updated on October 5th, 2026.
4 AI packages for Laravel – this is a decision guide, not a ranking.
1. 🧩 Laravel AI SDK, the First-Party Starting Point
Overview
Laravel released the first beta of its AI SDK in February 2026 and released v1.0 on September 23, 2026, marking its first stable release.
composer require laravel/ai
The SDK provides a unified Laravel API for supported AI providers. Its capabilities include agents, structured output, tool calling, streaming responses, conversation storage, embeddings, vector stores, image generation, audio generation, and transcription. The v1.0 release also introduced classification and tool approvals, allowing applications to request human approval before selected tools execute. Provider availability varies by feature, so check the official provider-support matrix before selecting a model or building around a specific capability.
Where It Fits
This should be your starting point for general AI application development in Laravel. It’s first-party, actively developed, and deeply integrated with the framework (migrations, config, facades).
What To Watch
v1.0 contained breaking changes from the beta, particularly in conversation storage and agent middleware, so if you adopted it early, you’ll need to budget real time for the upgrade guide, not a quick one composer update.
2. 🔌 Prism, Provider Abstraction Done Well
Overview
composer require prism-php/prism
Prism is an actively maintained independent package (created by TJ Miller and maintained as an independent open-source project), focused exclusively on delivering a consistent, fluent API for working with laravel/laravel’s default set of providers, text generation, multi-turn conversations, and tool calling, without having to build and maintain separate provider integrations yourself for each provider.
The current Prism package release requires PHP 8.2 or higher and Laravel Framework 12.61.1 or 13.12.0 or higher within those supported major-version ranges. Check the Composer constraints for the exact Prism version you plan to install, because package requirements can change between releases.
Where It Fits
Prism is worth considering when you want an independent provider-abstraction layer rather than Laravel’s first-party AI SDK. However, check the requirements of the specific Prism release before choosing it; do not assume that the latest version supports older Laravel applications. It’s an actively developed, independent library with a growing following; other packages leverage it as a foundation ( LarAgent is built using it, for example), and more tools are being built on top of it ( Atlas is an orchestration layer built directly on top of it).
What To Watch
Prism is an independent package not affiliated with the Laravel core team. That’s not a criticism in any way; it has active development and community support, but you should be aware that it can’t receive first-party support
3. 🤖 LarAgent, When You Need Agent-First Architecture

Overview
composer require maestroerror/laragent
LarAgent requires PHP 8.3 or higher and supports Laravel 10, 11, 12, and 13 through its current package constraints. Always check the installed release’s Composer requirements before adding it to an existing application. It’s an Eloquent-style syntax for declaring and managing AI agents, not general-purpose AI calls. You define an agent class in the same way you would a model, register tools as class methods, receive built-in chat history management, and have native Laravel event hooks for the agent lifecycle. It supports OpenAI, Anthropic, Groq, Gemini, and Ollama, and can use Prism underneath for additional provider coverage.
Where It Fits
Applications that are fundamentally agent-shaped: a support bot that needs persistent memory and tool access, a multi-step autonomous workflow, something that needs to behave like a long-running agent rather than respond to one-off prompts.
What To Watch
This is a narrower, more opinionated tool than the AI SDK or Prism. If your actual need is “call an LLM and get structured output back,” LarAgent’s agent-first architecture may introduce more complexity than a simple prompt-and-response feature requires.
4. 🔗 Laravel MCP, Interoperability, Not Another LLM Wrapper
Overview
composer require laravel/mcp
One of the easiest to confuse with the others: the Laravel MCP is not a tool for calling AI models. Instead, it is the official Laravel package for building MCP servers exposing your business logic as tools – callable from external AI clients (Claude, Cursor, or any other MCP-compatible agent). The package implements Laravel’s routing conventions (Mcp::local(), Mcp::web()), provides Artisan commands to scaffold servers, tools, resources, and prompts, and includes a first-party test client for Pest/PHPUnit.
The direction of integration is the key distinction. The Laravel AI SDK, Prism, and LarAgent help your Laravel application consume AI capabilities. Laravel MCP works in the opposite direction: it exposes selected application capabilities to external MCP-compatible AI clients. These tools can complement one another, but they are not interchangeable.
Where It Fits
Expose your Laravel app’s capabilities to AI agents – to let an external assistant query your order system, trigger a workflow, or read application state via a standardized protocol, instead of having AI running inside your app.
Example: An order-management application
Imagine a Laravel application that manages customer orders. Rather than giving an external AI assistant direct database access, you could expose a controlled MCP tool such as get_order_status. The application would validate the request, check authorization, and return only the information the connected client is permitted to access.
This illustrates the purpose of MCP: exposing selected application capabilities through a defined interface, not handing an AI client unrestricted access to your database.
What To Watch
Do not confuse it with the AI SDK, Prism, or LarAgent – Laravel’s first-party package for building MCP servers to be used by external agents.
Decision Matrix

| Tool | Best Fit | Problem Solved | Choose This When |
|---|---|---|---|
| Laravel AI SDK | General AI application development | Unified provider API, agents, structured output, streaming, conversations | You want the first-party, actively developed default |
| Prism | Lightweight provider abstraction | One interface across multiple LLM providers | You need provider flexibility without the full AI SDK stack, or you’re on an older Laravel version |
| LarAgent | Agent-centric applications | Persistent, stateful AI agents with memory and tools | Your feature is fundamentally an agent, not a single prompt/response |
| Laravel MCP | Exposing your app to AI clients | Lets external AI agents call your app’s tools | You’re building the server side of an AI integration, not the client side |
Compatibility Note: Package compatibility is release-specific. Before installing any of these tools, check its current Composer requirements, supported Laravel versions, and PHP requirements. A package that supports Laravel 13 today may not support an older Laravel application, even if an earlier release did.
Before You Choose
A few things to consider regardless of which tool you decide to go with:
- Provider lock-in: How difficult would it be to switch providers if pricing, performance, or quality changes?
- Laravel-version compatibility: Does the package require PHP 8.3+ and Laravel 10+ (LarAgent), or is it more flexible (Prism’s requirements are less strict)? Does it support your actual stack or just the bleeding edge?
- Structured output and tool calling: Does the package provide what you need for your specific feature, or do you have to roll your own on top of text generation?
- Streaming: Does your frontend need per-token streaming, and does the package support it?
- Testing and observability: Can you mock agent/tool responses in your test suite, and can you observe what the model did in production if something goes wrong?
- Cost and failure handling: What is the fallback when a provider call fails or times out, and how will you control unexpected costs?
Conclusion
There’s no single “best” Laravel AI package because each one is designed for different use cases. As such, it is better to describe a practical scenario in which one might be chosen over another. At the time of this update, I would personally use the Laravel AI SDK as my primary tool for building new AI features due to it being developed officially and addressing the most common use cases. If I needed more lightweight abstractions over specific providers, I would consider using Prism, especially when I need its provider-abstraction approach and its current requirements fit the application. In cases where I need to build an agent with some persistent memory, I would consider using LarAgent. Finally, if I needed to expose my application to external AI clients rather than consume AI services inside the application, I would choose Laravel MCP. It solves a different architectural problem from the other three tools.
Related Reading
Official Sources
- Announcing Laravel Boost
- Laravel AI SDK v1.0 announcement (Sept 23, 2026)
- Laravel AI SDK documentation
- Prism PHP repository
- LarAgent repository
- Laravel MCP package



