1. Conduid
  2. Developer Tools
  3. Laravel Restify
MCP server · Developer Tools

Laravel Restify

Laravel API for Ai Agents and humans.

84Excellent

Scored 13 hours ago · breakdown

About Laravel Restify

Laravel Restify is an MCP server published by BinarCode in the Developer Tools category: laravel API for Ai Agents and humans.

The repository has 683 stars and 65 forks, with the last commit yesterday. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/BinarCode/laravel-restify

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Laravel Restify

Powered by Claude · Grounded in docs

I know everything about Laravel Restify. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 13 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

10.4.62Release 10.4.62 · 13 Oct 2026What's Changed fix: fail closed when attach or sync runs without a parent policy, and document that custom attachers skip authorization (#809) (Arthur Kirkosa) fix: apply global scopes and soft deletes when resolving related ids on attach…
10.4.61Release 10.4.61 · 13 Oct 2026What's Changed perf: skip the discarded field pipeline on Mergeable show, and document Mergeable (#805) (Arthur Kirkosa) chore: remove the restify:stub command that cannot run on Laravel 11+, and drop doctrine/dbal (#803) (Arthur Kirkosa)…
10.4.60Release 10.4.60 · 13 Oct 2026What's Changed ci: run the project's own Pint version in the style workflow (#806) (Arthur Kirkosa) refactor: share the Route::restifyAuth() call detection between the auth commands (#804) (Arthur Kirkosa) feat: apply relatablePerPage to…
10.4.59Release 10.4.59 · 13 Oct 2026What's Changed fix: keep the index cache per guard and per repository, and stop clearCache flushing the whole store (#800) (Arthur Kirkosa)
10.4.58Release 10.4.58 · 13 Oct 2026What's Changed fix: reject an invalid token_ttl instead of issuing tokens that never expire (#798) (Arthur Kirkosa)

README

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 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

composer require binaryk/laravel-restify

Quick Start

1. Setup the package:

php artisan restify:setup

2. Create your first repository:

php artisan restify:repository PostRepository --all

3. Enable MCP for AI agents (optional):

Add to your config/ai.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):

GET /api/restify/posts
POST /api/restify/posts
PUT /api/restify/posts/1
DELETE /api/restify/posts/1

For AI Agents (MCP):

GET /mcp/restify  # Tool definitions and capabilities

Example Repository

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)

GET /api/restify/posts
{
  "data": [
    {
      "id": "1",
      "type": "posts",
      "attributes": {
        "title": "Laravel Restify Guide",
        "content": "Build APIs fast...",
        "published_at": "2024-01-15"
      }
    }
  ],
  "links": {
    "self": "/api/restify/posts",
    "next": "/api/restify/posts?page=2"
  }
}

For AI Agents (MCP Tool Definition)

GET /mcp/restify  # Tool definitions for AI agents
{
  "tools": [
    {
      "name": "posts-index-tool",
      "description": "Retrieve a paginated list of Post records from the posts repository with filtering, sorting, and search capabilities.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "number",
            "description": "Page number for pagination"
          },
          "perPage": {
            "type": "number", 
            "description": "Number of posts per page"
          },
          "search": {
            "type": "string",
            "description": "Search term to filter posts by title or content"
          },
          "sort": {
            "type": "string",
            "description": "Sorting criteria (e.g., sort=title or sort=-published_at for descending)"
          },
          "title": {
            "type": "string",
            "description": "Filter by exact match for title (e.g., title=Laravel). Accepts negation with -title=value"
          },
          "published_at": {
            "type": "string",
            "description": "Filter by publication date (e.g., published_at=2024-01-15)"
          }
        }
      }
    }
  ]
}

All generated from this simple repository:

#[Model(Post::class)]
class PostRepository extends Repository
{
    use HasMcpTools;
    
    public function fields(RestifyRequest $request): array
    {
        return [
            field('title')->required()->matchable(),
            field('content'),
            field('published_at')->rules('date')->matchable(),
        ];
    }
}

Restify Boost

Laravel Restify Boost is a development companion that provides MCP server capabilities to help you build Restify APIs faster with AI assistance.

Repository: laravel-restify-boost

Features:

  • Documentation access for AI agents
  • Repository and action generation assistance
  • Code examples and best practices
  • Integration with Claude Desktop and other AI tools

Installation:

composer require --dev binarcode/laravel-restify-boost

Templates

Need a production-ready starting point? Check out Restify Templates for complete API starter kits with authentication, permissions, and team management.

Resources

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email eduard.lupacescu@binarcode.com instead of using the issue tracker.

Credits

Built by BinarCode - makers of Routines, an AI assistant for your Mac.

License

The MIT License (MIT). Please see License File for more information.

README fetched from the repository 13 hours ago. The original is authoritative.

Questions

About Laravel Restify

How do I install Laravel Restify?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Laravel Restify safe to use with an AI agent?

Its trust score is 84 out of 100 (excellent). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Laravel Restify still maintained?

Yes — the latest release is 10.4.62 (13 Oct 2026), and the last commit was yesterday. The repository has 683 stars and 2 open issues.