Enables communication with FiveM game servers via RCON protocol, providing tools for managing plugins (start, stop, restart), monitoring server logs, retrieving plugin logs, refreshing resources, and executing arbitrary RCON commands.
Built on TypeScript to provide type-safe interaction with FiveM servers, enabling structured access to server resources, logs, and management functions.
mcp-fivem MCP Server
FiveM RCON Model Context Protocolサーバー
このTypeScriptベースのMCPサーバーは、FiveMプラグイン開発のデバッグとサーバー管理機能を提供します:
- RCON経由でのFiveMサーバー通信
- プラグインの管理(ensure、stop、restart)
- サーバーログの監視とプラグインログの取得
- リソースの更新とサーバーステータスの確認
- 任意のRCONコマンドの実行
機能詳細
リソース
fivem://logs/recent
- 最新のサーバー操作ログfivem://console/info
- サーバーコンソール情報(ログファイル経由)
ツール
connect_server
- RCON経由でFiveMサーバーに接続- パラメータ: host (オプション、デフォルト: localhost), port (オプション、デフォルト: 30120), password (必須), logs_dir (オプション)
ensure_plugin
- FiveMプラグインを開始/確保- パラメータ: plugin_name (必須)
stop_plugin
- FiveMプラグインを停止- パラメータ: plugin_name (必須)
restart_plugin
- FiveMプラグインを再起動- パラメータ: plugin_name (必須)
execute_command
- 任意のRCONコマンドを実行- パラメータ: command (必須)
refresh_resources
- FiveMサーバーのリソースリストを更新get_server_logs
- FiveMサーバーのコンソールログを取得- パラメータ: lines (オプション、デフォルト: 100)
get_plugin_logs
- FiveMプラグイン/スクリプトログを取得- パラメータ: lines (オプション、デフォルト: 50), plugin_name (オプション)
clear_logs
- ローカル操作ログをクリア
開発
依存関係のインストール:
サーバーのビルド:
開発時の自動リビルド:
インストール
Cursor IDE
Cursor IDEで使用するには、設定を追加します:
- Cursor IDE設定を開く(Cmd/Ctrl + ,)
- "MCP"で検索
- 以下の設定を追加:
または、Cursor設定ファイル(settings.json
)に直接追加することもできます。
環境変数設定
以下の環境変数を設定することで、自動接続やデフォルト値を利用できます:
RCON_ADDRESS
: FiveMサーバーのホスト(必須)RCON_PORT
: RCONポート(必須)RCON_PASSWORD
: RCONパスワード(必須)FIVEM_LOGS_DIR
: ログファイルが格納されているディレクトリのパス(ログ機能使用時は必須)
すべての環境変数が設定されている場合、MCPサーバー起動時に自動的に接続を試行します。
ログ機能について:
get_server_logs
およびget_plugin_logs
ツールを使用するには、FIVEM_LOGS_DIR
の設定が必須です。
ログディレクトリパスの設定
FIVEM_LOGS_DIR
には、ログファイル(fxserver.log
、server.log
等)が直接格納されているディレクトリを指定してください。
設定例:
ディレクトリ構造例:
InspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。
This server cannot be installed
A TypeScript-based server that provides debugging and management capabilities for FiveM plugin development, allowing developers to control plugins, monitor server logs, and execute RCON commands.
Related MCP Servers
- AsecurityAlicenseAqualityTypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.Last updated -313MIT License
- AsecurityAlicenseAqualityThis TypeScript-based MCP server enables users to manage a simple notes system with capabilities to create and summarize notes through structured prompts and resources.Last updated -50TypeScriptMIT License
- -securityFlicense-qualityThis TypeScript-based server implements a simple notes system, allowing users to create and manage text notes and generate summaries, showcasing core MCP concepts.Last updated -27TypeScript
- -securityFlicense-qualityThis TypeScript-based MCP server allows users to manage a simple notes system through creating and summarizing text notes using Model Context Protocol (MCP).Last updated -4156TypeScript