Back to Home
kakehashi-inc icon

mcp-server-laravel-database

Verified Safe

by 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

Run Command
npx mcp-server-laravel-database --env /path/to/laravel/.env

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-27

Tags

MCP ServerLaravelDatabaseSQLIntrospection