
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that exposes tools to list, search, and filter available Rector PHP refactoring rules by keyword or rule set.
MCP server for querying and filtering Rector PHP refactoring rules is cataloged as an MCP server attributed to vasilvestre. An MCP server that exposes tools to list, search, and filter available Rector PHP refactoring rules by keyword or rule set. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for querying and filtering Rector PHP refactoring rules are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports multi-word tokenized search matching rule names, descriptions, and tags, with results sorted by relevance.
README.md · 4c1f5279452e · Fetched 2026-11-13 12:31:02 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
MCP server providing tools to query and filter Rector PHP refactoring rules.
Run the MCP Rector server directly from GitHub Packages:
npx @vasilvestre/mcp-rector
To use a specific version:
npx @vasilvestre/mcp-rector@1.0.0
For permanent installation:
npm install -g @vasilvestre/mcp-rector
mcp-rector
For local development:
npm install
npm run build
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"rector": {
"command": "npx",
"args": ["-y", "@vasilvestre/mcp-rector"]
}
}
}
For a specific version (e.g., 1.0.0):
{
"mcpServers": {
"rector": {
"command": "npx",
"args": ["-y", "@vasilvestre/mcp-rector@1.0.0"]
}
}
}
After updating the config, restart Claude Desktop to activate the MCP server.
Add to your Cline MCP settings:
settings.json:{
"cline.mcpServers": {
"rector": {
"command": "npx",
"args": ["-y", "@vasilvestre/mcp-rector"]
}
}
}
Alternatively, use the Cline MCP Settings UI to add the server.
Add to Continue configuration at ~/.continue/config.json:
{
"mcpServers": [
{
"name": "rector",
"command": "npx",
"args": ["-y", "@vasilvestre/mcp-rector"]
}
]
}
Add to your Zed settings at ~/.config/zed/settings.json:
{
"context_servers": {
"rector": {
"command": {
"path": "npx",
"args": ["-y", "@vasilvestre/mcp-rector"]
}
}
}
}
If you prefer a global installation instead of npx:
npm install -g @vasilvestre/mcp-rector
Then configure with direct command:
{
"mcpServers": {
"rector": {
"command": "mcp-rector"
}
}
}
After configuring your MCP client:
list-rector-rules, filter-rector-rules, search-rector-rulesThe MCP Inspector is a developer tool for testing MCP servers locally before integrating them with clients.
npx @modelcontextprotocol/inspector
npx @modelcontextprotocol/inspector npx -y @vasilvestre/mcp-rector
This will:
The Inspector provides:
Example test flow:
list-rector-rules{"ruleSet": "naming"})List all available Rector rules with optional filtering by rule set.
Parameters:
ruleSet (optional): Filter rules by rule set category (e.g., "php80", "code-quality")Search Rector rules by keyword with multi-word query support.
Parameters:
query (required): Search keyword or multi-word phrase (e.g., "rename class")ruleSet (optional): Filter results by rule set categoryFeatures:
Examples:
{"query": "rename class"} → Finds RenameClass, RenameClassConstFetch, etc.{"query": "type declaration"} → Finds AddParamTypeDeclaration, ReturnTypeDeclaration, etc.{"query": "php80", "ruleSet": "php80"} → Searches within PHP 8.0 rule set onlyFilter rules by rule set category.
Parameters:
ruleSet (required): Rule set name to filter by (case-insensitive)Additional tools documented in specs/001-list-rector-rules/
npm run build # Build TypeScript to build/
npm test # Run tests
npm run test:watch # Run tests in watch mode
Ensure Node.js 18+ and npm are installed:
node --version # Should be >= 18.0.0
npm --version
The package should handle permissions automatically. If issues persist, try:
npx --yes mcp-rector
Check npm registry connectivity:
npm ping
If experiencing issues with cached versions, clear the npx cache:
rm -rf ~/.npm/_npx
On Windows, you may need to adjust PowerShell execution policy:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for querying and filtering Rector PHP refactoring rules from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-rector)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.