Laravel Forge MCP by usefulapi

v1.42.1
io.usefulapi/laravel-forge Checked 1 day ago Published 6 hours ago

Manage 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.

ParameterTypeDescription
page_cursorstringPagination cursor from links.next / meta (maps to page[cursor]).
page_sizeintegerResults 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.

ParameterTypeDescription
organization *stringOrganization id (from forge_list_organizations).
database_typestringFilter by database type (maps to filter[database_type]).
namestringFilter by server name (maps to filter[name]).
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults per page (maps to page[size]).
php_versionstringFilter by PHP version (maps to filter[php_version]).
providerstringFilter by provider (maps to filter[provider]).
regionstringFilter by region (maps to filter[region]).

forge_get_server Get server

Get a single server's details. Forge v2: GET /orgs/{organization}/servers/{server}.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
namestringFilter by site name (maps to filter[name]).
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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}.

ParameterTypeDescription
organization *stringOrganization id.
site *stringSite 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
site *stringSite id.
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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}.

ParameterTypeDescription
deployment *stringDeployment id (from forge_list_deployments).
organization *stringOrganization id.
server *stringServer id.
site *stringSite 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.

ParameterTypeDescription
deployment *stringDeployment id.
organization *stringOrganization id.
server *stringServer id.
site *stringSite 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
site *stringSite id.

forge_list_databases List databases

List database schemas on a server. Forge v2: GET /orgs/{organization}/servers/{server}/database/schemas.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
site *stringSite 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
namestringFilter by rule name (maps to filter[name]).
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
site *stringSite id (from forge_list_sites).
page_cursorstringPagination cursor (maps to page[cursor]).
page_sizeintegerResults 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.

ParameterTypeDescription
domain *stringDomain id (from forge_list_domains).
organization *stringOrganization id.
server *stringServer id.
site *stringSite 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.

ParameterTypeDescription
organization *stringOrganization id.
server *stringServer id.
site *stringSite 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.

ParameterTypeDescription
command *stringThe shell command to run, e.g. "php artisan migrate --force".
organization *stringOrganization id.
server *stringServer id.
site *stringSite 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.

ParameterTypeDescription
name *stringRule name (1-50 characters).
organization *stringOrganization id.
server *stringServer id.
type *stringRule type.
ip_addressstringIP address or subnet the rule applies to.
portstring | nullPort 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}.

ParameterTypeDescription
organization *stringOrganization id.
rule *stringRule id (from forge_list_firewall_rules).
server *stringServer id.
confirmbooleanMust 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.

ParameterTypeDescription
name *stringSite name, usually the domain, e.g. example.com.
organization *stringOrganization id.
server *stringServer id.
type *stringApplication type.
branchstring | nullGit branch to deploy from.
database_idintegerDatabase id to attach (from forge_list_databases).
database_user_idintegerDatabase user id to attach.
php_versionstringPHP version, e.g. php84.
repositorystring | nullGit repository to deploy from.
root_directoryRoot directory without spaces.
source_control_providerSource control provider of the repository.
source_control_provider_idSource control provider account id.
web_directoryWeb directory without spaces, e.g. public.
zero_downtime_deploymentsbooleanUse 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.

ParameterTypeDescription
domain *stringDomain id (from forge_list_domains).
organization *stringOrganization id.
server *stringServer id.
site *stringSite id.
key_typestringCertificate key type.
verification_methodstringHow 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.

ParameterTypeDescription
action *stringAction to run on the certificate.
certificate *stringCertificate id (from forge_list_domain_certificates).
domain *stringDomain id (from forge_list_domains).
organization *stringOrganization id.
server *stringServer id.
site *stringSite id.
confirmbooleanMust be true to run a disable.