forge-mcp-server
Allows interaction with Laravel Forge API, enabling AI agents to manage servers, sites, deployments, and deployment scripts on Laravel Forge.
Click on "Deploy 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., "@forge-mcp-server List all my Laravel 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
A Model Context Protocol (MCP) server for interacting with Laravel Forge API. This server enables AI assistants to manage Laravel Forge servers, sites, and deployments.
Features
List and get details of Laravel Forge servers
Manage sites on Laravel Forge servers
Deploy sites and manage deployment scripts
Toggle quick deploy functionality
View deployment history
Reboot servers and check server load
Related MCP server: Forge MCP Server
Installation
npm install @bretterer/forge-mcp-serverUsage
Prerequisites
You need a Laravel Forge API key to use this server. You can get one from your Laravel Forge account settings.
Environment Variables
Set your Laravel Forge API key as an environment variable:
export FORGE_API_KEY=your_forge_api_keyRunning the Server
npx forge-mcp-serverOr add it to your project:
import { ForgeServer } from '@bretterer/forge-mcp-server';
const server = new ForgeServer();
server.run().catch(console.error);Available Tools
The MCP server provides the following tools:
list_servers- List all Laravel Forge serversget_server- Get details of a specific serverlist_sites- List all sites on a serverget_site- Get details of a specific sitedeploy_site- Deploy a siteget_deployments- Get deployment history for a siteget_deployment_script- Get the deployment script for a siteupdate_deployment_script- Update the deployment script for a sitetoggle_quick_deploy- Enable or disable quick deploy for a sitereboot_server- Reboot a serverget_server_load- Get server load metricsreset_deployment_state- Reset deployment state for a site
Development
Setup
git clone https://github.com/bretterer/forge-mcp-server.git
cd forge-mcp-server
npm installBuild
npm run buildRun in Development Mode
npm run devLicense
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Available Tools
12 toolsdeploy_siteC
Deploy a site
Inputs: siteId (required), serverId (required).
get_deploymentsC
Get deployment history for a site
Inputs: siteId (required), serverId (required).
get_deployment_scriptB
Get the deployment script for a site
Inputs: siteId (required), serverId (required).
get_serverB
Get details of a specific server
Inputs: serverId (required).
get_server_loadC
Get server load metrics
Inputs: serverId (required).
get_siteB
Get details of a specific site
Inputs: siteId (required), serverId (required).
list_serversA
List all Laravel Forge servers
Inputs: no named parameters.
list_sitesB
List all sites on a server
Inputs: serverId (required).
reboot_serverD
Reboot a server
Inputs: serverId (required).
reset_deployment_stateC
Reset deployment state for a site
Inputs: siteId (required), serverId (required).
toggle_quick_deployC
Enable or disable quick deploy for a site
Inputs: enable (required), siteId (required), serverId (required).
update_deployment_scriptC
Update the deployment script for a site
Inputs: siteId (required), content (required), serverId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct action and resource (site, server, deployment). No two tools have overlapping purposes; descriptions are clear and unambiguous.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., deploy_site, get_server_load). No deviation or mixing of conventions.
12 tools is well-scoped for a server management API. Each tool earns its place, covering server and site details, deployment operations, and script management without being overwhelming.
Core monitoring and deployment operations are present, but basic lifecycle actions like creating or deleting servers/sites are missing, representing notable gaps for full CRUD coverage.
Maintenance
Related MCP Connectors
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Official xCloud MCP: manage servers, sites, WordPress, SSL, backups and deploys from any MCP client.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseDqualityDmaintenanceA minimalist MCP server that integrates with Laravel Forge, allowing users to manage their Laravel Forge servers, sites, and deployments through AI assistants like Claude Desktop, Windsurf, or Cursor.12MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates with the Laravel Forge API to provide comprehensive management of servers and sites. It enables users to perform health checks, monitor logs, create resources, and execute deployment tasks through MCP-compliant tools.22 npm2MIT
- AlicenseDqualityDmaintenanceMCP server for managing Pterodactyl game panel resources (users, servers, nodes, locations, etc.) via the Application API.503MIT
- AlicenseBqualityDmaintenanceMCP server for Laravel Cloud to manage projects, environments, deployments, and other resources.98ISC