Get the FREE Ultimate OpenClaw Setup Guide →

mcp-bundle

Symfony integration bundle for Model Context Protocol (via official mcp/sdk)

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. Install the MCP Bundle via Composer: composer require symfony/mcp-bundle
  2. Enable and configure the bundle in your Symfony app (config/bundles.php and necessary config files) according to the documentation.
  3. 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
  4. 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

Sponsor this space

Reach thousands of developers