MCP.so
登录

Laravel MCP Server

@tadhgboyle

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

tadhgboyle

关于 Laravel MCP Server

暂无概览

Laravel MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "laravel-mcp-server-tadhgboyle": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "php",
        "/path/to/your/laravel/app/artisan",
        "mcp:stdio"
      ]
    }
  }
}

Laravel MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is laravel-mcp-server?

This package provides a Model Context Protocol (MCP) server for Laravel applications, enabling developers to create and register tools and prompts that interact with language models via the MCP protocol.

How to use laravel-mcp-server?

Install via Composer (composer require aberdeener/laravel-mcp-server), then in your AppServiceProvider register custom tools and prompts using ToolRegistry and PromptRegistry. Use the MCP inspector to test the server with npx @modelcontextprotocol/inspector php /path/to/app/artisan mcp:stdio.

Key features of laravel-mcp-server

  • Register custom tools and prompts for MCP
  • Integrates directly into Laravel service providers
  • Supports testing with the official MCP inspector
  • Composer installable with standard Laravel tooling

Use cases of laravel-mcp-server

  • Creating Laravel applications that expose custom actions to AI assistants via MCP
  • Testing MCP tool integration with the official inspector

常见问题

1

What is the MCP protocol?

The Model Context Protocol (MCP) is a standard for building tools that can interact with language models, enabling developers to create powerful applications leveraging these models.

2

How do I install laravel-mcp-server?

Install via Composer: `composer require aberdeener/laravel-mcp-server`.

3

How do I register tools and prompts?

In your `AppServiceProvider`, use `ToolRegistry` and `PromptRegistry` to register custom tool and prompt classes, as shown in the usage example.

4

How can I test the MCP server?

Use the official MCP inspector: run `npx @modelcontextprotocol/inspector php /path/to/your/laravel/app/artisan mcp:stdio`.

评论

其他 分类下的更多 MCP 服务器