Laravel Codebase MCP Server

Laravel Codebase MCP Server

laravel-codebase-mcp•bycapevace

A Laravel package implementing an MCP server that lets AI agents introspect a Laravel codebase for structured information about views, routes, classes and models.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Lets AI query views, routes, classes and models without reading through all of the code.
  • •Supports wildcard matching for views, routes, classes and models.
  • •Can query for things from Laravel packages and gives AI overviews of the data model and its relationships.
  • •Provides filters for views, routes, classes and models including names, paths, middleware, relationships, casts and fillable fields.

BEST FOR

  • •Developers using AI coding tools like Aider, Cursor, Windsurf or Claude Code on Laravel projects.
  • •Large Laravel codebases where searching through code is less practical.
  • •Tasks such as refactoring views, finding routes using a controller, or checking route middleware.

ABOUT LARAVEL-CODEBASE-MCP

Laravel Codebase MCP Server is cataloged as an MCP server attributed to capevace. A Laravel package implementing an MCP server that lets AI agents introspect a Laravel codebase for structured information about views, routes, classes and models. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Laravel Codebase MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this package work with any MCP-compatible AI agent?

Yes, it supports any AI agent implementing the MCP protocol.

How does laravel-codebase-mcp relate to the laravel-introspect package?

The MCP server uses the laravel-introspect package to introspect the codebase and get structured information.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0d622295c819 · 采集于 2026-11-13 13:24:21 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Development Tests Status Latest Version GitHub Release Date

MCP Server for Laravel Codebase Intelligence and Introspection

For AIs to make sense of your codebase, they need to be able to know what's in it. While vector search is a powerful tool for searching through code, it uses a lot of tokens and doesn't even give you the full picture of your codebase for things like views or routes. This package implements a Model Context Protocol (MCP) server for the mateffy/laravel-introspect package, which allows you to introspect your codebase and get structured information about it.

  • 🔍 Let AI query views, routes, classes and models without needing to read through all of the code
  • 🔍 Can even use wildcards (*) to match multiple views, routes, classes and models
  • 🔍 Supports querying for things from Laravel packages, which most file searchers can't do
  • 🪄 Gives your AI quick overviews of your datamodel and its relationships
  • 🤖 Supports any AI agent implementing the MCP protocol

QueryAvailable Filters
Viewsname, path, used by view, uses view, extends
Routesname, URI, controller + fn, methods, middleware
Classesname / namespace, extends parent, implements interfaces, uses traits
⤷ Models... relationships, properties, casts, fillable, hidden, read/writeable
⤷ Commands... signature, description (coming soon)

Name and a few other queries even support wildcard queries (e.g. components.*.paragraph)


Who is this for?

If you use AI tools like Aider, Cursor, Windsurf or Claude Code to help you build your app, this package is for you. Simply configure the MCP server in your agent and it can automatically query your codebase for views, routes, classes and models.

This is especially useful for large codebases where just searching through the code is less practical.

Example tasks

  • Give your AI an overview of your datamodel and its relationships
  • Refactoring views and making sure it's not used anywhere else
  • Finding all routes that use a specific controller
  • Finding models that use a specific trait or interface
  • Making sure all routes are using the correct middleware

laravel-codebase-mcp vs. laravel-introspect

The MCP server uses the laravel-introspect package to introspect your codebase and get structured information about it. If you want to write tests or run the same queries multiple times, you can also just use the package directly.


Installation

Install the package via composer:

composer require mateffy/laravel-codebase-mcp --dev

[!NOTE]

At the moment, there is a dependency issue with php-mcp/server (#23) and ReactPHP (#542). You may temporarily need to use these patched forks if you run into issues when installing laravel-codebase-mcp by adding the following to your composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/leantime/php-mcp-server.git"
    },
    {
      "type": "vcs",
      "url": "https://github.com/Leantime/reactphp-http.git"
    }
  ]
}

And then add it to your AI agent's MCP configuration:

{
  "mcpServers": {
    "laravel-introspect": {
      "command": "php",
      "args": [
        "/path/to/your/codebase/artisan",
        "introspect:mcp"
      ]
    }
  }
}

[!IMPORTANT]
The MCP server is still in beta, there will probably be bugs!


Available queries

If you want to see all available queries, please check the laravel-introspect package documentation.


Acknowledgements

The MCP server uses the php-mcp/server package to implement the MCP protocol.


License

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

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Laravel Codebase MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/laravel-codebase-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools