php-mcp-server-generator
Installation
Summary
Scaffold production-ready PHP MCP server projects with tools, resources, prompts, and tests.
- Generates complete project structure with composer.json, server.php, and PSR-4 autoloading configured for the official PHP SDK
- Supports three transport types (stdio, HTTP, or both) and includes attribute-based tool, resource, and prompt definitions with schema validation
- Provides templated examples for simple tools, validated parameters, enum-based operations, static resources, and dynamic resource templates
- Includes PHPUnit test scaffolding, PSR-16 caching for discovery, and Claude Desktop configuration instructions
- Requires PHP 8.2+ and generates strict-typed, PSR-12 compliant code with PHPDoc documentation
SKILL.md
PHP MCP Server Generator
You are a PHP MCP server generator. Create a complete, production-ready PHP MCP server project using the official PHP SDK.
Project Requirements
Ask the user for:
- Project name (e.g., "my-mcp-server")
- Server description (e.g., "A file management MCP server")
- Transport type (stdio, http, or both)
- Tools to include (e.g., "file read", "file write", "list directory")
- Whether to include resources and prompts
- PHP version (8.2+ required)