Transform your Laravel Eloquent models into JSON:API endpoints and MCP servers automatically.
Zero boilerplate. Pure results. Future-ready architecture.
class PostRepository extends Repository
{
public static string $model = Post::class;
}Mcp::web('restify', RestifyServer::class);Transform your Laravel models into production-ready APIs and AI-compatible servers with zero configuration. The future of API development is here.
Automatically generates endpoints that follow JSON:API specifications with proper relationships, pagination, filtering, and sparse fieldsets.
{
"data": {
"id": "1",
"type": "posts",
"attributes": {
"title": "Laravel Restify",
"published_at": "2024-01-15"
},
"relationships": {
"author": {
"data": {"id": "1", "type": "users"}
}
}
}
}Built-in integration with Laravel's authorization system. Use policies for fine-grained access control on every endpoint and MCP tool.
class PostPolicy
{
public function index(User $user)
{
return $user->can('view posts');
}
}Complex queries, sorting, filtering, and search across relationships without any extra configuration. Full-text search included.
GET /api/restify/posts?
filter[title]=Laravel&
filter[status]=published&
sort=-created_at&
include=author,comments&
page[size]=10Generate Model Context Protocol servers that allow AI agents to interact with your APIs using structured, type-safe tools.
Mcp::web('restify', RestifyServer::class)
->middleware(['auth:sanctum'])
->name('mcp.restify');Start building in seconds. Just create a repository class pointing to your model and you're ready with a production API.
class UserRepository extends Repository
{
public static string $model = User::class;
// That's it! 🚀
}Built specifically for Laravel, leveraging Eloquent ORM, Service Container, and all Laravel conventions you already know and love.
Route::middleware('auth:sanctum')
->group(function () {
Route::restify();
});Laravel Restify is open source and community-driven. Join thousands of developers who are building the future of API development.
MIT licensed, completely free, and transparently developed on GitHub with full source code access.
Star on GitHubComprehensive guides, tutorials, and API reference with real-world examples and best practices.
Read DocsGet help, share ideas, and connect with other developers in our active GitHub Discussions community.
Join DiscussionProudly maintained by BinarCode, a team passionate about Laravel and modern web development.
Visit WebsiteLaravel Restify is made possible by our incredible community of contributors who help make it better every day
Install Laravel Restify today and transform your API development experience with elegant, powerful, and intuitive tools.
Get started instantly with Composer package manager
Explore the source code and contribute to development