L

Laravel MCP Companion

by brianirish · io.github.brianirish/laravel-mcp-companion

Laravel MCP Companion is an MCP server that keeps Laravel's documentation on your machine and lets an AI assistant search and read it. It holds the framework docs for every version from 6.x to the newest, the first-party services, and widely used packages. No documentation is fetched while you work, so it answers without a network connection.

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-brianirish-laravel-mcp-companion": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "host=<YOUR_VALUE>",
        "-e",
        "port=<YOUR_VALUE>",
        "-e",
        "version=<YOUR_VALUE>",
        "-e",
        "docs-path=<YOUR_VALUE>",
        "-e",
        "log-level=<YOUR_VALUE>",
        "-e",
        "transport=<YOUR_VALUE>",
        "-e",
        "server-name=<YOUR_VALUE>",
        "-e",
        "update-docs=<YOUR_VALUE>",
        "-e",
        "force-update=<YOUR_VALUE>",
        "ghcr.io/brianirish/laravel-mcp-companion:v1.0.0-rc1"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-brianirish-laravel-mcp-companion": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "host=<YOUR_VALUE>",
        "-e",
        "port=<YOUR_VALUE>",
        "-e",
        "version=<YOUR_VALUE>",
        "-e",
        "docs-path=<YOUR_VALUE>",
        "-e",
        "log-level=<YOUR_VALUE>",
        "-e",
        "transport=<YOUR_VALUE>",
        "-e",
        "server-name=<YOUR_VALUE>",
        "-e",
        "update-docs=<YOUR_VALUE>",
        "-e",
        "force-update=<YOUR_VALUE>",
        "ghcr.io/brianirish/laravel-mcp-companion:v1.0.0-rc1"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-brianirish-laravel-mcp-companion": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "host=<YOUR_VALUE>",
        "-e",
        "port=<YOUR_VALUE>",
        "-e",
        "version=<YOUR_VALUE>",
        "-e",
        "docs-path=<YOUR_VALUE>",
        "-e",
        "log-level=<YOUR_VALUE>",
        "-e",
        "transport=<YOUR_VALUE>",
        "-e",
        "server-name=<YOUR_VALUE>",
        "-e",
        "update-docs=<YOUR_VALUE>",
        "-e",
        "force-update=<YOUR_VALUE>",
        "ghcr.io/brianirish/laravel-mcp-companion:v1.0.0-rc1"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-brianirish-laravel-mcp-companion": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "host=<YOUR_VALUE>",
        "-e",
        "port=<YOUR_VALUE>",
        "-e",
        "version=<YOUR_VALUE>",
        "-e",
        "docs-path=<YOUR_VALUE>",
        "-e",
        "log-level=<YOUR_VALUE>",
        "-e",
        "transport=<YOUR_VALUE>",
        "-e",
        "server-name=<YOUR_VALUE>",
        "-e",
        "update-docs=<YOUR_VALUE>",
        "-e",
        "force-update=<YOUR_VALUE>",
        "ghcr.io/brianirish/laravel-mcp-companion:v1.0.0-rc1"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-brianirish-laravel-mcp-companion": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "host=<YOUR_VALUE>",
        "-e",
        "port=<YOUR_VALUE>",
        "-e",
        "version=<YOUR_VALUE>",
        "-e",
        "docs-path=<YOUR_VALUE>",
        "-e",
        "log-level=<YOUR_VALUE>",
        "-e",
        "transport=<YOUR_VALUE>",
        "-e",
        "server-name=<YOUR_VALUE>",
        "-e",
        "update-docs=<YOUR_VALUE>",
        "-e",
        "force-update=<YOUR_VALUE>",
        "ghcr.io/brianirish/laravel-mcp-companion:v1.0.0-rc1"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-brianirish-laravel-mcp-companion": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "host=<YOUR_VALUE>",
        "-e",
        "port=<YOUR_VALUE>",
        "-e",
        "version=<YOUR_VALUE>",
        "-e",
        "docs-path=<YOUR_VALUE>",
        "-e",
        "log-level=<YOUR_VALUE>",
        "-e",
        "transport=<YOUR_VALUE>",
        "-e",
        "server-name=<YOUR_VALUE>",
        "-e",
        "update-docs=<YOUR_VALUE>",
        "-e",
        "force-update=<YOUR_VALUE>",
        "ghcr.io/brianirish/laravel-mcp-companion:v1.0.0-rc1"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
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 Default: 12.x
docs-path No Path to Laravel documentation directory Default: ./docs
log-level No Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL Default: INFO
transport No Transport mechanism: stdio, websocket, sse Default: stdio
server-name No Name of the MCP server Default: LaravelDocs
update-docs No Update documentation before starting server
force-update No Force update of documentation even if already up to date

Similar servers