P
Php MCP
作者 @zengliwei
PHP MCP server + client through STDIO for Windows.
创建于 1/27/2026
更新于 29 days ago
README
Repository documentation and setup instructions
PHP MCP
PHP MCP server + client through STDIO for Windows.
Features
- Runnable on Windows
- One click for both server and client
Requirements
- PHP >= 8.1
- Composer
- Ability to execute the server command.
Installation
composer install
Configuration
- Edit the
client.phpfile and set thecommendvariable ofServerConfigas your path. - Define your own MCP elements through appending class files under
mcp-serverdirectory ( see Define Your MCP Elements).
Usage
Double click run.cmd to start the server.
Libraries
- MCP PHP SDK (https://github.com/modelcontextprotocol/php-sdk)
- PHP MCP Client (https://github.com/php-mcp/client)
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/zengliwei/php-mcp
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"zengliwei-php-mcp": {
"command": "git",
"args": [
"clone",
"https://github.com/zengliwei/php-mcp"
]
}
}
}