Skip to main content
Glama
Laravel MCP Companion

Laravel MCP Companion

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
hostNoHost to bind to (for network transports)
portNoPort to listen on (for network transports)
versionNoLaravel version branch to use12.x
docs-pathNoPath to Laravel documentation directory./docs
log-levelNoLogging level: DEBUG, INFO, WARNING, ERROR, CRITICALINFO
transportNoTransport mechanism: stdio, websocket, ssestdio
server-nameNoName of the MCP serverLaravelDocs
update-docsNoUpdate documentation before starting server
force-updateNoForce 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

CapabilityDetails
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

NameDescription
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 file and a section; pass them to read_laravel_doc_section as filename and section to read just that section.

Use it first for any Laravel question. Narrow with sources when you know the corpus, and set version for an older Laravel release. Results are ranked across corpora, and no single source takes the whole page when others match. Nothing found is a normal result with count 0.

read_laravel_doc_sectionA

Read one section of a documentation page.

Give it a search result's file (as filename) and section, and it returns that section's markdown and nothing else. This is the cheap way to read: a whole page such as queues.md runs to tens of thousands of tokens, and an answer usually needs one section of it.

section may be an anchor ("dealing-with-failed-jobs"), a heading ("Dealing With Failed Jobs") or a heading written as a slug. If the section is not found, the error lists the sections the page does have.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityActive
ResponsivenessNo recent community issues