Laravel MCP 助手
STDIOLaravel生态系统文档聚合导航工具
Laravel生态系统文档聚合导航工具
formerly Laravel Docs MCP Server
⚠️ BETA SOFTWARE - This project is in early development. Features may not work as expected and breaking changes may occur without notice.
Laravel MCP Companion is a comprehensive documentation aggregator and navigator for the Laravel ecosystem. Rather than generating content, it centralizes and organizes existing high-quality documentation from across the Laravel ecosystem, making it easily discoverable through your AI assistant.
| Feature | Laravel MCP Companion | Context7 | 
|---|---|---|
| Instant documentation retrieval (zero latency) | ✅ | ❌ | 
| Laravel multi-version support (6.x - latest) | ✅ | ❌ | 
| Laravel service docs (Forge, Vapor, Nova, Envoyer) | ✅ | ❌ | 
| Curated Laravel package recommendations | ✅ | ❌ | 
| Offline documentation access | ✅ | ❌ | 
| Pre-processed markdown (saves tokens) | ✅ | ❌ | 
| No internet requests during use | ✅ | ❌ | 
| Laravel-specific search | ✅ | ❌ | 
| Auto-discovery of service docs | ✅ | ❌ | 
| General documentation (non-Laravel) | ❌ | ✅ | 
While Context7 excels at general documentation retrieval, Laravel MCP Companion is purpose-built for Laravel developers with faster, offline-capable, Laravel-specific features.
This application features an intelligent auto-discovery system that automatically finds and indexes Laravel documentation. Every day, it:
npx -y @smithery/cli install @brianirish/laravel-mcp-companion --client claude
Note: Smithery automatically configures your AI client.
Open Claude Desktop Settings
Add to your configuration file:
{ "mcpServers": { "laravel-mcp-companion": { "command": "docker", "args": ["run", "--rm", "-i", "ghcr.io/brianirish/laravel-mcp-companion:latest"] } } }
Restart Claude Desktop for changes to take effect
Config file locations:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonUse the claude mcp add command:
# Add with Docker claude mcp add laravel-mcp-companion docker run --rm -i ghcr.io/brianirish/laravel-mcp-companion:latest # Or add to project-specific config (for team sharing) claude mcp add laravel-mcp-companion docker run --rm -i ghcr.io/brianirish/laravel-mcp-companion:latest --scope project
The --scope project option creates a .mcp.json file in your project root that can be committed to version control.
These options can be used with the Docker command. For example:
# Update docs for Laravel 11.x only docker run --rm -i ghcr.io/brianirish/laravel-mcp-companion:latest --version 11.x # Force update all documentation docker run --rm -i ghcr.io/brianirish/laravel-mcp-companion:latest --force-update
| Option | Description | Default | 
|---|---|---|
--version VERSION | Laravel version (e.g., "12.x", "11.x") | Latest | 
--docs-path PATH | Documentation directory | ./docs | 
--log-level LEVEL | DEBUG, INFO, WARNING, ERROR, CRITICAL | INFO | 
--update-docs | Update documentation on startup | false | 
--force-update | Force documentation update | false | 
For detailed roadmap information, see ROADMAP.md.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! See CONTRIBUTING.md for guidelines.