Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Laravel API for Ai Agents and humans.
| Date | Stars |
|---|---|
| 2026-07-31 | 679 |
| 2026-08-02 | 680 |
| 2026-08-12 | 681 |
| 2026-08-20 | 683 |
| 2026-08-21 | 684 |
| 2026-08-25 | 683 |
| 2026-09-16 | 684 |
| 2026-09-20 | 684 |
Today
— stars today
This week
+1 stars this week
This month
— stars this month
Momentum
1.0
growth rate 0.15%/day
<p align="center"><img src="/docs-v2/static/logo.png"></p>
<p align="center">
<a href="https://github.com/BinarCode/laravel-restify/actions"><img src="https://github.com/BinarCode/laravel-restify/actions/workflows/tests.yml/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/binaryk/laravel-restify"><img src="https://poser.pugx.org/binaryk/laravel-restify/d/total.svg" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/binaryk/laravel-restify"><img src="https://poser.pugx.org/binaryk/laravel-restify/v/stable.svg" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/binaryk/laravel-restify"><img src="https://poser.pugx.org/binaryk/laravel-restify/license.svg" alt="License"></a>
</p>
# Unified Laravel API Layer for Humans and AI
**One Codebase. REST for Humans, MCP for AI Agents.**
Laravel Restify turns your Eloquent models into both JSON:API endpoints and MCP servers -- automatically. Build once, and instantly serve APIs that work seamlessly for developers, apps, and AI agents.
## 🚀 The Power of One Codebase
Traditional API development requires separate implementations for different consumers. Laravel Restify changes that:
- **👥 Humans** get full-featured JSON:API endpoints
- **🤖 AI Agents** get structured MCP (Model Context Protocol) servers
- **🔒 Same Rules** - All authentication, authorization, and policies apply to both
- **📝 One Definition** - Write your repository once, serve everywhere
## Key Features
- **JSON:API Endpoints** - Full [JSON:API](https://jsonapi.org) specification compliance
- **MCP Server Generation** - Automatic AI agent interfaces with tool definitions
- **Unified Authorization** - Laravel policies protect both human and AI access
- **Search & Filtering** - Powerful query capabilities for all consumers
- **Authentication** - Laravel Sanctum integration for secure access
- **GraphQL Support** - Auto-generated GraphQL schemas
- **Field Validation** - Consistent validation rules across all interfaces
## Installation
```bash
composer require binaryk/laravel-restify
```
## Quick Start
**1. Setup the package:**
```bash
php artisan restify:setup
```
**2. Create your first repository:**
```bash
php artisan restify:repository PostRepository --all
```
**3. Enable MCP for AI agents (optional):**
Add to your `config/ai.php`:
```php
use Binaryk\LaravelRestify\MCP\RestifyServer;
use Laravel\Mcp\Facades\Mcp;
Mcp::web('restify', RestifyServer::class)
->middleware(['auth:sanctum'])
->name('mcp.restify');
```
**That's it!** Your API now serves both:
**For Humans (JSON:API):**
```bash
GET /api/restify/posts
POST /api/restify/posts
PUT /api/restify/posts/1
DELETE /api/restify/posts/1
```
**For AI Agents (MCP):**
```bash
GET /mcp/restify # Tool definitions and capabilities
```
## Example Repository
```php
use Binaryk\LaravelRestify\Http\Requests\RestifyRequest;
use Binaryk\LaravelRestify\Repositories\Repository;
use Binaryk\LaravelRestify\Attributes\Model;
#[Model(Post::class)]
class PostRepository extends Repository
{
public function fields(RestifyRequest $request): array
{
return [
field('title')->rules('required', 'string', 'max:255'),
textarea('content')->rules('required'),
field('author')->readonly(),
datetime('published_at')->nullable(),
];
}
}
```
This single definition automatically provides:
- ✅ JSON:API CRUD endpoints with validation
- ✅ MCP tools for AI agents with the same validation
- ✅ Authorization policies applied to both interfaces
- ✅ Search and filtering capabilities for all consumers
## One Codebase, Two Outputs
Here's what you get from one repository definition:
### For Humans (JSON:API Response)
```bash
GET /api/restify/posts
```
```json
{
"data": [
{
"id": "1",
"type": "posts",
"attributes": {
"title": "Laravel Restify Guide",
"content": "Build APIs fast...",
"publisExcerpt of 7,494 characters
Read on GitHubLupacescu Eduard · @BinarCode
988
33
13
9
6
6
5
4
3
2
2
2
2
2
1
1
1
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:7413d1693e63c32d, topic:mcp, topic:mcp-client