MCP Phpcs Server
M

MCP Phpcs Server

An MCP protocol server implemented in PHP that provides PHP code standard checking and auto - fixing functions and can be integrated into any project without external dependencies
2 points
6.6K

What is the PHP Code Quality Check Server?

This is a tool specifically designed for PHP code quality checking and auto - fixing. It can scan your PHP code, identify issues that do not meet coding standards, and provide an auto - fix function to help you maintain code consistency and readability.

How to use the PHP Code Quality Check Server?

Simply configure the server path, and you can check code quality or auto - fix code issues through simple commands. It supports integration with various development tools, including Claude Desktop, etc.

Applicable Scenarios

Suitable for PHP project development teams, individual developers, code review processes, and continuous integration environments to help maintain code quality and unified coding styles.

Main Features

Code Quality Check
Use PHP_CodeSniffer to perform static analysis on PHP code and detect coding standard violations.
Auto - fix
Use PHP Code Beautifier to automatically fix fixable code issues.
No Additional Dependencies
Pure PHP implementation, no Composer dependencies required, can be directly integrated into any project.
Flexible Configuration
Supports custom rule sets and tool paths to meet the needs of different projects.
Advantages
Ready - to - use with simple configuration
No need to install additional dependency packages
Supports automatic detection of project rule sets
Seamless integration with mainstream development tools
Provides clear code issue reports
Limitations
Only supports PHP language projects
Requires pre - installation of PHP_CodeSniffer and PHP Code Beautifier
Some complex code issues may need to be fixed manually

How to Use

Install Necessary Tools
Ensure that PHP_CodeSniffer (phpcs) and PHP Code Beautifier (phpcbf) are installed in the system.
Configure the Server
Add server configuration to your MCP client configuration file.
Set Execution Permissions
Ensure that the server script has execution permissions.
Start Using
Restart your MCP client, and now you can use the code checking function.

Usage Examples

Check a Newly Written PHP Class
After completing the writing of a PHP class file, use the code checking tool to ensure it meets the project coding standards.
Batch Fix Code Formatting
When taking over an old project, use the auto - fix function to unify the code format.
Integrate into the Code Review Process
Conduct a check before submitting code to ensure code quality.

Frequently Asked Questions

What pre - conditions are required to install this tool?
How to customize code checking rules?
Can the tool fix all types of code issues?
Which PHP coding standards are supported?
How to handle code checking for large - scale projects?

Related Resources

PHP_CodeSniffer Official Documentation
Complete documentation and usage guide for the PHP code checking tool
PHP Coding Standards (PSR)
PHP Standard Recommendations, including coding standards such as PSR - 1, PSR - 2, and PSR - 12
Model Context Protocol Documentation
Official specification and implementation guide for the MCP protocol

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "phpcs": {
      "command": "/absolute/path/to/mcp/phpcs-server/bin/mcp-phpcs",
      "env": {
        "MCP_PHPCS_PATH": "/usr/local/bin/phpcs",
        "MCP_PHPCBF_PATH": "/usr/local/bin/phpcbf",
        "MCP_PHPCS_RULESET": "/path/to/your/phpcs.xml"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
6.5K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
7.7K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
4.7K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
7.7K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
6.9K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
6.6K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
7.4K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
7.1K
4.5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
18.4K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
20.4K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
30.2K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
59.8K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
27.9K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
55.6K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
40.9K
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
18.3K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase