cd /news/ai-agents/i-built-a-free-laravel-mcp-config-ge… · home › topics › ai-agents › article
[ARTICLE · art-177562] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

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

A developer built a free, client-side Laravel MCP Config Generator that outputs ready-to-paste MCP configuration JSON for Cursor, Claude Code, Claude Desktop, Windsurf, and VS Code, each of which uses a different config path and key format. The tool pairs with a native macOS companion that exposes read-only MCP tools for site listings, database schemas, log tails, HTTP timings, and dumps, while write-capable tools like run_tinker and query_database require an explicit per-call approval prompt. The local MCP endpoint binds to 127.0.0.1:9921 with Host/Origin checks and ephemeral session Bearer tokens.

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.

by read1 min views12 publishedNov 28, 2026

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/ 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!

── more in #ai-agents 4 stories · sorted by recency
── more on @laravel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-a-free-larav…] indexed:0 read:1min 2026-11-28 · —