laravel-forge-mcp
laravel-forge-mcp
Laravel Forge MCP サーバー — Model Context Protocol を介して AI アシスタントに Forge API v2 の全機能を提供します。
このサーバーは公式の JSON:API v2 エンドポイント(https://forge.laravel.com/api)を使用します。レガシーな v1 API(/api/v1)は使用しません。
特徴
サーバー、サイト、デプロイ、データベース、バックアップ、PHP、サービス、チーム、ロール、レシピなどをカバーする 約270のツール
カーソルページネーション、フィルタリング、ソート、リレーションのインクルード
レート制限の自動リトライ(429 +
Retry-After)組織スコープのパスと、
FORGE_ORGANIZATIONによるオプションのデフォルト組織
Related MCP server: Forge MCP Server
要件
Node.js >= 20
環境変数
変数 | 必須 | 説明 |
| はい | Forge API 設定 の Bearer トークン |
| いいえ | 組織スコープのツールに使用するデフォルトの組織スラッグ |
FORGE_API_KEY は FORGE_API_TOKEN の代替として暗黙的に受け付けられます。
インストール
Cursor
ユーザー設定(~/.cursor/mcp.json)またはプロジェクト設定(.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"
}
}
}
}Cursor 設定 → 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シェル環境または MCP ホスト設定で FORGE_API_TOKEN(および必要に応じて FORGE_ORGANIZATION)を設定します。
ツールグループ
ツールはケバブケースで命名され、Forge API v2 の操作と一対一で対応しています:
グループ | 例 |
ユーザーと組織 | 現在のユーザー、組織一覧、サーバー資格情報、VPC |
サーバー | CRUD、アクション(再起動)、アーカイブ、ネットワーク、イベント |
サイト | グローバル/組織/サーバーのサイト、環境、nginx、ヘルス、ロードバランシング、composer/npm 資格情報 |
ドメインと証明書 | ドメイン、DNS、nginx、証明書、ドメインアクション |
デプロイ | デプロイ、スクリプト、push-to-deploy、デプロイフック/キー、webhook |
バックグラウンドプロセス | CRUD、ログ、開始/停止/再起動アクション |
データベースとバックアップ | スキーマ、ユーザー、バックアップ設定/インスタンス、リストア |
ストレージプロバイダー | S3 互換バックアップストレージの CRUD |
スケジュールジョブとコマンド | サーバー/サイトの cron ジョブ、サイトコマンド |
ファイアウォール、SSH、モニター | ファイアウォールルール、SSH キー、アップタイムモニター、サーバーログ |
Nginx、セキュリティ、リダイレクト | テンプレート、セキュリティルール、リダイレクトルール |
統合とログ | Horizon、Octane、Reverb、Pulse、サイトログ、ハートビート |
レシピ | 組織レシピ、forge レシピ、チーム共有 |
チームとロール | チーム、メンバー、招待、共有、ロール、権限 |
プロバイダー | クラウドプロバイダー、サイズ、リージョン |
PHP とサービス | PHP バージョン/設定/OPcache、サービスアクション(nginx、mysql、redis など) |
一覧ツールは共通のクエリパラメータ(include、filter、sort、pageSize、cursor)をサポートしています。
開発
git clone https://github.com/vitrionbv/laravel-forge-mcp.git
cd laravel-forge-mcp
npm install
npm run build
npm test
npm run devインスペクター
公式インスペクターで MCP サーバーをデバッグします(ビルド済みの dist/ が必要です):
npm run build
npm run inspectorまたは直接:
npx @modelcontextprotocol/inspector node dist/index.jsライセンス
MIT — LICENSE を参照してください。
リポジトリ
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
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.34 npm2MIT
- AlicenseBqualityCmaintenanceMCP server for managing Laravel Forge servers, sites, and deployments via the Forge API.1237 npm9MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to fully manage Laravel Forge servers, sites, databases, workers, daemons, SSL certificates, and deployments.3937 npmMIT