PHPocalypse-MCP
Allows running PHP tests and other tools within Docker containers as part of the development workflow.
Provides git clone functionality as part of the setup process.
Supports using Make-based commands to run code quality tools and other development tasks.
Uses npm for package installation during the setup process.
Enables running PHP-focused development tools like PHP-CS-Fixer, PHPStan static analyzer, PHPUnit tests, and Behat behavior-driven testing for PHP projects, all through a convenient MCP interface.
Integrates with Taskfile-based workflows to execute commands like Behat tests.
Uses YAML configuration files to define tools and commands to be executed by the MCP server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PHPocalypse-MCPrun php-cs-fixer and php-stan on the current project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PHPocalypse-MCP
MCP server for vibe developers that are too busy to run tests and static analysis.
Prerequisites
You need to have node, npx and tsx installed
Related MCP server: Tideways MCP Server
How to
First,
git clonethis repo to chosen directoryRun
npm installNext, open your Cursor settings and add the following MCP config:
{
"mcpServers": {
"phpocalypse-mcp": {
"command": "npx",
"args": ["tsx", "/Absolute/Path/To/PHPocalypse-MCP/src/index.ts", "--config", "/Absolute/Path/To/Your/PHP/Based/Project/phpocalypse-mcp.yaml"]
}
}
}Make sure the paths are correct!
In your PHP project, create
phpocalypse-mcp.yamlfile
phpocalypse-mcp.yaml config
The structure is straightforward. Define the tools by giving them a name and a command to run.
tools:
- name: php-cs-fixer
command: make php-cs
- name: php-stan
command: /vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=-1
- name: tests-unit
command: docker compose run --rm php ./vendor/bin/phpunit --testsuite=Unit
- name: tests-behat
command: task behat -- --no-interactionCaveats
This MCP is just a proof of concept and it may not work in every case. One thing that will not work for sure is any interactive CLI input. A good example is behat, that - if not run in non-inteartvice mode - will prompt user with a question of whether to generate missing snippets. Make sure that your commands just run and output something meaningful and leave the rest to your favourite LLM.
Some bigger outputs are not handler correctly yet. To fix that, try to either use
claude-3.7-sonnetor craft your commands to return less.
This server cannot be deployed
Maintenance
Related MCP Connectors
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Run, debug, and triage tests from your IDE using natural language, no dashboard switching, no manual data transfers. The TestMu AI (formerly LambdaTest) MCP Server is a single remote server exposing four tool suites: HyperExecute — analyze your project, generate YAML configs and test runner commands, then monitor jobs and sessions. Automation — pull a TestID's details plus command, network, and console logs into one chat for instant root-cause analysis. Includes mobile app upload. SmartUI — explain pixel, layout, DOM, and perceptual changes in a visual regression run, with context-aware React/HTML/CSS fixes. Accessibility — audit any public URL or a local React app against WCAG and get ready-to-apply remediation steps. Connects over https://mcp.lambdatest.com/mcp using OAuth 2.1 — no API keys in your config. One-click install in Cursor; works with Claude, GitHub Copilot, Cline, and any MCP client. Tests execute on the TestMu AI cloud: 3,000+ browsers and 10,000+ real devices.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides detailed information about your development environment to the Cursor code editor, enabling more context-aware assistance.7MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to query Tideways performance monitoring data and provide conversational performance insights for PHP applications.52 npm3MIT
- AlicenseAqualityCmaintenanceA production-ready Model Context Protocol (MCP) server that bridges your Symfony/PHP project with LLMs such as Claude. It exposes tools that let the AI read your project's routes, services, Twig templates, and PHP source code.8MIT
- FlicenseAqualityDmaintenanceAn MCP server that lets AI agents run PHP unit and integration tests inside Docker containers without local PHP or Composer.25 npm-