Laravel AI MCP Server

Laravel AI MCP Server

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.

Category
Visit Server

README

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 install

2. Start MCP Server

npm start

Documentation 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_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

šŸ“ 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 ready

Search 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 dev

Testing

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 start

Version: 1.0.0 Last Updated: 2026-02-23

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured