Laravel Forge MCP Server (Extended)
Allows installing and removing Bitbucket repositories on Laravel Forge sites.
Allows configuring Composer install to run during deployments.
Allows getting and updating .env files for Laravel Forge sites.
Allows installing and removing Git repositories from various providers on sites.
Allows installing and removing GitHub repositories on Laravel Forge sites.
Allows installing and removing GitLab repositories on Laravel Forge sites.
Provides management of Laravel Forge servers, sites, databases, workers, daemons, and deployments.
Allows creating daemons specifically for running Laravel Horizon.
Allows obtaining and activating Let's Encrypt SSL certificates for sites.
Allows getting and updating Nginx configuration for Laravel Forge sites.
Allows listing installed PHP versions and configuring PHP version per site.
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 MCP Server (Extended)list all my forge servers"
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 Server (Extended)
A comprehensive Model Context Protocol (MCP) server for interacting with Laravel Forge API. This server enables AI assistants to fully manage Laravel Forge servers, sites, databases, workers, daemons, SSL certificates, and deployments.
Attribution
This project is a fork of bretterer/forge-mcp-server by @bretterer.
Original features by bretterer:
Server listing and details
Site management (list, get)
Deployment triggering and script management
Quick deploy toggle
Server reboot and load metrics
Extended by OBS Technologies:
Site creation and deletion
Git repository installation/removal
Environment file management (.env)
SSL certificate management (Let's Encrypt)
Nginx configuration
Database management (create, list, delete)
Queue workers (create, list, delete, restart)
Scheduled jobs/cron (create, list, delete)
Daemons (create, list, delete, restart) - perfect for Laravel Horizon
PHP version listing
Site aliases management
Improved error handling
Related MCP server: Forge MCP Server
Features
Server Management
List and get details of Laravel Forge servers
View server load metrics (CPU, memory, disk)
Reboot servers
List installed PHP versions
Site Management
Create new sites with custom domains
Delete sites
Update domain aliases
Configure PHP version per site
Isolated site users
Deployment
Deploy sites
View deployment history
Get/update deployment scripts
Toggle quick deploy (auto-deploy on git push)
Reset stuck deployment states
Git Integration
Install Git repositories (GitHub, GitLab, Bitbucket)
Remove Git repositories
Configure composer install on deploy
Environment & Configuration
Get/update .env files
Get/update Nginx configuration
SSL Certificates
List SSL certificates
Obtain Let's Encrypt certificates
Activate certificates
Database Management
List databases
Create databases with optional user
Delete databases
Queue Workers
List workers
Create workers (connection, queue, timeout, processes)
Delete workers
Restart workers
Scheduled Jobs (Cron)
List scheduled jobs
Create scheduled jobs with cron frequency
Delete scheduled jobs
Daemons
List daemons
Create daemons (perfect for Laravel Horizon)
Delete daemons
Restart daemons
Installation
git clone https://github.com/AnomalousCoders/forge-mcp-server.git
cd forge-mcp-server
npm install
npm run buildConfiguration
Prerequisites
You need a Laravel Forge API key. Get one from your Laravel Forge account settings.
Claude Code Configuration
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"forge": {
"command": "node",
"args": ["/path/to/forge-mcp-server/dist/index.js"],
"env": {
"FORGE_API_KEY": "your_forge_api_key"
}
}
}
}Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"forge": {
"command": "node",
"args": ["/path/to/forge-mcp-server/dist/index.js"],
"env": {
"FORGE_API_KEY": "your_forge_api_key"
}
}
}
}Available Tools (37 Total)
Server Tools
Tool | Description |
| List all Laravel Forge servers |
| Get details of a specific server |
| Get server load metrics |
| Reboot a server |
Site Tools
Tool | Description |
| List all sites on a server |
| Get details of a specific site |
| Create a new site |
| Delete a site |
| Update domain aliases |
Deployment Tools
Tool | Description |
| Deploy a site |
| Get deployment history |
| Get deployment script |
| Update deployment script |
| Enable/disable quick deploy |
| Reset stuck deployments |
Git Tools
Tool | Description |
| Install Git repo on site |
| Remove Git repo from site |
Environment Tools
Tool | Description |
| Get .env file contents |
| Update .env file |
SSL Tools
Tool | Description |
| List SSL certificates |
| Get Let's Encrypt certificate |
| Activate a certificate |
Nginx Tools
Tool | Description |
| Get Nginx configuration |
| Update Nginx configuration |
Database Tools
Tool | Description |
| List all databases |
| Create a database |
| Delete a database |
Worker Tools
Tool | Description |
| List queue workers |
| Create a queue worker |
| Delete a worker |
| Restart a worker |
Scheduled Job Tools
Tool | Description |
| List cron jobs |
| Create a cron job |
| Delete a cron job |
Daemon Tools
Tool | Description |
| List daemons |
| Create a daemon |
| Delete a daemon |
| Restart a daemon |
PHP Tools
Tool | Description |
| List installed PHP versions |
Example: Deploy a Laravel App with Horizon
# 1. Create site
create_site: domain=myapp.com, projectType=php, serverId=123
# 2. Install Git repo
install_git_repository: provider=github, repository=user/repo, branch=main, composer=true
# 3. Set up environment
update_env: content="APP_ENV=production\n..."
# 4. Get SSL certificate
obtain_letsencrypt_cert: domains=["myapp.com", "www.myapp.com"]
# 5. Create Horizon daemon
create_daemon: command="php /home/forge/myapp.com/artisan horizon", user=forge
# 6. Create scheduler cron
create_scheduled_job: command="php /home/forge/myapp.com/artisan schedule:run", frequency="* * * * *", user=forge
# 7. Deploy
deploy_site: serverId=123, siteId=456Development
# Install dependencies
npm install
# Build
npm run build
# Run in development
npm run devLicense
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Credits
Original author: @bretterer
Extended by: OBS Technologies
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/OBSTechnologies/forge-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server