laravel-forge-mcp
Allows managing Composer credentials for sites via Laravel Forge.
Provides comprehensive management of Laravel Forge through the Forge API, including servers, sites, deployments, databases, backups, scheduled jobs, firewall rules, and more.
Allows performing MySQL service actions and configuration management on Forge-managed servers.
Allows managing NGINX site configuration, templates, security rules, redirects, and NGINX service actions on Forge servers.
Allows managing npm credentials for sites via Laravel Forge.
Allows managing PHP versions, PHP configuration, and OPcache on Forge-managed servers.
Allows performing Redis service actions and configuration management on Forge-managed servers.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@laravel-forge-mcpShow me all servers and their status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
laravel-forge-mcp
Laravel Forge MCP server — full Forge API v2 coverage for AI assistants via the Model Context Protocol.
This server uses the official JSON:API v2 endpoints (https://forge.laravel.com/api). It does not use the legacy v1 API (/api/v1).
Features
~270 tools covering servers, sites, deployments, databases, backups, PHP, services, teams, roles, recipes, and more
Cursor pagination, filtering, sorting, and relationship includes
Automatic rate-limit retry (429 +
Retry-After)Organization-scoped paths with optional default org via
FORGE_ORGANIZATION
Requirements
Node.js >= 20
Environment variables
Variable | Required | Description |
| Yes | Bearer token from Forge API settings |
| No | Default organization slug for org-scoped tools |
FORGE_API_KEY is accepted as a silent alias for FORGE_API_TOKEN.
Install
Cursor
Add to your user config (~/.cursor/mcp.json) or project config (.cursor/mcp.json):
{
"mcpServers": {
"laravel-forge-mcp": {
"command": "npx",
"args": ["-y", "@vitrion/laravel-forge-mcp"],
"env": {
"FORGE_API_TOKEN": "your-forge-api-token",
"FORGE_ORGANIZATION": "your-org-slug"
}
}
}
}You can also add the server from Cursor Settings → Tools & MCP.
Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"laravel-forge-mcp": {
"command": "npx",
"args": ["-y", "@vitrion/laravel-forge-mcp"],
"env": {
"FORGE_API_TOKEN": "your-forge-api-token",
"FORGE_ORGANIZATION": "your-org-slug"
}
}
}
}Claude Code
claude mcp add laravel-forge-mcp -- npx -y @vitrion/laravel-forge-mcpSet FORGE_API_TOKEN (and optionally FORGE_ORGANIZATION) in your shell environment or MCP host config.
Tool groups
Tools are named in kebab-case and map one-to-one to Forge API v2 operations:
Group | Examples |
User & organizations | Current user, org list, server credentials, VPCs |
Servers | CRUD, actions (reboot), archives, network, events |
Sites | Global/org/server sites, env, nginx, health, load balancing, composer/npm credentials |
Domains & certificates | Domains, DNS, nginx, certificates, domain actions |
Deployments | Deployments, scripts, push-to-deploy, deploy hook/key, webhooks |
Background processes | CRUD, logs, start/stop/restart actions |
Databases & backups | Schemas, users, backup configs/instances, restores |
Storage providers | S3-compatible backup storage CRUD |
Scheduled jobs & commands | Server/site cron jobs, site commands |
Firewall, SSH & monitors | Firewall rules, SSH keys, uptime monitors, server logs |
Nginx, security & redirects | Templates, security rules, redirect rules |
Integrations & logs | Horizon, Octane, Reverb, Pulse, site logs, heartbeats |
Recipes | Org recipes, forge recipes, team shares |
Teams & roles | Teams, members, invites, shares, roles, permissions |
Providers | Cloud providers, sizes, regions |
PHP & services | PHP versions/configs/OPcache, service actions (nginx, mysql, redis, …) |
List tools support shared query parameters: include, filter, sort, pageSize, and cursor.
Development
git clone https://github.com/vitrionbv/laravel-forge-mcp.git
cd laravel-forge-mcp
npm install
npm run build
npm test
npm run devInspector
Debug the MCP server with the official inspector (requires a built dist/):
npm run build
npm run inspectorOr directly:
npx @modelcontextprotocol/inspector node dist/index.jsLicense
MIT — see LICENSE.
Repository
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vitrionbv/laravel-forge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server