Home / Servers

laravel-mcp-server

by Falzz1010

πŸš€ Laravel MCP Server

AI-Powered Laravel Development Assistant β€” Secure bridge between AI Clients (Claude Desktop, Cursor, VS Code) and your local Laravel projects.

<div align="center">

npm version npm downloads GitHub TypeScript Node.js Laravel License: MIT

</div>

πŸ“– Table of Contents


🎯 What is Laravel MCP Server?

Laravel MCP Server adalah MCP (Model Context Protocol) Server berbasis TypeScript/Node.js yang memungkinkan AI Assistant seperti Claude untuk:

  • βœ… Menjalankan perintah php artisan dengan aman
  • βœ… Membaca dan menganalisis Laravel logs
  • βœ… Melihat routes, config, dan structure proyek
  • βœ… Membaca dan menulis source code (dengan proteksi ketat)
  • βœ… Menjalankan kode PHP via Tinker (dalam sandbox mode)

Mengapa dibuat? AI modern sangat powerful untuk development, tapi memberikan akses terminal langsung ke AI sangat berbahaya. Server ini memberikan controlled access dengan 10 lapis security layer yang dirancang khusus untuk mencegah kerusakan pada proyek Laravel kamu.


✨ Features

πŸ”§ 7 Powerful Tools

ToolFungsiAccess Level
run_artisanJalankan perintah artisan yang aman🟒 Always Active
read_logsBaca Laravel logs dengan filter🟒 Always Active
list_routesLihat semua routes dengan filter🟒 Always Active
read_envLihat .env dengan credential masking🟑 Masked by Default
read_fileBaca source code proyek🟒 Always Active
write_fileTulis/edit file proyekπŸ”΄ Requires --allow-write
run_tinkerJalankan PHP code via TinkerπŸ”΄ Requires --allow-tinker

πŸ“‚ 3 Laravel Resources

  • laravel://env β€” Static view of .env dengan credential masking
  • laravel://routes β€” JSON view lengkap semua routes
  • laravel://config/{key} β€” Dynamic config reader (contoh: laravel://config/app.name)

πŸ’¬ 3 Smart Prompts

  • debug-error β€” Otomatis baca logs dan minta AI menganalisis error
  • create-crud β€” Template untuk generate CRUD lengkap (Model, Migration, Controller, Routes)
  • review-code β€” Code review dengan fokus Laravel best practices

πŸ›‘οΈ 10-Layer Security System

  1. Environment Gate β€” Menolak start jika APP_ENV=production
  2. Rate Limiter β€” Max 30 perintah/menit, 500 perintah/jam
  3. Command Classifier β€” 3-tier risk classification (READ_ONLY, CAUTIOUS, DANGEROUS)
  4. Input Sanitizer β€” Blokir shell injection (;, &&, $(), backticks, dll)
  5. Flag Validator β€” Blokir --force, --seed, --drop-*, --wipe
  6. Path Protector β€” Blokir path traversal (../, syml

Related servers

n8n

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

NOASSERTIONβ˜… 198,904

@modelcontextprotocol/server-everything

Official

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

β˜… 89,105

@modelcontextprotocol/server-filesystem

Official

by modelcontextprotocol

MCP server for filesystem access

SEE LICENSE IN LICENSEβ˜… 89,105

mcp-server-fetch

Official

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

β˜… 89,105