Croft Laravel
A local MCP server for Laravel developers to boost productivity with artisan commands.
Croft is now Laravel Boost!
Croft was built by Ashley Hindle in collaboration with Springloaded, and would eventually become Laravel Boost. Croft is no longer maintained - check out boost instead!
Croft is an MCP server designed specifcally for Laravel developers, by Laravel developers. We wanted a plug and play solution to boosting productivity, so we built one. The php artisan croft command provides tools to your MCP client to help your AI pair programmer work better. This package is specifically designed to offer tools that are useful locally.
Add even more functionality with usecroft.com » hosted servers.
Installation
Install the package via composer:
composer require usecroft/laravel --dev
Publish the config file with:
php artisan vendor:publish --tag="croft-config"
Add to your IDE:
php artisan croft:install
Add more functionality with usecroft.com » 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
- 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 usecroft.com » 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
Croft was developed by Ashley Hindle with support from Springloaded. If you like it, please star it, share it, and let us know!
Ashley Hindle
Springloaded
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Text-To-GraphQL
MCP server for text-to-graphql, integrates with Claude Desktop and Cursor.
sep-mpc-server
A server for processing semantic embeddings, requiring external data files mounted via a Docker volume.
Second Opinion
Review commits and codebases using external LLMs like OpenAI, Google Gemini, and Mistral.
reptor-mcp
An MCP server for Reptor/SysReptor that exposes the reptor CLI tool as a programmable service, configured via environment variables.
.NET Types Explorer
Provides detailed type information from .NET projects including assembly exploration, type reflection, and NuGet integration for AI coding agents
MCP Script Runner
Execute developer-defined bash scripts in a Dockerized environment for coding agents.
FLUX Image Generator
Generate images using Black Forest Lab's FLUX model.
ailist-mcp
Search and discover Ai projects from Claude Code. Browse 1,400+ MCP servers, tools, and agents. Submit projects via your Ai agent.
@mcp-fe/react-tools
Don't let AI guess from screenshots. Give LLMs direct access to your React state, Context, and Data Grids. Features bidirectional communication via SharedWorkers & WebSockets. Docker gateway included.
JavaScript Sandbox
Provides a secure JavaScript execution environment for running code snippets.