mcp-server
Verified Safeby ILoveJoseM
Overview
A Laravel-based server implementing the Model Context Protocol for standardized tool calling, resource management, and prompt handling.
Installation
php artisan mcp:serverEnvironment Variables
- MCP_SERVER_NAME
- MCP_SERVER_VERSION
- MCP_RESOURCE_DIRECTORY
- MCP_PROMPTS_DIRECTORY
- MCP_CAPABILITY_RESOURCES
- MCP_CAPABILITY_RESOURCES_SUBSCRIBE
- MCP_CAPABILITY_RESOURCES_LIST_CHANGED
- MCP_CAPABILITY_TOOLS
- MCP_CAPABILITY_TOOLS_LIST_CHANGED
- MCP_CAPABILITY_TOOLS_CALL
- MCP_CAPABILITY_PROMPTS
- MCP_CAPABILITY_PROMPTS_LIST_CHANGED
- MCP_CAPABILITY_LOGGING
- MCP_CAPABILITY_EXPERIMENTAL
- MCP_SSE_TIMEOUT
- MCP_SSE_RETRY
Security Notes
The server includes robust path validation (`realpath` and `strpos` checks) to prevent directory traversal vulnerabilities when accessing resources. It relies on standard Laravel security practices for its HTTP endpoints. No 'eval' or other highly dangerous patterns were observed. Overall, it appears to be implemented with security considerations in mind, though the overall security will depend on the host Laravel application's configuration and the nature of custom tools registered.
Similar Servers
boost
Accelerates AI-assisted development by providing essential context and structure for generating high-quality, Laravel-specific code via an MCP server.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
php-mcp
Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).
php-mcp-sdk
A PHP SDK for building Model Context Protocol (MCP) servers that expose AI capabilities (tools, prompts, sampling) and data resources to clients, facilitating AI agent orchestration and structured human-AI interaction.