How to Give Claude Code & Cursor Access to Local Laravel DB, Logs & MailCatcher
Step-by-step workflow for connecting Claude Code, Cursor, and Windsurf to your local Laravel schema, request logs, and Artisan commands on macOS with Stratos 1.7.1.
Whenever you ask Claude Code, Cursor, or Windsurf to write an Eloquent migration, debug a failing webhook, or optimize an N+1 query, the agent either hallucinates column names or asks you to copy-paste schema:dump outputs, exception logs, and .env context into the prompt window.
With the native Stratos 1.7.1 Model Context Protocol (MCP) bridge, your AI editor reads verified local context directly over localhost loopback—without copying secrets into browser chats or running heavy Docker containers.
Step-by-Step Setup Workflow
- Enable the MCP Bridge: Open Tools → Local AI & MCP in Stratos 1.7.1, select your Laravel project, review the read/execution permissions you want to grant, and click Start bridge. The bridge defaults to off until you start it.
- Install Editor Config in 1 Click: Choose Cursor, Claude Code, Claude Desktop, or Windsurf. Stratos safely merges its loopback MCP entry into your editor config while backing up existing servers. Manual placeholder examples are also published at github.com/khorshedobs/stratos-mcp-guide.
- Inspect Schema on the Free Tier: Immediately ask Cursor or Claude Code to inspect your SQLite, MySQL, or PostgreSQL tables, site metadata, active PHP version (8.1–8.5), and local
.testURLs—free forever without upgrading. - Add Live Telemetry & Approved Execution with Pro: Upgrade to Pro ($39/yr) or Founder Lifetime ($89 once) (or unlock the free 7-Day In-App Pro Pass) to let agents query Nginx/PHP logs, Request Inspector traces, Dump Server payloads, and queue PHP/SQL/Artisan runs behind an explicit macOS approval dialog.
Free vs. Pro MCP Context Boundary
| Local Context / Action | Stratos Free | Stratos Pro / Founder ($89 once) |
|---|---|---|
| Site metadata (domains, PHP version, document root) | Included (Read-only) | Included |
| SQLite, MySQL & PostgreSQL table schemas | Included (Read-only) | Included |
| Runtime Nginx/PHP logs, DumpServer & Request traces | — | Included |
Human-approved PHP, SQL & php artisan commands |
— | Included (Explicit macOS confirmation) |
Local AI Orchestration (Ollama proxy & pgvector) |
— | Included |
Read the full permissions and security model in Local AI & MCP bridge (1.7.1).
Download Stratos 1.7.1 Free → Unlock Pro / $89 Founder Lifetime →