P
Php MCP
by @zengliwei
PHP MCP server + client through STDIO for Windows.
Created 1/27/2026
Updated about 19 hours 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)
Quick Setup
Installation guide for this server
Installation Command (package not published)
git clone https://github.com/zengliwei/php-mcp
Manual Installation: Please check the README for detailed setup instructions and any additional dependencies required.
Cursor configuration (mcp.json)
{
"mcpServers": {
"zengliwei-php-mcp": {
"command": "git",
"args": [
"clone",
"https://github.com/zengliwei/php-mcp"
]
}
}
}