MCP.so
登录

Laravel Loop MCP Server

@kirschbaum-development

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

kirschbaum-development

关于 Laravel Loop MCP Server

Laravel Loop is a powerful Model Context Protocol (MCP) server designed specifically for Laravel applications. It connects your Laravel application with AI assistants using the MCP protocol.

Laravel Loop MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Laravel Loop MCP Server 工具

工具列表暂未提供

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

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Laravel Loop?

Laravel Loop is a Model Context Protocol (MCP) server built specifically for Laravel applications. It connects Laravel applications with AI assistants (e.g. Claude Code, Cursor, Windsurf) by exposing tools via the MCP protocol, using Prism behind the scenes to build the tools.

How to use Laravel Loop?

Install via Composer (composer require kirschbaum-development/laravel-loop), publish the config (php artisan vendor:publish --tag="loop-config"), and register tools in a service provider (e.g. Loop::toolkit(...)). Then connect an MCP client using STDIO (php artisan loop:mcp:start) or Streamable HTTP/SSE, optionally authenticating with middleware like Sanctum.

Key features of Laravel Loop

  • Pre-built toolkits for Laravel models, factories, and Stripe
  • Create custom tools with string, number, and other parameters
  • Supports STDIO, Streamable HTTP, and HTTP+SSE transports
  • Integration with Claude Code, Cursor, Windsurf, and more
  • Built-in artisan commands for MCP configuration and testing
  • Middleware support to secure HTTP endpoints

Use cases of Laravel Loop

  • Connect an AI assistant to your Laravel app to query model data
  • Generate test data on demand via Laravel factories from an MCP client
  • Build custom AI-powered tools that interact with your application logic
  • Expose a Stripe tool to manage payments through natural language commands
  • Use Streamable HTTP to avoid running PHP processes for each MCP request

常见问题

1

What transports does Laravel Loop support?

It supports STDIO, Streamable HTTP, and the deprecated HTTP+SSE transport. STDIO is the easiest setup; Streamable HTTP is newer and not yet supported by all MCP clients.

2

How do I connect Laravel Loop to Claude Code?

Use `claude mcp add laravel-loop-mcp php /full/path/to/artisan loop:mcp:start` (with optional `--user-id`, `--user-model`, and `--debug` flags).

3

How can I secure Laravel Loop’s HTTP endpoints?

Configure the `streamable_http.middleware` or `sse.middleware` config option. Sanctum is the default middleware recommended for authentication.

4

Why do I get “Connection failed: MCP error -32000: Connection closed”?

This usually indicates an application error. Check your Laravel logs for more details.

5

What does “Error: spawn php ENOENT” mean?

The `php` binary is not in the PATH used by the MCP client. Either add PHP to your shell configuration or use the full path to the PHP binary (find it with `which php`).

评论

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