AI Skill Hub 强烈推荐:PHP MCP协议SDK 是一款优质的MCP工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
Model Context Protocol的PHP官方SDK实现,为PHP开发者提供MCP协议支持,用于构建支持上下文感知的AI应用。支持服务器和客户端模式,便于集成AI能力,适合PHP后端和全栈开发者。
PHP MCP协议SDK 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
Model Context Protocol的PHP官方SDK实现,为PHP开发者提供MCP协议支持,用于构建支持上下文感知的AI应用。支持服务器和客户端模式,便于集成AI能力,适合PHP后端和全栈开发者。
PHP MCP协议SDK 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/logiscape/mcp-sdk-php
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"php-mcp--sdk": {
"command": "npx",
"args": ["-y", "mcp-sdk-php"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 PHP MCP协议SDK 执行以下任务... Claude: [自动调用 PHP MCP协议SDK MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"php_mcp__sdk": {
"command": "npx",
"args": ["-y", "mcp-sdk-php"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
This PHP SDK implements the full MCP specification, making it easy to: Build MCP clients that can connect to any MCP server Create MCP servers that expose resources, prompts and tools * Use standard transports like stdio and HTTP
This SDK offers two major advantages for the MCP and PHP developer communities:
You can install the package via composer:
composer require logiscape/mcp-sdk-php
The "examples" directory includes additional clients and servers for both the STDIO and HTTP transports. All examples are designed to run in the same directory where you installed the SDK.
Some examples use monolog for logging, which can be installed via composer:
composer require monolog/monolog
To setup the web client, upload the contents of "webclient" to a web directory, such as public_html on a cPanel server. Ensure that the MCP SDK for PHP is installed in that same directory by running the Composer command found in the Installation section of this README.
This package provides a PHP implementation of the Model Context Protocol. The primary goal of this project is to provide both a MCP server and a MCP client using pure PHP, making it easy to use in PHP/Apache/cPanel hosting environments with typical server configurations.
Anthropic官方PHP SDK,实���MCP协议完整支持,代码质量有保障。社区活跃度适中,文档齐全,适合PHP生态的AI集成方案。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,PHP MCP协议SDK 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | mcp-sdk-php |
| Topics | MCP协议PHP SDKAI集成开源库上下文协议 |
| GitHub | https://github.com/logiscape/mcp-sdk-php |
| License | MIT |
| 语言 | PHP |
收录时间:2026-05-23 · 更新时间:2026-05-23 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端