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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseDqualityDmaintenanceA 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.11
- Alicense-qualityCmaintenanceIntegrates 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.202MIT
- AlicenseBqualityDmaintenanceMCP server for managing Laravel Forge servers, sites, and deployments via the Forge API.128068MIT
- Flicense-qualityCmaintenanceA project and task manager MCP server built with Laravel, enabling AI to manage projects and tasks through tools, resources, and prompts.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vitrionbv/laravel-forge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server