tadhgboyle
MCP Servertadhgboylepublic

laravel mcp server

为 Laravel 应用提供模型上下文协议 (MCP) 服务,支持工具和提示注册。

Repository Info

0
Stars
0
Forks
0
Watchers
1
Issues
PHP
Language
MIT License
License

About This Server

为 Laravel 应用提供模型上下文协议 (MCP) 服务,支持工具和提示注册。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

laravel-mcp-server

Latest Version on Packagist Total Downloads

This package provides a Model Context Protocol (MCP) server for Laravel applications. It allows you to create and register tools and prompts that can be used in conjunction with the MCP protocol.

The MCP protocol is a standard for building tools that can interact with language models, enabling developers to create powerful applications that leverage the capabilities of these models.

Read more about the MCP protocol https://modelcontextprotocol.io.

Installation

You can install the package via composer:

composer require aberdeener/laravel-mcp-server

Usage

// Within your AppServiceProvider.php

use Aberdeener\LaravelMcpServer\Protocol\Tools\ToolRegistry;
use Aberdeener\LaravelMcpServer\Protocol\Prompts\PromptRegistry;

public function boot(): void
{
    // ...

    app(ToolRegistry::class)->registerTool(new GetWeatherTool);
    app(PromptRegistry::class)->registerPrompt(new ReviewPhpCode);
}

Experiment with the official MCP inspector:

npx @modelcontextprotocol/inspector php /path/to/your/laravel/app/artisan mcp:stdio

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

  • tadhgboyle
  • All Contributors

License

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

Quick Start

1

Clone the repository

git clone https://github.com/tadhgboyle/laravel-mcp-server
2

Install dependencies

cd laravel-mcp-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownertadhgboyle
Repolaravel-mcp-server
LanguagePHP
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation