PHPackages                             php-llm/mcp-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. php-llm/mcp-bundle

Abandoned → [symfony/mcp-bundle](/?search=symfony%2Fmcp-bundle)ArchivedSymfony-bundle[Framework](/categories/framework)

php-llm/mcp-bundle
==================

Symfony integration bundle for Model Context Protocol (via php-llm/mcp-sdk)

0.1(11mo ago)142252[2 issues](https://github.com/php-llm/mcp-bundle/issues)MITPHP

Since Jun 13Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/php-llm/mcp-bundle)[ Packagist](https://packagist.org/packages/php-llm/mcp-bundle)[ RSS](/packages/php-llm-mcp-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (4)Used By (0)

MCP Bundle \[WIP\]
==================

[](#mcp-bundle-wip)

Important

**PHP LLM becomes Symfony AI** - this project moved to [github.com/symfony/ai](https://github.com/symfony/ai). Please use the new repository for all future development, issues, and contributions. Thanks for your contributions - we hope to see you at Symfony AI!

Symfony integration bundle for [Model Context Protocol](https://modelcontextprotocol.io/) using the unofficial PHP SDK [php-llm/mcp-sdk](https://github.com/php-llm/mcp-sdk) library.

**Currently only supports tools as server via Server-Sent Events (SSE) and STDIO.**

Installation
------------

[](#installation)

```
composer require php-llm/mcp-bundle
```

Usage
-----

[](#usage)

At first, you need to decide whether your application should act as a MCP server or client. Both can be configured in the `mcp` section of your `config/packages/mcp.yaml` file.

### Act as Server

[](#act-as-server)

**Currently only supports tools.**

To use your application as an MCP server, exposing tools to clients like [Claude Desktop](https://claude.ai/download), you need to configure in the `client_transports` section the transports you want to expose to clients. You can use either STDIO or SSE.

### Act as Client

[](#act-as-client)

**Not implemented yet.**

To use your application as an MCP client, integrating other MCP servers, you need to configure the `servers` you want to connect to. You can use either STDIO or Server-Sent Events (SSE) as transport methods.

You can find a list of example Servers in the [MCP Server List](https://modelcontextprotocol.io/examples).

Tools of those servers are available in your [LLM Chain Bundle](https://github.com/php-llm/llm-chain-bundle)configuration and usable in your chains.

Configuration
-------------

[](#configuration)

```
mcp:
    app: 'app' # Application name to be exposed to clients
    version: '1.0.0' # Application version to be exposed to clients

    # Configure this application to act as an MCP server
    # Currently exposes tools registered in LLM Chain
    client_transports:
        stdio: true # Enable STDIO via command
        sse: true # Enable Server-Sent Event via controller

    # Configure MCP servers to be used by this application
    # Not implemented yet
    servers:
        name:
            transport: 'stdio' # Transport method to use, either 'stdio' or 'sse'
            stdio:
                command: 'php /path/bin/console mcp' # Command to execute to start the client
                arguments: [] # Arguments to pass to the command
            sse:
                url: 'http://localhost:8000/sse' # URL to SSE endpoint of MCP server
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance51

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e644c6c1e90b7d997edd1c25da41c48a76d89b7449fb5788214b341e2cd1a019?d=identicon)[chr-hertel](/maintainers/chr-hertel)

---

Top Contributors

[![chr-hertel](https://avatars.githubusercontent.com/u/2852185?v=4)](https://github.com/chr-hertel "chr-hertel (6 commits)")

###  Code Quality

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/php-llm-mcp-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/php-llm-mcp-bundle/health.svg)](https://phpackages.com/packages/php-llm-mcp-bundle)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
