PHPackages                             armandsar/laravel-mcp-documentation-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. armandsar/laravel-mcp-documentation-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

armandsar/laravel-mcp-documentation-generator
=============================================

Generate rich HTML documentation for Laravel MCP web servers.

0.1.3(1mo ago)0105↓44.4%[1 PRs](https://github.com/armandsar/laravel-mcp-documentation-generator/pulls)MITPHPPHP ^8.2CI passing

Since May 28Pushed 1mo agoCompare

[ Source](https://github.com/armandsar/laravel-mcp-documentation-generator)[ Packagist](https://packagist.org/packages/armandsar/laravel-mcp-documentation-generator)[ Docs](https://github.com/armandsar/laravel-mcp-documentation-generator)[ GitHub Sponsors](https://github.com/armandsar)[ RSS](/packages/armandsar-laravel-mcp-documentation-generator/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (15)Versions (6)Used By (0)

Laravel MCP Documentation Generator (BETA)
==========================================

[](#laravel-mcp-documentation-generator-beta)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b011391b5a4a3d23c3a11b3c995ca20f3dd9cab0f82955f323d8c2bca553e391/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726d616e647361722f6c61726176656c2d6d63702d646f63756d656e746174696f6e2d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/armandsar/laravel-mcp-documentation-generator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ec89cdcf3e51d21daeda646940106c0d7710bc4b235c515bdd0c5070d6281883/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726d616e647361722f6c61726176656c2d6d63702d646f63756d656e746174696f6e2d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/armandsar/laravel-mcp-documentation-generator/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6abe45f030648a2dd64581577eb33004f705717f114a91abfc86edbfef63d90e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61726d616e647361722f6c61726176656c2d6d63702d646f63756d656e746174696f6e2d67656e657261746f722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/armandsar/laravel-mcp-documentation-generator/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)

Generate HTML documentation for Laravel MCP servers.

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

[](#installation)

You can install the package via composer:

```
composer require armandsar/laravel-mcp-documentation-generator
```

You can publish the config file with:

```
php artisan vendor:publish --tag="mcp-documentation-generator-config"
```

Contents of the published config file:

```
return [
    'enabled' => env('MCP_DOCS_ENABLED', false),

    'url' => '/docs/mcp',

    'middleware' => [],

    'servers' => [],
];
```

Usage
-----

[](#usage)

Register one or more Laravel MCP web servers in your application:

```
use App\Mcp\CompanyMcpServer;
use App\Mcp\OtherMcpServer;
use Laravel\Mcp\Facades\Mcp;

Mcp::web('/mcp/company', CompanyMcpServer::class);
Mcp::web('/mcp/other', OtherMcpServer::class);
```

Enable the route and open `/docs/mcp`:

```
MCP_DOCS_ENABLED=true
```

The readable schema tables cover the common top-level fields, required flags, enums, arrays, and simple union types. The full raw JSON schemas are always available beside the readable tables for nested or advanced schema shapes.

To restrict the docs page to specific servers, configure `servers` with server classes. Leave it empty to include every discovered web MCP server:

```
'servers' => [
    CompanyMcpServer::class,
],
```

Keep the route disabled in environments where it should not be public, or add middleware to protect it:

```
'middleware' => ['auth'],
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Armands Leinieks](https://github.com/armandsar)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance92

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~0 days

Total

4

Last Release

57d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3834314?v=4)[Armands Leinieks](/maintainers/armandsar)[@armandsar](https://github.com/armandsar)

---

Top Contributors

[![armandsar](https://avatars.githubusercontent.com/u/3834314?v=4)](https://github.com/armandsar "armandsar (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelmcpdocumentationarmandsarlaravel-mcp-documentation-generator

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/armandsar-laravel-mcp-documentation-generator/health.svg)

```
[![Health](https://phpackages.com/badges/armandsar-laravel-mcp-documentation-generator/health.svg)](https://phpackages.com/packages/armandsar-laravel-mcp-documentation-generator)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M673](/packages/laravel-boost)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M246](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M133](/packages/roots-acorn)

PHPackages © 2026

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