PHPackages                             usecroft/croft-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. usecroft/croft-laravel

Abandoned → [usecroft/laravel](/?search=usecroft%2Flaravel)ArchivedLibrary

usecroft/croft-laravel
======================

MCP server for all of your Laravel projects - better AI pair programming

0.6.0(11mo ago)89104[6 PRs](https://github.com/usecroft/laravel/pulls)Apache-2.0PHPPHP ^8.1||^8.2

Since Apr 5Pushed 6mo ago5 watchersCompare

[ Source](https://github.com/usecroft/laravel)[ Packagist](https://packagist.org/packages/usecroft/croft-laravel)[ Docs](https://github.com/usecroft/laravel)[ RSS](/packages/usecroft-croft-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (35)Used By (0)

---

> # Croft is now [Laravel Boost](https://github.com/laravel/boost)!
>
> [](#croft-is-now-laravel-boost)
>
> Croft was built by [Ashley Hindle](https://github.com/ashleyhindle) in collaboration with [Springloaded](https://github.com/springloadedco), and would eventually become [Laravel Boost](https://github.com/laravel/boost). Croft is no longer maintained - check out [boost](https://github.com/laravel/boost) instead!

---

[![Croft Laravel](https://private-user-images.githubusercontent.com/692538/452066514-6c42134d-5236-4ae1-8c61-bce4db5d9de1.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzM4OTMyODMsIm5iZiI6MTc3Mzg5Mjk4MywicGF0aCI6Ii82OTI1MzgvNDUyMDY2NTE0LTZjNDIxMzRkLTUyMzYtNGFlMS04YzYxLWJjZTRkYjVkOWRlMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmW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tGnKDMC6zI7GQ8FjLwBDaVvuhx22p01o)

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 »](https://usecroft.com) hosted servers.

Installation
------------

[](#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 »](https://usecroft.com) hosted servers (coming soon)

Usage
-----

[](#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](https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers))

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

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

Current functionality
---------------------

[](#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 &amp; 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
-------------------

[](#extra-functionality)

Add more functionality with [usecroft.com »](https://usecroft.com) remote MCP servers (coming soon).

Add your own tools
------------------

[](#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:

```
