Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

croft

MCP.Pizza Chef: ashleyhindle

Croft is an MCP server tailored for local Laravel development, providing specialized Artisan commands that equip MCP clients with tools to improve AI pair programming workflows. It focuses on local project contexts and can be extended with hosted servers for additional functionality, streamlining Laravel coding and debugging with AI assistance.

Use This MCP server To

Enable AI pair programming in local Laravel projects Provide Laravel-specific tools to MCP clients via Artisan commands Integrate Laravel project context into AI workflows Extend local Laravel development with hosted MCP server features Automate code generation and debugging in Laravel environments

README

MCP server specifically for local Laravel development

Artisan command provides tools to your MCP client to help your AI pair programmer work better. This is specifically designed to offer tools that are useful locally. Add more functionality with croft.fyi » hosted servers

Installation

Install the package via composer:

composer require ashleyhindle/croft --dev

Publish the config file with:

php artisan vendor:publish --tag="croft-config"

Add more functionality with croft.fyi » hosted servers (coming soon)

Usage

To make use of Croft you need to add it as an MCP server in your favourite tool.

The command the MCP client needs to run is ./artisan croft

Cursor (Docs)

We recommend you ship an mcp.json file with your project in .cursor/mcp.json

{
  "mcpServers": {
    "croft": {
      "command": "./artisan",
      "args": ["croft"]
    }
  }
}

Current functionality

  • Screenshot URLs
  • InertiaJS docs
  • Query database (read only, or read write)
  • Get absolute URL from relative path
  • Get current date and time
  • Read last X log entries
  • Read & filter database structure - tables, columns, indexes, foreign keys
  • List/filter routes
  • List artisan commands
  • List available config() keys (and optionally values) in dot notation
  • List available env() keys (without leaking secrets of course)

Extra functionality

Add more functionality with croft.fyi » remote MCP servers (coming soon).

Add your own tools

It's trivial to add your own tools.

Just create a class that extends our Croft\Feature\Tool\AbstractTool class, then make sure it's in your croft.php config file.

Example:

<?php

declare(strict_types=1);

namespace Croft\Tools;

use Croft\Feature\Tool\AbstractTool;
use Croft\Feature\Tool\ToolResponse;

class {{CLASSNAME}} extends AbstractTool
{
    public function __construct()
    {
        // Setup annotations according to MCP specification
        $this->setTitle('{{NAME}}')
            ->setReadOnly(true)        // Just listing commands, no modifications
            ->setDestructive(false)    // No destructive operations
            ->setIdempotent(true);     // Safe to retry
    }

    public function getName(): string
    {
        return '{{NAME}}';
    }

    public function getDescription(): string
    {
        return 'Must explain well what the tool can do so the MCP client can decide when to use it.';
    }

    /**
    * What params does the MCP client need to provide to use this tool?
    **/
    public function getInputSchema(): array
    {
        return [
            'type' => 'object',
            'properties' => (object) [
            ],
            'required' => [],
        ];
    }

    public function handle(array $arguments): ToolResponse
    {
        return ToolResponse::text("Howdy, this is the start of something great.");
    }
}

After adding a tool you'll need to restart the server, or ask the MCP client to relist the tools.

Support & Credits

This was developed by Ashley Hindle. If you like it, please star it, share it, and let me know!

croft FAQ

How do I install Croft for my Laravel project?
Install via composer with 'composer require ashleyhindle/croft --dev' and publish config using 'php artisan vendor:publish --tag="croft-config"'.
How do I connect Croft to my MCP client?
Configure your MCP client to run the command './artisan croft' as the MCP server command.
Can Croft be used outside local Laravel development?
Croft is specifically designed for local Laravel projects but can be extended with hosted servers for broader functionality.
What functionality does Croft provide to AI pair programmers?
It offers Laravel-specific tools and context to improve AI-assisted coding and debugging workflows.
Is Croft compatible with all MCP clients?
Yes, as long as the MCP client can run the './artisan croft' command to connect to the server.
Where can I find more features for Croft?
Additional features are available via the hosted servers at croft.fyi, coming soon.
Does Croft support real-time context updates?
Yes, it provides real-time Laravel project context to MCP clients to enhance AI interactions.
Is Croft open source?
Yes, Croft is open source and available on GitHub for community contributions and usage.