mcp-server-laravel-database
Verified Safeby kakehashi-inc
Overview
Provides a Model Context Protocol (MCP) server for seamless database access to Laravel applications, automatically parsing .env files and supporting multiple database types.
Installation
npx mcp-server-laravel-database --env /path/to/laravel/.envEnvironment Variables
- DB_CONNECTION
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
- FORWARD_DB_PORT
Security Notes
The server demonstrates strong security awareness with features like a 'read-only' mode to block write operations, SSH tunneling for secure remote connections, and masking of sensitive information in logs. The 'execute_sql' tool allows direct SQL query input, which inherently carries a risk of SQL injection if the input is not carefully controlled by the calling agent or user, especially in non-read-only mode. However, the explicit recommendation to use '--readonly' and minimal database permissions in the documentation significantly mitigates these risks. Introspection queries use proper escaping to prevent injection.
Similar Servers
boost
Accelerates AI-assisted development by providing essential context and structure for generating high-quality, Laravel-specific code via an MCP server.
php-mcp
Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).
mcp-client-laravel
Laravel-native client for interacting with Model Context Protocol (MCP) servers to discover and call tools, and access resources for AI agents.
mcp-mysql-server
Provides an MCP-compliant interface for AI models to securely interact with a MySQL database for CRUD operations, schema inspection, and performance analysis.