laravel-forge-mcp

laravel-forge-mcp

MCP server enabling AI assistants to manage Laravel Forge through the full Forge API v2, with ~270 tools for servers, sites, deployments, databases, backups, and more.

Category
Visit Server

README

laravel-forge-mcp

npm version License: MIT Node.js Version 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

Environment variables

Variable Required Description
FORGE_API_TOKEN Yes Bearer token from Forge API settings
FORGE_ORGANIZATION 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-mcp

Set 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 dev

Inspector

Debug the MCP server with the official inspector (requires a built dist/):

npm run build
npm run inspector

Or directly:

npx @modelcontextprotocol/inspector node dist/index.js

License

MIT — see LICENSE.

Repository

vitrionbv/laravel-forge-mcp

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured