{
"mcpServers": {
"mcp-php-application": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An application that uses MCP PHP Server
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 451 days ago. 3 stars.
Will it work with my client?
Transport: stdio, http. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Php Application and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The MCP PHP Application is a stub application designed to work with the MCP PHP Server framework. It serves as a starting point for users implementing the Model Context Protocol (MCP) in their projects.
Before using this application, ensure that you have the following installed:
php --version should report 8.1 or greater.To set up the application, follow these steps:
Clone this repository:
git clone https://github.com/james2037/mcp-php-application.git
Navigate to the project directory:
cd mcp-php-application
Install the dependencies using Composer:
composer install
To create a tool for the application, follow these steps:
Create a new class in the tools/ directory. For example:
<?php
namespace App\Tools;
use MCP\Server\Tool\Tool;
use MCP\Server\Tool\Attribute\Tool as ToolAttribute;
use MCP\Server\Tool\Attribute\Parameter as ParameterAttribute;
#[ToolAttribute('calculator', 'A calculator tool')]
class CalculatorTool extends Tool
{
protected function doExecute(
#[ParameterAttribute('operation', type: 'string', description: 'Operation to perform (add/subtract)')]
#[ParameterAttribute('a', type: 'number', description: 'First number')]
#[ParameterAttribute('b', type: 'number', description: 'Second number')]
array $arguments
): array {
$result = match ($arguments['operation']) {
'add' => $arguments['a'] + $arguments['b'],
'subtract' => $arguments['a'] - $arguments['b'],
default => throw new \InvalidArgumentException('Invalid operation')
};
return $this->text((string)$result);
}
}
The #[ToolAttribute] annotation defines the name and description of the tool.
Parameters for the tool are defined using the #[ParameterAttribute] annotation.
Implement the doExecute method to define the tool's functionality.
To start the MCP PHP server, run the following command:
php path/to/mcp_server.php
the mcp_server.php file is located in the root of this repository.
The server will start and listen for requests based on the Model Context Protocol.
Currently, you can write tools. The server supports the STDIO transport only. New capabilities and transports coming soon.
Contributions to the MCP PHP Application are welcome! Feel free to submit issues or pull requests to improve functionality, documentation, or examples.
This project is licensed under the MIT License.