loading…
Search for a command to run...
loading…
Provides AI assistants with direct access to Laravel documentation, coding rules, and implementation templates stored locally. It enables searching documentatio
Provides AI assistants with direct access to Laravel documentation, coding rules, and implementation templates stored locally. It enables searching documentation, retrieving design system guides, and accessing domain-specific code examples to streamline Laravel development.
MCP (Model Context Protocol) server for providing Laravel AI documentation to Claude Code and other AI assistants.
# Clone or navigate to the project directory
cd laravel-ai
npm install
npm start
Documentation is expected to be in: ./docs (relative to project root)
Add to your Claude Code settings (~/.config/claude-code/config.json):
{
"mcpServers": {
"laravel-ai": {
"command": "node",
"args": ["path/to/laravel-ai/index.js"]
}
}
}
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"
}
}
}
}
| Tool | Description |
|---|---|
get_doc_structure |
Get all documentation files structure |
read_doc |
Read a specific documentation file |
search_docs |
Search across all documentation |
get_quick_reference |
Get all coding rules (quick-reference.md) |
get_templates |
Get CRUD templates (specific or all) |
get_checklist |
Get validation checklist (specific layer or all) |
get_domain_examples |
Get domain-specific examples |
get_design_system |
Get design system documentation |
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
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 ready
// Search for "transaction"
mcp.call_tool('search_docs', { query: 'transaction' })
// Get e-commerce examples
mcp.call_tool('get_domain_examples', { domain: 'ecommerce' })
// Get all domains overview
mcp.call_tool('get_domain_examples', { domain: 'all' })
npm run dev
Test the MCP server manually:
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node index.js
When documentation is updated, just restart the MCP server:
# Stop current server (Ctrl+C)
npm start
Version: 1.0.0 Last Updated: 2026-02-23
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"laravel-ai-mcp-server": {
"command": "npx",
"args": []
}
}
}