Provides access to Laravel-specific documentation, coding rules, CRUD templates, and validation checklists to assist in Laravel application development and architectural decision-making.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Laravel AI MCP Serversearch the docs for database transactions and show me the CRUD templates"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Laravel AI - MCP Server
MCP (Model Context Protocol) server for providing Laravel AI documentation to Claude Code and other AI assistants.
π Quick Start
1. Install Dependencies
# Clone or navigate to the project directory
cd laravel-ai
npm install2. Start MCP Server
npm startDocumentation is expected to be in: ./docs (relative to project root)
βοΈ Claude Code Configuration
Add to your Claude Code settings (~/.config/claude-code/config.json):
{
"mcpServers": {
"laravel-ai": {
"command": "node",
"args": ["path/to/laravel-ai/index.js"]
}
}
}Alternative: With Custom Docs Path
If your documentation is in a different location:
{
"mcpServers": {
"laravel-ai": {
"command": "node",
"args": ["path/to/laravel-ai/index.js"],
"env": {
"DOCS_PATH": "/path/to/your/docs"
}
}
}
}π οΈ Available Tools
Tool | Description |
| Get all documentation files structure |
| Read a specific documentation file |
| Search across all documentation |
| Get all coding rules (quick-reference.md) |
| Get CRUD templates (specific or all) |
| Get validation checklist (specific layer or all) |
| Get domain-specific examples |
| Get design system documentation |
π Documentation Structure
laravel-ai/
βββ docs/ # Documentation folder
β βββ ai/
β β βββ quick-reference.md # All coding rules
β β βββ templates.md # Implementation templates
β β βββ checklist.md # Validation checklist
β βββ domains/
β β βββ ecommerce/ # E-commerce examples
β β βββ hr/ # HR examples
β β βββ tourism/ # Tourism examples
β βββ patterns/ # Pattern documentation
β βββ design-system.md # Design system (configurable)
βββ index.js # MCP server
βββ package.json # Dependencies
βββ README.md # This fileπ‘ Usage Examples
For AI Assistant
When user says "pelajari docs", AI should:
// 1. Get quick reference
mcp.call_tool('get_quick_reference')
// 2. Get templates
mcp.call_tool('get_templates', { template_type: 'all' })
// 3. Get checklist
mcp.call_tool('get_checklist', { layer: 'all' })
// 4. Confirm readySearch Documentation
// Search for "transaction"
mcp.call_tool('search_docs', { query: 'transaction' })Get Domain Examples
// Get e-commerce examples
mcp.call_tool('get_domain_examples', { domain: 'ecommerce' })
// Get all domains overview
mcp.call_tool('get_domain_examples', { domain: 'all' })π§ Development
Watch Mode
npm run devTesting
Test the MCP server manually:
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node index.jsπ Notes
This server uses stdio transport for communication
All documentation is read from the file system
No caching - always reads latest documentation
Supports incremental updates to documentation
π Updates
When documentation is updated, just restart the MCP server:
# Stop current server (Ctrl+C)
npm startVersion: 1.0.0 Last Updated: 2026-02-23