phpgraph MCP
A static analysis tool that builds a knowledge graph of PHP codebases to support AI coding agents via the Model Context Protocol (MCP). It extracts deterministic facts about call graphs, architecture layers, message buses, HTTP routes, and dependency injection without executing code or using LLMs. It supports frameworks like Symfony, Laravel, and WordPress, providing impact analysis and type inference to help agents understand code structure and dependencies.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 3 GitHub stars
What you can do with it
- Analyze call graphs and type inference for PHP methods
- Perform impact analysis to determine what breaks when a method changes
- Map message buses and event handlers for Symfony, Laravel, or Ecotone
- Identify HTTP routes and their linked controllers in Symfony or Laravel
Source and maintenance
- Last repository push
- Latest release
- v2.0.0
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ghcr.io/hbenabdallah/phpgraph:2.0.0
{
"transport": "stdio",
"identifier": "ghcr.io/hbenabdallah/phpgraph:2.0.0",
"registryType": "oci",
"runtimeArguments": [
{
"name": "--mount",
"type": "named",
"value": "type=bind,src={project_path},dst=/project",
"variables": {
"project_path": {
"format": "filepath",
"isRequired": true,
"description": "Absolute path of the PHP project on the host"
}
},
"isRequired": true,
"description": "The PHP project to analyse, mounted at /project"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"phpgraph-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hbenabdallah/phpgraph:2.0.0"
]
}
}
}Cline
{
"mcpServers": {
"phpgraph-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hbenabdallah/phpgraph:2.0.0"
]
}
}
}VS Code
{
"servers": {
"phpgraph-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hbenabdallah/phpgraph:2.0.0"
]
}
}
}Claude Desktop
{
"mcpServers": {
"phpgraph-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hbenabdallah/phpgraph:2.0.0"
]
}
}
}Let your agent find its tools
Find servers like phpgraph MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.