PHPackages                             alengo/sulu-mcp-server-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. [API Development](/categories/api)
4. /
5. alengo/sulu-mcp-server-bundle

ActiveSymfony-bundle[API Development](/categories/api)

alengo/sulu-mcp-server-bundle
=============================

Read-only HTTP API exposing local Sulu template XML files (pages, articles, blocks, snippets, properties) for use by MCP servers.

3.0.1(1mo ago)028MITPHPPHP ^8.2

Since May 12Pushed 1mo agoCompare

[ Source](https://github.com/alengodev/SuluMcpServerBundle)[ Packagist](https://packagist.org/packages/alengo/sulu-mcp-server-bundle)[ Docs](https://github.com/alengodev/SuluMcpServerBundle)[ RSS](/packages/alengo-sulu-mcp-server-bundle/feed)WikiDiscussions 3.x Synced 3w ago

READMEChangelog (3)Dependencies (12)Versions (6)Used By (0)

SuluMcpServerBundle
===================

[](#sulumcpserverbundle)

Read-only HTTP API exposing local Sulu template XML files (pages, articles, blocks, snippets, properties) for use by an MCP (Model Context Protocol) server.

What it does
------------

[](#what-it-does)

Provides two authenticated endpoints mounted under the project's admin API prefix (typically `/admin/api`):

MethodPathReturns`GET``/admin/api/mcp/templates/{type}`JSON list of template names available for a type`GET``/admin/api/mcp/templates/{type}/{name}`Raw XML body of a single templateAuth is handled entirely by the Sulu admin firewall: the endpoints live under `/admin/api/*`, so the standard admin firewall (`^/admin`) applies. A request without a valid admin session (cookies) is rejected with `401` before reaching the controller.

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

[](#installation)

```
composer require alengo/sulu-mcp-server-bundle
```

Register the bundle in `config/bundles.php`:

```
Alengo\SuluMcpServerBundle\McpServerBundle::class => ['all' => true],
```

Import the routing in `config/routes/alengo_mcp_server.yaml`:

```
alengo_mcp_server:
    resource: "@McpServerBundle/Resources/config/routing_admin_api.yaml"
    prefix: /admin/api
```

The MCP client must send the admin session cookies obtained after authenticating against `/admin/login` with a Sulu admin user. The standard Sulu admin firewall (`^/admin`) protects the path; no `PUBLIC_ACCESS` exception is required in `security.yaml`.

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

[](#configuration)

The bundle ships with sensible defaults — no configuration file is required.

To override defaults, create `config/packages/alengo_mcp_server.yaml`:

```
alengo_mcp_server:
    # Template type => directory mapping (paths relative to %kernel.project_dir%).
    template_dirs:
        page:     config/templates/pages
        article:  config/templates/articles
        block:    config/templates/blocks/content
        snippet:  config/templates/snippets
        property: config/templates/properties
```

You can add additional template types by extending `template_dirs` — the controller will resolve any configured type.

Security model
--------------

[](#security-model)

- **Admin firewall.** The path lives under `/admin/api/*`, so the standard Sulu admin firewall (`^/admin`) applies. Requests without a valid admin session are rejected with `401` and never reach the controller.
- **Read-only.** No write endpoints.

Requirements
------------

[](#requirements)

PackageVersionPHP`^8.2`Symfony`^7.0`License
-------

[](#license)

MIT — [alengo.dev](https://alengo.dev)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Every ~7 days

Total

5

Last Release

43d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a3bea97975bdeddcfa5b76c222740e703e4ff5f9bbf5f6d5d75e8827e0a48ac?d=identicon)[alengodev](/maintainers/alengodev)

---

Top Contributors

[![hual7](https://avatars.githubusercontent.com/u/89628357?v=4)](https://github.com/hual7 "hual7 (5 commits)")

### Embed Badge

![Health badge](/badges/alengo-sulu-mcp-server-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

56146.1k2](/packages/sulu-headless-bundle)

PHPackages © 2026

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