MCP.so
Sign In
Servers

Laravel MCP Server (bramato/laravel-mcp-server)

@bramato

Overview

What is Laravel MCP Server (bramato/laravel-mcp-server)?

A base Laravel package for building Model Context Protocol (MCP) servers. It provides infrastructure to handle MCP requests over Stdio, HTTP, and WebSocket (via Reverb) transports, using sajya/server for JSON‑RPC 2.0 parsing.

How to use Laravel MCP Server (bramato/laravel-mcp-server)?

Install via Composer (composer require bramato/laravel-mcp-server), publish the config (php artisan vendor:publish ...), implement ResourceInterface and ToolInterface classes, register them in config/mcp.php, then run php artisan mcp:server --transport=stdio (or use HTTP/WebSocket as configured).

Key features of Laravel MCP Server (bramato/laravel-mcp-server)

  • Multiple transport support (Stdio, HTTP, WebSocket via Reverb)
  • Built on sajya/server for JSON‑RPC 2.0
  • Interfaces for custom Resources and Tools
  • Configurable authentication (none or token)
  • Tool whitelisting in configuration
  • Logging channel and level configuration

Use cases of Laravel MCP Server (bramato/laravel-mcp-server)

  • Expose authenticated user profile as an MCP resource
  • Create a tool that sends notifications to users
  • Expose any Laravel application functionality via custom tools
  • Build AI‑accessible endpoints backed by Laravel logic

FAQ from Lar

More from Other