Laravel AI MCP Server
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 "Deploy 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 Server search 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)
Related MCP server: directory-indexer
βοΈ 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
Available Tools
8 toolsget_checklistC
Get code validation checklist
Inputs: layer.
get_design_systemC
Get design system documentation
Inputs: no named parameters.
get_doc_structureB
Get the structure of all available documentation files
Inputs: no named parameters.
get_domain_examplesC
Get domain-specific implementation examples
Inputs: domain.
get_quick_referenceB
Get the quick reference documentation (all coding rules)
Inputs: no named parameters.
get_templatesC
Get implementation templates for CRUD operations
Inputs: template_type.
read_docC
Read a specific documentation file
Inputs: file_path (required).
search_docsC
Search for content across all documentation files
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 8 tools
Every tool has a clearly distinct purpose with no ambiguity. The tools target different aspects of documentation retrieval: checklists, design systems, structures, examples, references, templates, specific files, and search. There is no overlap in functionality.
All tools follow a consistent verb_noun pattern using snake_case. Each name starts with 'get_' or a similar verb ('read_', 'search_') followed by a descriptive noun, making the set predictable and readable.
With 8 tools, the server is well-scoped for its purpose of providing Laravel documentation and resources. Each tool earns its place by covering a specific aspect of documentation retrieval, avoiding bloat or thinness.
The tool surface is complete for the domain of documentation access, covering all key operations: retrieving specific files, searching, getting structured overviews, examples, templates, and references. There are no obvious gaps that would hinder an agent's workflow.
Maintenance
Related MCP Connectors
Provide your AI coding tools with token-efficient access to up-to-date technical documentation forβ¦
Versioned documentation registry and semantic search for AI tools and coding assistants.
Serves your design system and coding standards to coding agents, so they stop guessing.
Project memory, documentation and controlled secret access for AI coding agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides AI assistants with intelligent access to project documentation and API references through smart search, contextual rules, and Docset integration. Enables AI to understand project-specific conventions, patterns, and official framework documentation without token limits.1149 npm6MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI assistants with semantic search and read access to local files and directories, enabling knowledge retrieval from indexed content.12 npm17MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to incrementally build Laravel and Vue.js applications by creating file structures, methods, and code through natural conversation.5063 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with local access to Filament, Laravel, Livewire, and Pest documentation, enabling offline reference and search.MIT