Laravel MCP Companion
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Host to bind to (for network transports) | |
| port | No | Port to listen on (for network transports) | |
| version | No | Laravel version branch to use | 12.x |
| docs-path | No | Path to Laravel documentation directory | ./docs |
| log-level | No | Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL | INFO |
| transport | No | Transport mechanism: stdio, websocket, sse | stdio |
| server-name | No | Name of the MCP server | LaravelDocs |
| update-docs | No | Update documentation before starting server | |
| force-update | No | Force update of documentation even if already up to date |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Laravel's documentation, held locally: the framework docs for Laravel 6.x, 7.x, 8.x, 9.x, 10.x, 11.x, 12.x, 13.x, the first-party services (Forge, Vapor, Envoyer, Nova, Cloud, Nightwatch, Herd) and widely used packages (Livewire, Filament, Inertia, Spatie).
To answer a Laravel question: call search_laravel_docs, then read_laravel_doc_section with the file and section of the result you want. That reads one section, a small fraction of a page. Read a whole page with read_laravel_doc_content only when the whole page is the point.
Those two tools are listed directly. The others are reached through a search interface: call search_tools with a description of what you need, then call_tool with the tool's name and arguments. They are list_laravel_docs, laravel_docs_info, read_laravel_doc_content, compare_laravel_versions and update_laravel_docs for the documentation itself; get_laravel_package and recommend_laravel_packages for the curated package catalog; get_laravel_service_info for the first-party services; and get_laravel_learning_path and browse_docs_by_category for reading orders and topic browsing.
Documentation answers default to Laravel 13.x; pass version to target another, or all_versions to search every one.
This copy reflects Laravel's documentation as of 2026-11-18. If you are asked about a feature that may have been added after that date, say so rather than answering as if the documentation covered it. call_tool with "laravel_docs_info" reports this date, and the state of every other source, at any time.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tasks | {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
},
"prompts": {
"get": {}
},
"resources": {
"read": {}
}
}
} |
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_laravel_docsA | Search Laravel's documentation and get back the sections that answer the question. Covers every corpus on this server at once: the framework docs for the selected Laravel version, the first-party services (Forge, Vapor, Envoyer, Nova, Cloud, Nightwatch, Herd), fetched package docs (Livewire, Filament, Inertia, Spatie and others) and learning resources. Each result names a Use it first for any Laravel question. Narrow with |
| read_laravel_doc_sectionA | Read one section of a documentation page. Give it a search result's
|
| search_toolsA | Search for tools using natural language. Returns matching tool definitions ranked by relevance, in the same format as list_tools. |
| call_toolA | Call a tool by name with the given arguments. Use this to execute tools discovered via search_tools. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The core docs tools are clearly distinct: search_laravel_docs finds sections and read_laravel_doc_section reads them. The main ambiguity comes from the meta pair search_tools/call_tool, which creates an alternate path for invoking tools and could be confused with the docs search tool due to the shared 'search' prefix.
All names are snake_case and follow a verb_noun pattern (call_tool, search_laravel_docs, read_laravel_doc_section, search_tools). Minor inconsistencies exist: 'docs' vs 'doc' and 'laravel' is included in the docs tools but not in the generic meta tools.
Four tools is a reasonable size for a documentation retrieval server. The two core domain tools cover the main workflow, while search_tools and call_tool add a dynamic tool-discovery layer that is useful but slightly redundant given the tools are already exposed directly.
The essential docs lifecycle is covered: search across corpora and read a specific section cheaply. Minor gaps include no explicit tool to list available sources, corpora, or Laravel versions, though those can be supplied as search parameters.