MCP server · Developer tools
PHPGraph MCP server
by alpine-ronin
Lets your AI map a PHP codebase so it can tell you what breaks when you change a method.
PHPGraph is a helper that reads a PHP project and builds a map of how the pieces connect: which class calls which, which route reaches which controller, which message goes to which handler. It is handy if you work on a PHP codebase and want to know what a change will affect without hunting through files yourself. You connect it once, and then you can just ask your AI questions about the project.
What is an MCP server? The 30-second version
On its own, your AI can only chat with you. It cannot look inside your PHP project unless you paste code in. An MCP server is a small helper program that gives your AI a new skill or a connection to a service. Here, PHPGraph is that helper: it reads your PHP files and answers questions about them, so your AI can tell you what depends on what.
What this MCP server does
You ask your AI a question about your PHP project, like what breaks if you change a method. Your AI passes the question to PHPGraph. PHPGraph has already read your code and built a map of the classes, interfaces, routes, buses and tests. It looks up the answer in that map and sends it back. Your AI then explains it to you in the chat.
What you can do with it
- Find every class that depends on a method you want to change
- See which routes reach a controller
- Find which handler receives a message on a bus
- Get an outline of a feature: classes, routes, behaviour and tests
- List the tests to run after a change
- Check layer rules in your project
Try asking your AI
- “What breaks if I change the process method on OrderProcessorInterface?”
- “Which controller serves the route /api/orders?”
- “Give me an outline of the checkout feature.”
- “Which handler receives the OrderPlaced message?”
What it gives back to you
You get a list of dependent classes, nearest first, with the file and line where they use the method. You also get any routes that reach it and the tests you should run. If PHPGraph is not sure about a link, it tells you how confident it is. The answer appears in your chat as text you can read and act on.
Before you start
What you need
- A PHP project on your computer
- The PHPGraph program installed (the README gives a one-line install command for Linux and macOS)
- An AI tool that supports MCP, like Claude Code, Cursor or Codex
Good to know
PHPGraph only reads your code and never runs it, so it cannot see services built at runtime or dynamic calls, and it may miss links in projects it does not fully understand.
Install it with your AI
Add PHPGraph MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check PHPGraph MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 5,044 MCP servers here for you.
Who it's for
PHP developers and anyone who maintains a PHP codebase and wants quick answers about what a change will affect.





