Hi everyone, I’m Abu Sayed, and if you’ve been following my journey as a web developer, you know I’m always looking for ways to make my coding workflow faster, smarter, and more efficient.
Lately, I’ve been using the Antigravity IDE, and I’ve discovered a way to make it truly understand my Laravel projects by using the Model Context Protocol (MCP). By connecting Laravel Boost and Laravel Herd directly to the AI, I can now run Artisan commands, execute Tinker code, and manage my local sites without ever leaving the chat interface.
In this post, I’ll show you exactly how I set this up so you can do the same.
The Model Context Protocol (MCP) is a game-changer. It allows AI assistants (like the one in Antigravity) to use local tools on your machine. Instead of just “guessing” what your code does, the AI can actually “talk” to your Laravel application and your Herd environment.
Before starting, make sure you have:
Antigravity looks for its MCP settings in a specific JSON file. On Windows, this is typically located at:
C:\Users\<YourUsername>\.gemini\antigravity\mcp_config.json
Laravel Boost provides the deep integration with your Laravel app. We need to tell Antigravity to run the boost:mcp Artisan command.
Pro Tip: Always use absolute paths in the configuration to avoid “file not found” errors. Replace <YourProject> and <YourUsername> with your actual local details.
Herd’s MCP server allows the AI to see your local sites, manage SSL/HTTPS, and identify which PHP versions you’re using. The Herd MCP binary is usually a .phar file located in your Herd config folder.
Here is a generic template of what your configuration should look like. Make sure to update the paths to point directly to your specific project and Herd installation:
After saving the file, restart Antigravity. Immediately, you’ll see a whole new set of tools available! You can now ask things like:
As developers, we spend a lot of time context-switching between the IDE, the terminal, and the browser. By bringing Laravel Boost and Herd into the AI context, I’ve removed that friction. The AI doesn’t just suggest code; it understands my migrations, my environment, and my server setup.
If you’re a Laravel dev using modern AI tools, you owe it to yourself to set this up. It feels like having a senior developer sitting right next to you who knows every inch of your local environment.
Happy coding!
— Abu Sayed
Please share by clicking this button!
Visit our site and see all other available articles!