mcp-bundle
Symfony integration bundle for Model Context Protocol (via official mcp/sdk)
claude mcp add --transport stdio symfony-mcp-bundle php -S 127.0.0.1:8000 -t public \ --env PHPRC="path/to/php.ini (optional)"
How to use
This MCP server is implemented as a Symfony bundle that integrates the Model Context Protocol capabilities into a Symfony application. It exposes MCP tools, prompts, and resources over HTTP transport and STDIO by leveraging the official MCP PHP SDK. To use it, add the bundle to your Symfony project and configure the endpoints as documented in the bundle docs. Once your Symfony app is running, you can interact with MCP capabilities through the exposed HTTP endpoints or by starting the STDIO session as dictated by your client workflow. The bundle is designed to be used inside an existing Symfony application rather than as a standalone server.
How to install
Prerequisites:
- PHP >= 8.0
- Composer
- A Symfony project or a PHP project that can bootstrap Symfony components
Steps:
- Install the MCP Bundle via Composer: composer require symfony/mcp-bundle
- Enable and configure the bundle in your Symfony app (config/bundles.php and necessary config files) according to the documentation.
- Run your Symfony application locally (for example, using Symfony CLI: symfony server:start) or via your preferred PHP server: php -S 127.0.0.1:8000 -t public
- Connect MCP clients to the exposed HTTP endpoints or initiate STDIO sessions as required by your integration.
Additional notes
Notes:
- This bundle is experimental and relies on the MCP PHP SDK. Resource templates are implemented but may require MCP SDK support to be fully functional.
- There is no standalone MCP server command; it runs inside a Symfony application. Use the HTTP transport endpoints or STDIO flow as provided by your integration.
- Ensure the MCP SDK PHP package is available in your project via Composer as a dependency.
- If you encounter issues, check Symfony logs and MCP SDK integration docs; the bundle may be in active development.
Related MCP Servers
laravel
A Laravel package for implementing secure Model Context Protocol servers using Streamable HTTP and SSE transport, providing real-time communication and a scalable tool system for enterprise environments.
relay
An MCP client tool for Prism
laravel-toon
TOON encoding for Laravel. Encode data for AI/LLMs with ~50% fewer tokens than JSON.
neurolink
Universal AI Development Platform with MCP server integration, multi-provider support, and professional CLI. Build, test, and deploy AI applications with multiple ai providers.
quarkus-workshop-langchain4j
Quarkus Langchain4J Workshop
mcp-sdk
Model Context Protocol SDK for Client and Server applications in PHP