The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"php-sdk": {
"command": "npx",
"args": [
"-y",
"modelcontextprotocol/php-sdk"
]
}
}
}
Run in terminal:
claude mcp add php-sdk npx -y modelcontextprotocol/php-sdk
Add to .cursor/mcp.json:
{
"mcpServers": {
"php-sdk": {
"command": "npx",
"args": [
"-y",
"modelcontextprotocol/php-sdk"
]
}
}
}