php-mcp-server-generator

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

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Sivanwol/sabo-platfom --skill php-mcp-server-generator-sivanwol
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: php-mcp-server-generator
Source: https://github.com/Sivanwol/sabo-platfom/tree/main/.ai/skills/php-mcp-server-generator
Command: npx skills add https://github.com/Sivanwol/sabo-platfom --skill php-mcp-server-generator-sivanwol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates a complete, production-ready PHP MCP server scaffold using the official PHP SDK, saving development time by providing a consistent, testable boilerplate.

Core Features & Use Cases

  • Project scaffolding including composer.json, server.php, README.md, src/, and tests/ with dedicated Templates for Tools, Resources, Prompts, and Providers.
  • Prebuilt templates and guidance to accelerate building MCP servers, with sample code and tests to verify functionality.
  • Use case: start a new MCP server project quickly from a given name and description, then customize the components as needed.

Quick Start

Ask for the project name and server description, and then generate a complete MCP PHP server skeleton.

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 scaffold?▼

You can generate a PHP MCP server scaffold by providing a project name and server description, which produces a structured project layout with composer.json, server.php, src/, tests/, and templates for Tools and Resources.

What files are included in a PHP MCP server boilerplate?▼

A PHP MCP server boilerplate includes composer.json, README.md, server.php, src/, tests/, and templates for Tools, Resources, Prompts, and Providers to ensure a complete, testable project structure.

Does the PHP MCP server generator support PHP 8.2 and custom transport types?▼

Yes, the PHP MCP server generator supports PHP 8.2+ compatibility and allows you to configure the transport type, project name, and server description during the scaffolding process.

How do I add tools and resources to my MCP server?▼

You add tools and resources to your MCP server by customizing the prebuilt templates included in the generated src/ directory, which provide sample code and unit tests to verify functionality.

What is the best way to start a production-ready MCP server project in PHP?▼

The best way to start a production-ready MCP server project in PHP is using the official PHP SDK scaffold, which provides a consistent boilerplate with unit tests and documentation out of the box.

Are unit tests included when generating an MCP PHP server skeleton?▼

Yes, unit tests are included in the generated tests/ directory alongside sample code, ensuring you can verify the functionality of your MCP server components immediately after scaffolding.