MCP.so
登录

PHP MCP Server

@php-mcp

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

php-mcp

关于 PHP MCP Server

Core PHP implementation for the Model Context Protocol (MCP) server

PHP MCP Server 配置

暂无标准配置

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

代码仓库

PHP MCP Server 工具

工具列表暂未提供

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

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

概览

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

常见问题

1

What PHP version is required?

PHP 8.1 or higher is required.

2

What MCP protocol version does it support?

It supports the 2025‑03‑26 version of the Model Context Protocol.

3

What transport options are available?

Stdio, HTTP + Server-Sent Events, and streamable HTTP with resumability.

4

Does it have Laravel integration?

Yes, a dedicated Laravel package (`php-mcp/laravel`) is available for enhanced framework integration.

5

How are server capabilities configured?

Using the fluent `Server::

评论

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