server

server

174

PHP MCP Server provides a server-side implementation of the Model Context Protocol for PHP applications, enabling interaction with AI assistants. It simplifies the creation of MCP servers using PHP Attributes, metadata inference, and supports both stdio and http+sse transports.

What PHP version is required for PHP MCP Server?

PHP MCP Server requires PHP version 8.1 or higher.

Can PHP MCP Server be used with Laravel?

Yes, while it works standalone, you can use php-mcp/laravel for enhanced integration with Laravel.

How does PHP MCP Server handle caching?

It optionally caches discovered element definitions to speed up startup, while always preserving manually registered elements.

What transports does PHP MCP Server support?

PHP MCP Server supports stdio and http+sse transports.

Is PSR compliance supported?

Yes, PHP MCP Server integrates with PSR-3 (Logging), PSR-11 (Container), and PSR-16 (SimpleCache).