PHP MCP Server
@php-mcp
About PHP MCP Server
Core PHP implementation for the Model Context Protocol (MCP) server
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is PHP MCP Server?
The PHP MCP Server is a comprehensive PHP SDK for building Model Context Protocol (MCP) servers. It enables you to expose PHP application functionality as standardized MCP Tools, Resources, and Prompts, allowing AI assistants like Claude or ChatGPT to interact with your backend.
How to use PHP MCP Server?
Install via Composer (composer require php-mcp/server). Define MCP elements using PHP 8 attributes (#[McpTool], #[McpResource], etc.), then create a server script with StdioServerTransport and configure your MCP client to launch it. For Laravel integration, consider php-mcp/laravel. The server also supports HTTP and SSE transports.
Key features of PHP MCP Server
- Modern architecture with PHP 8.1+ and PSR standards
- Multiple transports: stdio, HTTP+SSE, streamable HTTP
- Attribute-based element definition using PHP 8 attributes
- Automatic JSON schema generation from method signatures
- Advanced session management with multiple backends
- ReactPHP-based event-driven, non‑blocking operations
Use cases of PHP MCP Server
- Exposing calculator functions as tools for AI assistants
- Providing configuration data as static resources
- Generating dynamic user profiles via resource templates
- Creating conversation starters with prompt templates
- Integrating PHP backend with AI‑powered IDEs like Cursor
FAQ from PHP MCP Server
What PHP version is required?
PHP 8.1 or higher is required.
What MCP protocol version does it support?
It supports the 2025‑03‑26 version of the Model Context Protocol.
What transport options are available?
Stdio, HTTP + Server-Sent Events, and streamable HTTP with resumability.
Does it have Laravel integration?
Yes, a dedicated Laravel package (php-mcp/laravel) is available for enhanced framework integration.
How are server capabilities configured?
Using the fluent `Server::
More Other MCP servers
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Comments