PHP MCP Protocol Server
@Lucasdoreac
PHP MCP Protocol Server について
Servidor MCP para PHP Universal - integra PHP com o protocolo Model Context Protocol
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"php-mcp-protocol-server": {
"type": "http",
"url": "http://localhost:7654"
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is PHP MCP Protocol Server?
PHP MCP Protocol Server is a server implementation of the Model Context Protocol (MCP) for PHP, enabling integration of PHP with Anthropic’s Claude AI. It uses the official MCP SDK to provide a robust, protocol‑compliant bridge that lets Claude execute PHP code directly.
How to use PHP MCP Protocol Server?
Install globally with npm install -g php-mcp-protocol-server and start the server using php-mcp-server. Alternatively, install locally via npm, clone from GitHub, and run npm start. The server listens on port 7654 by default (override with MCP_PORT environment variable). Before using, verify the PHP environment with npm run verify. In the Claude Desktop app, configure a local MCP tool pointing to localhost:7654.
Key features of PHP MCP Protocol Server
- Direct PHP code execution from Claude AI
- Based on Anthropic’s official MCP SDK
- Proper error and exception handling
- Automatic cleanup of temporary files
- PHP environment verification support
Use cases of PHP MCP Protocol Server
- Run arbitrary PHP snippets inside Claude conversations
- Validate PHP code output without leaving the AI interface
- Explore PHP configuration and extensions via the
phpInfotool - Debug PHP scripts by observing stdout and exit codes
FAQ from PHP MCP Protocol Server
What exactly does the server allow me to do?
It exposes two MCP tools: executePhp (runs PHP code and returns output, errors, and exit code) and phpInfo (returns PHP environment details like version, extensions, and settings).
What are the runtime requirements?
Node.js v14 or higher and PHP v7.0 or higher are required. npm or yarn is needed for installation.
How do I integrate with Claude AI?
Start the server, then in Claude Desktop configure a local MCP tool to point at localhost:7654 (or the port you set). You can then ask Claude to execute PHP code.
What if the server won’t start?
Verify that PHP is installed and accessible in your system’s PATH, ensure port 7654 (or the configured port) is free, and check the server logs for detailed error messages.
Is there any authentication or transport configuration?
The README does not mention authentication or alternative transports beyond the default HTTP‑based MCP endpoint on localhost.
「その他」の他のコンテンツ

EverArt
modelcontextprotocolModel Context Protocol Servers
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Awesome-MCP-ZH
yzflyMCP 资源精选, MCP指南,Claude MCP,MCP Servers, MCP Clients
コメント