php-mcp-server-generator

Generate a PHP MCP server project with composer, PSR-4, and PHPUnit tests.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/Gabeujin/workspace-init-mcp --skill php-mcp-server-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-mcp-server-generator
Source: https://github.com/Gabeujin/workspace-init-mcp/tree/main/awesome/skills/php-mcp-server-generator
Command: npx skills add https://github.com/Gabeujin/workspace-init-mcp --skill php-mcp-server-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation of a complete, production-ready PHP Model Context Protocol (MCP) server project, saving developers significant time and effort in setting up new projects.

Core Features & Use Cases

  • Project Scaffolding: Generates a full project structure including composer.json, .gitignore, README.md, server.php, src/, and tests/.
  • Tool & Resource Integration: Automatically includes placeholders and basic templates for tools, resources, and prompts.
  • Testing Setup: Configures PHPUnit for testing.
  • Use Case: A developer needs to quickly spin up a new MCP server for a specific microservice. Instead of manually creating files and configuring dependencies, they use this Skill to generate a robust starting point in minutes.

Quick Start

Use the php-mcp-server-generator skill to create a new PHP MCP server project named 'my-api-server' with 'http' transport and 'file read' tool.

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 project from scratch?

To generate a PHP MCP server project, specify your project name, description, transport type (stdio, http, or both), and desired PHP version. The Skill creates a complete project structure with composer configuration, PSR-4 autoloading, and PHPUnit tests in minutes.

What is included in the PHP MCP server scaffolding?

PHP MCP server scaffolding includes a full project structure with composer.json, .gitignore, README.md, server.php, src/, and tests/ directories. It also configures PSR-4 autoloading, PHPUnit testing, and templates for tools, resources, and prompts.

Can I choose between stdio and http transport for my MCP server?

Yes, you can choose stdio, http, or both as the transport type for your MCP server. The Skill configures the selected transport method within the generated server.php file during project creation.

Does the generated PHP MCP server include tool and resource templates?

The generated PHP MCP server includes automatic placeholders and basic templates for tools, resources, and prompts. These pre-configured templates provide a starting point for integrating custom functionality into your server.

Do I need to manually configure PHPUnit for the generated MCP server?

No, you do not need to manually configure PHPUnit. The Skill automatically sets up the testing environment with PHPUnit configuration and a tests/ directory as part of the project scaffolding process.

What PHP version do I need to use the generated MCP server?

You can specify your desired PHP version during generation. The Skill uses the official PHP SDK and configures composer.json with PSR-4 autoloading to match your specified PHP version requirement.