laravel-mcp

Define MCP servers, tools, resources, and prompts in Laravel applications.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/garethdaine/agent --skill laravel-mcp-garethdaine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-mcp
Source: https://github.com/garethdaine/agent/tree/main/.cursor/skills/laravel-mcp
Command: npx skills add https://github.com/garethdaine/agent --skill laravel-mcp-garethdaine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the integration of AI clients with Laravel applications by providing a structured protocol (MCP) for defining servers, tools, resources, and prompts.

Core Features & Use Cases

  • AI-Native Laravel: Expose your Laravel application's functionality and data to AI models.
  • Tool & Resource Exposure: Define tools for actions and resources for data access.
  • Use Case: Imagine you want an AI to generate a report based on user data in your Laravel app. This Skill allows you to define a tool that fetches the data and a prompt to guide the AI's report generation.

Quick Start

Use the laravel-mcp skill to define a new WeatherServer in your Laravel application.

Frequently Asked Questions about laravel-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose Laravel application data to an AI model?

You expose Laravel application data to an AI model by using the Model Context Protocol to define resources for data access and tools for specific actions. This provides a structured protocol for AI client interaction.

What is the Model Context Protocol in Laravel for AI integration?

The Model Context Protocol in Laravel is a structured protocol that facilitates defining servers, tools, resources, and prompts. It simplifies integrating AI clients with Laravel applications by exposing application functionality directly to AI models.

Can I use OAuth 2.1 to authenticate AI clients connecting to my Laravel app?

Yes, you can authenticate AI clients connecting to your Laravel app using OAuth 2.1 or Sanctum. This ensures secure interactions when AI clients access your defined MCP servers and tools.

How do I define a custom tool for AI interaction in a Laravel application?

You define a custom tool for AI interaction in a Laravel application by using the MCP Skill to specify tool schemas. This process supports schema validation, dependency injection, and streaming responses for robust execution.

Does the Laravel MCP integration support streaming responses for AI prompts?

Yes, the Laravel MCP integration supports streaming responses for AI prompts. This allows your defined servers to handle continuous data output effectively during dynamic AI generation tasks.

When should I use MCP instead of building a custom API for AI integration in Laravel?

You should use MCP instead of a custom API for AI integration in Laravel when you need a standardized protocol for defining tools, resources, and prompts with built-in schema validation and dependency injection.