php-mcp-server-generator

Generate a PHP MCP server scaffold with composer.json, server.php, and tests.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/Reshzy/AgricultureRMS --skill php-mcp-server-generator-reshzy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-mcp-server-generator
Source: https://github.com/Reshzy/AgricultureRMS/tree/main/.cursor/skills/php-mcp-server-generator
Command: npx skills add https://github.com/Reshzy/AgricultureRMS --skill php-mcp-server-generator-reshzy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate a complete PHP MCP server scaffold that follows the official PHP SDK, reducing boilerplate and setup time for production-ready backends.

Core Features & Use Cases

  • Auto-generates a full project skeleton including composer.json, server.php, src/, tests/, and README.
  • Supports configurable transport types (stdio, http, or both) and optional submodules (Tools, Resources, Prompts).
  • Includes PHPUnit test scaffolding and example provider/tool/resource templates for MCP.

Quick Start

Provide a project name and server description, choose transport type and PHP version, select desired tools/resources/prompts, and the generator will output a ready-to-run MCP server scaffold.

Frequently Asked Questions about php-mcp-server-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a PHP MCP server with composer and PHPUnit?

To generate a PHP MCP server, you provide a project name, description, transport type, and PHP version. The generator outputs a full project skeleton with composer.json, server.php, src/, and PHPUnit test scaffolding.

What is included in a PHP MCP server scaffold?

A PHP MCP server scaffold includes composer.json, server.php, src/, tests/, and a README. It features configurable transport types (stdio, http), optional submodules for Tools, Resources, and Prompts, plus example templates.

Does the generated PHP MCP server follow PSR-12 and strict types?

Yes, the generated PHP MCP server enforces strict types and follows the PSR-12 coding style. It applies these standards across the entire project structure to ensure production-ready backend code.

Can I configure transport types and submodules for an MCP server in PHP?

Yes, you can configure transport types (stdio, http, or both) and select desired submodules like Tools, Resources, and Prompts. The generator applies these inputs to output a ready-to-run MCP server scaffold.

What's the best way to set up a production-ready PHP MCP server?

The best way to set up a production-ready PHP MCP server is using a scaffold generator. It reduces boilerplate by creating a complete project structure with configurable transport, PHPUnit testing, and PSR-12 compliance.

Do I need a specific PHP version to create an MCP server scaffold?

You need to specify a target PHP version when creating your MCP server scaffold. The generator uses this input to build the project structure, ensuring compatibility with your development, testing, and deployment workflows.