Laravel Forge MCP by usefulapi
v1.42.1Manage Laravel Forge servers, sites, and deployments from your AI assistant.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
forge_list_organizations List organizations
List organizations you belong to. Call this FIRST to get the organization id used by nearly every other tool. Forge v2: GET /orgs.
| Parameter | Type | Description |
|---|---|---|
page_cursor | string | Pagination cursor from links.next / meta (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_get_current_user Get current user
Get the authenticated Forge user. Forge v2: GET /user.
forge_list_servers List servers
List servers in an organization. Call forge_list_organizations first to get the organization id. Forge v2: GET /orgs/{organization}/servers.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id (from forge_list_organizations). |
database_type | string | Filter by database type (maps to filter[database_type]). |
name | string | Filter by server name (maps to filter[name]). |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
php_version | string | Filter by PHP version (maps to filter[php_version]). |
provider | string | Filter by provider (maps to filter[provider]). |
region | string | Filter by region (maps to filter[region]). |
forge_get_server Get server
Get a single server's details. Forge v2: GET /orgs/{organization}/servers/{server}.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id (from forge_list_servers). |
forge_list_server_events List server events
List provisioning/activity events for a server. Forge v2: GET /orgs/{organization}/servers/{server}/events.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_list_sites List sites
List sites hosted on a server. Forge v2: GET /orgs/{organization}/servers/{server}/sites.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
name | string | Filter by site name (maps to filter[name]). |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_get_site Get site
Get a single site's details (org-level lookup — no server id needed). Forge v2: GET /orgs/{organization}/sites/{site}.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
site * | string | Site id (from forge_list_sites). |
forge_list_deployments List deployments
List a site's deployment history. Forge v2: GET /orgs/{organization}/servers/{server}/sites/{site}/deployments.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_get_deployment Get deployment
Get a single deployment's details. Forge v2: GET /orgs/{organization}/servers/{server}/sites/{site}/deployments/{deployment}.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment id (from forge_list_deployments). |
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
forge_get_deployment_log Get deployment log
Get a deployment's output/log. Forge v2: GET /orgs/{organization}/servers/{server}/sites/{site}/deployments/{deployment}/log.
| Parameter | Type | Description |
|---|---|---|
deployment * | string | Deployment id. |
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
forge_get_deployment_status Get deployment status
Get the current deployment status for a site. Forge v2: GET /orgs/{organization}/servers/{server}/sites/{site}/deployments/status.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
forge_list_databases List databases
List database schemas on a server. Forge v2: GET /orgs/{organization}/servers/{server}/database/schemas.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_list_scheduled_jobs List scheduled jobs
List cron/scheduled jobs on a server. Forge v2: GET /orgs/{organization}/servers/{server}/scheduled-jobs.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_list_monitors List monitors
List server monitors (CPU/disk/etc.). Forge v2: GET /orgs/{organization}/servers/{server}/monitors.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_get_site_env Get site environment (.env)
Get a site's .env file content. ⚠️ Returns SENSITIVE config (secrets, DB credentials, API keys). Forge v2: GET /orgs/{organization}/servers/{server}/sites/{site}/environment.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
forge_list_firewall_rules List firewall rules
List a server's firewall rules (allow or deny, by IP and port). Use a rule id with forge_delete_firewall_rule. Forge v2: GET /orgs/{organization}/servers/{server}/firewall-rules.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
name | string | Filter by rule name (maps to filter[name]). |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_list_domains List site domains
List the domains of a site. Use a domain id with forge_list_domain_certificates and forge_request_letsencrypt_certificate. Forge v2: GET /orgs/{organization}/servers/{server}/sites/{site}/domains.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id (from forge_list_sites). |
page_cursor | string | Pagination cursor (maps to page[cursor]). |
page_size | integer | Results per page (maps to page[size]). |
forge_list_domain_certificates List domain certificates
List all SSL certificates of a domain (the list is not paginated), with their type, request status and whether each is active. Forge v2: GET /orgs/{organization}/servers/{server}/sites/{site}/domains/{domain}/certificates.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain id (from forge_list_domains). |
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
forge_deploy_site Deploy site
⚠️ Triggers a new deployment of the site (runs the deployment script). Returns the created deployment. Forge v2: POST /orgs/{organization}/servers/{server}/sites/{site}/deployments.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
forge_run_site_command Run site command
⚠️ Runs an arbitrary shell command in the site's directory on the server. Use with care. Forge v2: POST /orgs/{organization}/servers/{server}/sites/{site}/commands.
| Parameter | Type | Description |
|---|---|---|
command * | string | The shell command to run, e.g. "php artisan migrate --force". |
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
forge_create_firewall_rule Create firewall rule
WRITE: Adds an allow or deny firewall rule to a server. Ask the user before calling. Installed in the background; check it with forge_list_firewall_rules. Refuses a name that exists already (ignoring case). Forge v2: POST /orgs/{organization}/servers/{server}/firewall-rules.
| Parameter | Type | Description |
|---|---|---|
name * | string | Rule name (1-50 characters). |
organization * | string | Organization id. |
server * | string | Server id. |
type * | string | Rule type. |
ip_address | string | IP address or subnet the rule applies to. |
port | string | null | Port or port range the rule applies to, e.g. "443". |
forge_delete_firewall_rule Delete firewall rule
WRITE (destructive): Removes a firewall rule from a server. Ask the user before calling. Without confirm: true it only returns the rule for review and deletes nothing. Forge v2: DELETE /orgs/{organization}/servers/{server}/firewall-rules/{rule}.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization id. |
rule * | string | Rule id (from forge_list_firewall_rules). |
server * | string | Server id. |
confirm | boolean | Must be true to delete the rule. |
forge_create_site Create site
WRITE: Creates a site (app or domain) on a server. Ask the user before calling. Runs in the background; check it with forge_get_site. Refuses a name that exists already (ignoring case). Forge v2: POST /orgs/{organization}/servers/{server}/sites.
| Parameter | Type | Description |
|---|---|---|
name * | string | Site name, usually the domain, e.g. example.com. |
organization * | string | Organization id. |
server * | string | Server id. |
type * | string | Application type. |
branch | string | null | Git branch to deploy from. |
database_id | integer | Database id to attach (from forge_list_databases). |
database_user_id | integer | Database user id to attach. |
php_version | string | PHP version, e.g. php84. |
repository | string | null | Git repository to deploy from. |
root_directory | Root directory without spaces. | |
source_control_provider | Source control provider of the repository. | |
source_control_provider_id | Source control provider account id. | |
web_directory | Web directory without spaces, e.g. public. | |
zero_downtime_deployments | boolean | Use zero-downtime deployments. |
forge_request_letsencrypt_certificate Request Let's Encrypt certificate
WRITE: Requests a Let's Encrypt SSL certificate for a domain. Ask the user before calling. Refuses while another Let's Encrypt request is still verifying or creating. Check the result with forge_list_domain_certificates. Forge v2: POST /orgs/{organization}/servers/{server}/sites/{site}/domains/{domain}/certificates.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain id (from forge_list_domains). |
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
key_type | string | Certificate key type. |
verification_method | string | How Let's Encrypt checks the domain. |
forge_run_certificate_action Enable or disable certificate
WRITE (destructive when disabling): Enables or disables a domain certificate. Disabling turns HTTPS off for the domain, so ask the user before. Without confirm: true a disable only reports what it would do. Forge v2: POST /orgs/{organization}/servers/{server}/sites/{site}/domains/{domain}/certificates/{certificate}/actions.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to run on the certificate. |
certificate * | string | Certificate id (from forge_list_domain_certificates). |
domain * | string | Domain id (from forge_list_domains). |
organization * | string | Organization id. |
server * | string | Server id. |
site * | string | Site id. |
confirm | boolean | Must be true to run a disable. |