# I Built a Free Laravel MCP Config Generator + VS Code/Cursor Companion for Native macOS PHP Stacks

> Source: <https://dev.to/stratos_mac/i-built-a-free-laravel-mcp-config-generator-vs-codecursor-companion-for-native-macos-php-stacks-25eg>
> Published: 2026-11-28 02:42:00+00:00

**Key takeaway:** Each AI client expects a different MCP config schema—Cursor's .cursor/mcp.json uses mcpServers.<name>.url, Windsurf uses serverUrl, and Claude Desktop needs a stdio relay—so generate per-client configs rather than hand-editing them.

Connecting **Cursor**, **Claude Code**, **Claude Desktop**, or **Windsurf** to a local Laravel or WordPress project shouldn't require hand-editing four different JSON schemas every time you start a project.

Every AI client uses a slightly different MCP config path and key format:

`.cursor/mcp.json` → `mcpServers.<name>.url`
`.mcp.json` → `mcpServers.<name>` with `"type": "http"`
`.vscode/mcp.json` → `servers.<name>` with `~/.codeium/windsurf/mcp_config.json` → `mcpServers.<name>.serverUrl`
`claude_desktop_config.json` → `stdio` relay (`command` + `args`)
I built a 100% client-side, zero-login **Laravel MCP Config Generator** that outputs ready-to-paste JSON for all of them in one click:

👉 **Try it free:** [https://stratosapp.dev/tools/laravel-mcp-config-generator/](https://stratosapp.dev/tools/laravel-mcp-config-generator/)

You pick your AI client, paste your local loopback MCP endpoint (`http://127.0.0.1:9921/mcp`) and session Bearer token, and get the exact file path + schema without guessing field names.

When connecting an AI coding agent to your local Laravel stack, you want **zero-friction read context** without letting a rogue prompt silently wipe a database:

`get_sites`), database table schemas & foreign keys (` get_schema`), bounded `laravel.log` tails (`read_logs`), HTTP timings (` read_http_requests`), and captured dumps (` read_dumps`).` run_tinker`, `query_database`, `run_artisan`) queue for an explicit native macOS approval prompt per call instead of executing blindly.`127.0.0.1:9921` with Host/Origin checks and ephemeral session Bearer tokens.
If you're also troubleshooting local `.test` SSL certificates, benchmarking Docker Desktop VirtioFS vs native APFS PHP-FPM sockets, or migrating off Laravel Sail, grab our 3 read-only bash scripts on GitHub:

Which AI editor are you pairing with Laravel right now — Cursor, Claude Code, Windsurf, or VS Code? Let me know if you want another client schema added to the generator!
