github avatar

Php Mcp Server Generator

The php-mcp-server-generator creates a complete, production-ready PHP Model Context Protocol server project by gathering user specifications (project name, description, transport type, tools, resources, and prompts) and automatically generating a structured project with composer configuration, server implementation, tool classes, resources, and unit tests using the official PHP SDK. It targets PHP developers who need to build MCP servers and solves the problem of manually scaffolding and configuring a complex PHP MCP project structure from scratch.

skills.sh installs
8.9K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill php-mcp-server-generator --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

  1. Project name (e.g., "my-mcp-server")
  2. Server description (e.g., "A file management MCP server")
  3. Transport type (stdio, http, or both)
  4. Tools to include (e.g., "file read", "file write", "list directory")
  5. Whether to include resources and prompts
  6. PHP version (8.2+ required)

Project Structure

{project-name}/
├── composer.json
├── .gitignore
├── README.md
├── server.php
├── src/
│   ├── Tools/
│   │   └── {ToolClass}.php
│   ├── Resources/
│   │   └── {ResourceClass}.php
│   ├── Prompts/
│   │   └── {PromptClass}.php
│   └── Providers/
│       └── {CompletionProvider}.php
└── tests/
    └── ToolsTest.php

File Templates

composer.json

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Backend & APIs, Git & Pull Requests, AI & Agent Building, Automation & Workflows, PHP & Laravel

More from github/awesome-copilot

All 318
1github avatarjava-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Java using the official MCP Java SDK with reactive streams and optional Spring Boot integration.8.8Kskills.sh installs
2okx avatarokx-onchain-gatewayokx/onchainos-skillsOnchain transaction gateway across XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon and 20+ chains. Invoke to broadcast a pre-signed / raw / already-signe8.8Kskills.sh installs
3github avatartypespec-api-operationsgithub/awesome-copilotAdd GET, POST, PATCH, and DELETE operations to a TypeSpec API plugin with proper routing, parameters, and adaptive cards8.8Kskills.sh installs
4github avatarswift-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Swift using the official MCP Swift SDK package.8.8Kskills.sh installs
5github avatarkotlin-mcp-server-generatorgithub/awesome-copilotGenerate a complete Kotlin MCP server project with proper structure, dependencies, and implementation using the official io.modelcontextprotocol:kotlin-sdk libr8.7Kskills.sh installs
6aahl avataredge-ttsaahl/skillsText-to-speech conversion using `uvx edge-tts` for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. 8.6Kskills.sh installs