laravel/mcp
A PHP package that exposes Laravel application capabilities over MCP
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Laravel MCP is a PHP package for building a Model Context Protocol server around a Laravel application. It connects AI clients to capabilities the application chooses to expose. Laravel remains the home of the business logic; the package provides the MCP-facing integration rather than a separate model runtime or a ready-made catalog of business tools.
The tree has a Composer manifest and separate src/, config/, routes/, resources/, and stubs/ directories, with tests/, workbench/, and testbench.yaml for development and testing. In v1.2.1, tests resolve Tool classes through the Laravel container. That confirms container integration in tests, but does not establish the production dispatch path, exact entrypoint, or dependency version ranges.
Key Capabilities & Differentiators
The package's core capability is exposing application functionality to AI clients over MCP. v1.2.0 adds JSON assertions for structured content, and v1.2.1 adds conformance fixtures, pins the conformance suite version, and fixes failures in quick server and client conformance runs. These are useful signals for regression testing, not a guarantee that every MCP client or protocol revision is supported.
The v1.3.0 changes confirm support for stdio and an OAuth authorization flow: the release addresses a Windows stdio idle-exit issue, supports resolving the resource metadata URL in an OAuth challenge, and makes the authorization view translatable. Exact HTTP transport modes, coverage across MCP primitives, and compatibility with specific clients or model families are not established. Test discovery, authorization, and tool invocation with the clients you plan to support.
Trade-offs & Limitations
Adding MCP inside an existing Laravel application can avoid duplicating business logic and operating a second service. A standalone MCP server is a better fit when several applications share one interface or when independent scaling, releases, or isolation matter more than in-process integration. Keeping the MCP surface with the app can also make expensive tool calls compete with ordinary application traffic, depending on how the deployment is configured.
OAuth support helps establish client access, but it does not substitute for per-operation authorization, tenant isolation, or safeguards on writes. For an initial rollout, favor a small read-only surface and review what data each operation returns before expanding it. MIT permits commercial use and self-hosting under its notice terms; neither the license nor the conformance work establishes production readiness for a particular environment.
Hardware & Deployment Guide
Plan for a PHP runtime and a compatible Laravel application, with dependencies managed through Composer. Check the selected release's manifest for exact version constraints and the official Laravel MCP documentation for transport configuration and start commands. A routes/ directory and OAuth changes are not enough to infer an HTTP transport mode, and no container image or start command is established here.
For local stdio use, test process startup, idle behavior, and reconnection with the actual host client, especially on Windows given the v1.3.0 idle-exit fix. For an OAuth-enabled deployment, verify the externally visible resource metadata URL and the full authorization flow in the target environment. Size for PHP process concurrency and tool workload rather than inference hardware; there are no measured capacity figures to use as a baseline.
src/, config/, routes/, and stubs/ sit alongside a PHP Composer manifest.Laravel teams that want to expose a defined set of existing application operations to MCP clients while keeping the business logic in the app.
You need a model runtime, have no Laravel application, or require a separately deployed MCP gateway spanning multiple services.
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mcp ★ | 887 | +5 | PHP | MIT | A PHP package that exposes Laravel application capabilities over MCP |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| skills | 338.9k | +4.6k | Shell | MIT | Composable Markdown skills that bring engineering workflows to coding agents |
| superpowers | 332.6k | +4.4k | Shell | MIT | A skills framework that gives coding agents a test-first development workflow |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/laravel/mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mcp
Where does Laravel MCP sit in an existing application?
Does it need a GPU, and how should I size the server?
Can I self-host it in a commercial product?
When should I choose a standalone MCP server instead?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy