
FiveM MCP Server
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.
README
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
- ローカル操作ログをクリア
開発
依存関係のインストール:
npm install
サーバーのビルド:
npm run build
開発時の自動リビルド:
npm run watch
インストール
Cursor IDE
Cursor IDEで使用するには、設定を追加します:
- Cursor IDE設定を開く(Cmd/Ctrl + ,)
- "MCP"で検索
- 以下の設定を追加:
{
"mcp.servers": {
"mcp-fivem": {
"command": "/path/to/mcp-fivem/build/index.js",
"env": {
"RCON_ADDRESS": "localhost",
"RCON_PORT": "30120",
"RCON_PASSWORD": "your_rcon_password",
"FIVEM_LOGS_DIR": "/path/to/your/fivem/txData/default/logs"
}
}
}
}
または、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
等)が直接格納されているディレクトリを指定してください。
設定例:
export RCON_ADDRESS="localhost"
export RCON_PORT="30120"
export RCON_PASSWORD="your_rcon_password"
export FIVEM_LOGS_DIR="/path/to/server/txData/default/logs"
ディレクトリ構造例:
/path/to/server/txData/default/logs/ ← FIVEM_LOGS_DIRで直接指定
├── fxserver.log ← メインログファイル
├── server.log ← サーバーログファイル
└── fxserver_20240101.log ← 日付付きバックアップ
npm run inspector
InspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。
Recommended Servers
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.
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.
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.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.