PHPackages                             nette/mcp-inspector - 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. nette/mcp-inspector

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

nette/mcp-inspector
===================

🔭 MCP server for Nette application introspection

4559↓38.5%1[1 PRs](https://github.com/nette/mcp-inspector/pulls)PHPCI failing

Since Feb 25Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/nette/mcp-inspector)[ Packagist](https://packagist.org/packages/nette/mcp-inspector)[ RSS](/packages/nette-mcp-inspector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nette MCP Inspector
===================

[](#nette-mcp-inspector)

MCP (Model Context Protocol) server for Nette application introspection. Allows AI assistants to inspect your Nette application's DI container, database schema, routing, and more.

[![image](https://private-user-images.githubusercontent.com/194960/531792349-35a314bb-065b-486f-8e58-972bdb45516c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ3MzUwOTEsIm5iZiI6MTc3NDczNDc5MSwicGF0aCI6Ii8xOTQ5NjAvNTMxNzkyMzQ5LTM1YTMxNGJiLTA2NWItNDg2Zi04ZTU4LTk3MmJkYjQ1NTE2Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyOFQyMTUzMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03M2FlMzQ2ODc5OWE0MzZiZjlmMzBmZGJlM2RkOGZjNDI2ZDlmNWVjOTdiNWYzMjQ2NjAyMmI1ZmIwMjI2ODZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.BF5KnPGhVkuSU9RzRw7Pf1rdo33rs0tOGy_q9etBsek)](https://private-user-images.githubusercontent.com/194960/531792349-35a314bb-065b-486f-8e58-972bdb45516c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ3MzUwOTEsIm5iZiI6MTc3NDczNDc5MSwicGF0aCI6Ii8xOTQ5NjAvNTMxNzkyMzQ5LTM1YTMxNGJiLTA2NWItNDg2Zi04ZTU4LTk3MmJkYjQ1NTE2Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyOFQyMTUzMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03M2FlMzQ2ODc5OWE0MzZiZjlmMzBmZGJlM2RkOGZjNDI2ZDlmNWVjOTdiNWYzMjQ2NjAyMmI1ZmIwMjI2ODZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.BF5KnPGhVkuSU9RzRw7Pf1rdo33rs0tOGy_q9etBsek)Installation
------------

[](#installation)

With [Claude Code](https://claude.com/product/claude-code) and the [Nette plugin](https://github.com/nette/claude-code):

```
/install-mcp-inspector

```

Or manually:

```
composer require nette/mcp-inspector
```

After installation, restart Claude Code session to activate the MCP server.

Available Tools
---------------

[](#available-tools)

### DI Container

[](#di-container)

ToolDescription`di_get_services`List all registered services with types and autowiring info`di_get_service`Get details of a specific service (factory, setup calls, tags)### Database

[](#database)

ToolDescription`db_get_tables`List all database tables`db_get_columns`Get columns of a specific table (types, nullable, primary key, foreign keys)`db_get_relationships`Get foreign key relationships between all tables (belongsTo, hasMany)### Router

[](#router)

ToolDescription`router_get_routes`List all registered routes with masks and defaults`router_match_url`Match URL to presenter/action (e.g., "/article/123")`router_generate_url`Generate URL for presenter/action (e.g., "Article:show")Configuration
-------------

[](#configuration)

Create `mcp-config.neon` in your project root (optional):

```
# Path to Bootstrap file (defaults to app/Bootstrap.php)
bootstrap: app/Bootstrap.php

# Bootstrap class name (defaults to App\Bootstrap)
bootstrapClass: App\Bootstrap

# Custom toolkits
toolkits:
    - App\Mcp\MyCustomToolkit
```

Creating Custom Toolkits
------------------------

[](#creating-custom-toolkits)

```
use Mcp\Capability\Attribute\McpTool;
use Nette\McpInspector\Toolkit;
use Nette\McpInspector\Bridge\BootstrapBridge;

class MyToolkit implements Toolkit
{
    public function __construct(
        private BootstrapBridge $bridge,
    ) {}

    /**
     * Tool description from PHPDoc.
     * @param string $param Parameter description
     */
    #[McpTool(name: 'my_tool')]
    public function myMethod(string $param): array
    {
        return ['result' => 'data'];
    }
}
```

Register in `mcp-config.neon`:

```
toolkits:
    - App\Mcp\MyToolkit
```

Standalone Usage
----------------

[](#standalone-usage)

### CLI Mode

[](#cli-mode)

```
php vendor/bin/mcp-inspector
```

### HTTP Mode

[](#http-mode)

Copy `www/mcp-inspector.php` to your web root for HTTP-based MCP access.

### Manual MCP Configuration

[](#manual-mcp-configuration)

If not using the Nette plugin, add to your project's `.mcp.json`:

```
{
    "mcpServers": {
        "nette-inspector": {
            "command": "php",
            "args": ["vendor/bin/mcp-inspector"]
        }
    }
}
```

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

[](#requirements)

- PHP 8.2+
- Nette Framework 3.2+

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance56

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity12

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/17f266513a3ca97500ec3d85d562b9279c7a6346358fe2b8d90390ece717a027?d=identicon)[david@grudl.com](/maintainers/david@grudl.com)

---

Top Contributors

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

---

Tags

aidependency-injectiondiintrospectionllmmcpmodel-context-protocol

### Embed Badge

![Health badge](/badges/nette-mcp-inspector/health.svg)

```
[![Health](https://phpackages.com/badges/nette-mcp-inspector/health.svg)](https://phpackages.com/packages/nette-mcp-inspector)
```

###  Alternatives

[suncat/mobile-detect-bundle

Symfony2/3/4 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.

4035.3M7](/packages/suncat-mobile-detect-bundle)[snowdog/frontools

Set of front-end tools for Magento 2, based on Gulp.js

4241.3M1](/packages/snowdog-frontools)[spatie/laravel-dashboard

A dashboard for Laravel

568156.1k94](/packages/spatie-laravel-dashboard)[brick/schema

Schema.org library for PHP

5163.7k1](/packages/brick-schema)[ibericode/vat-bundle

Bundle for using ibericode/vat in a Symfony environment

21254.5k](/packages/ibericode-vat-bundle)[sylius/taxonomy

Taxonomies - categorization of domain models in PHP projects.

14435.6k10](/packages/sylius-taxonomy)

PHPackages © 2026

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