mythic-mcp
mythic-mcp
Mythic C2 フレームワークを MCP サーバーとして公開し、LLM(Claude など)がエージェントを操作したり、タスクを発行したり、プラットフォームデータを会話的に照会できるようにします。
機能
エージェント管理 — アクティブなコールバックを詳細情報付きで一覧表示、個別エージェントの調査、エージェントの強制終了、スリープタイマーの変更
タスク実行 — シェルコマンド、ファイルの読み取り/ダウンロード/アップロード、mimikatz、make_token、および任意の Mythic コマンド用の汎用ディスパッチャー
プラットフォームデータ — 資格情報ストア、アーティファクトログ、イベントログ、ファイルブラウザ、ペイロードリスト、C2 プロファイルステータス
構造化レスポンス — すべてのツールは、信頼性の高い LLM 解析のために
{"status":"ok","data":...}または{"status":"error","message":...}を返します組み込みプロンプト —
start_pentestおよびstart_reconプロンプトテンプレート
Related MCP server: caldera-mcp
要件
Python 3.10+
uv パッケージマネージャー
実行中の Mythic サーバー (v3.x+)
インストール
git clone <this-repo>
cd mythic-mcp
uv sync実行
位置引数
uv run main.py <username> <password> [host] [port]uv run main.py mythic_admin mythic_admin_password localhost 7443環境変数
export MYTHIC_USERNAME=mythic_admin
export MYTHIC_PASSWORD=mythic_admin_password
export MYTHIC_HOST=localhost
export MYTHIC_PORT=7443
uv run main.pyTLS なし
uv run main.py mythic_admin password localhost 7443 --no-sslサーバーが出力なしで静かに起動した場合、正常に動作しています — MCP メッセージを stdio で待機しています。
Claude Desktop への接続
設定ファイルを見つけます:
OS | パス |
Linux |
|
macOS |
|
最初に uv のパスを取得します:
which uvmcpServers の下にエントリを追加します:
{
"mcpServers": {
"mythic_mcp": {
"command": "/home/user/.local/bin/uv",
"args": [
"--directory",
"/path/to/mythic-mcp",
"run",
"main.py"
],
"env": {
"MYTHIC_USERNAME": "mythic_admin",
"MYTHIC_PASSWORD": "mythic_admin_password",
"MYTHIC_HOST": "localhost",
"MYTHIC_PORT": "7443"
}
}
}
}Claude Desktop を完全に終了して再起動します。サーバーが接続すると、チャット UI のツールアイコンに登録されたすべてのツールが一覧表示されます。
ツール
エージェント / コールバック管理
ツール | 説明 |
| アクティブなすべてのコールバックを詳細情報(OS、アーキテクチャ、PID、IP、スリープ、プロセス、ペイロードタイプなど)とともに一覧表示 |
| 表示 ID による単一エージェントの詳細情報 |
| Mythic でエージェントを非アクティブとしてマーク |
| スリープ間隔(秒)とジッター(%)を変更 |
タスク実行
ツール | 説明 |
| エージェントのデフォルトインタプリタを介してシェルコマンドを実行 |
| ターゲットからファイルを読み取る( |
| ファイルをダウンロードし、base64 として返す |
| base64 エンコードされたファイルをターゲットにアップロード |
|
|
| mimikatz を実行(例: |
| 汎用ディスパッチャー — 名前で任意の Mythic コマンド |
プラットフォームデータ
ツール | 説明 |
| Mythic 資格情報ストア内のすべての資格情報 |
| アーティファクトログ(ファイル、レジストリキー、作成されたプロセス) |
| 操作イベントログ |
| ターゲット上のディレクトリのファイルブラウザエントリ |
| ビルドステータスと C2 プロファイルを含む、削除されていないすべてのペイロード |
| 実行ステータスを含むすべての C2 プロファイル |
プロンプト
プロンプト | 説明 |
| 特定の脅威アクターを模倣して目的に向かうよう Claude を準備 |
| すべてのアクティブエージェントに対して初期偵察を実行するよう Claude を準備 |
Claude での使用例
Use the start_recon prompt.List all active agents, then run whoami on agent 1.Download /etc/passwd from agent 2 and show me its contents.Run mimikatz sekurlsa::logonpasswords on agent 3.Use execute_command to run 'ps' on agent 1 with parameters {"host": "."}.アーキテクチャ
Claude Desktop
│ MCP stdio
▼
main.py (FastMCP tools + prompts)
│
▼
lib/mythic_api.py (MythicAPI class)
├─ mythic Python library → Mythic GraphQL/REST API
└─ httpx (raw GraphQL) → Mythic GraphQL endpointすべてのタスク呼び出しは、60 秒のタイムアウトで asyncio.wait_for を使用します。GraphQL リクエストは、Mythic の自己署名証明書を処理するために TLS 検証をスキップします(verify=False)。
環境変数リファレンス
変数 | デフォルト | 説明 |
| — | Mythic オペレーターユーザー名(必須) |
| — | Mythic オペレーターパスワード(必須) |
|
| Mythic サーバーのホスト名または IP |
|
| Mythic サーバーのポート |
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
- MIT
- AlicenseAqualityDmaintenanceConnects MCP-compatible AI clients to a MITRE Caldera adversary emulation platform, enabling natural language construction of attack scenarios, agent inspection, and operation management.18Apache 2.0
- Alicense-qualityDmaintenanceA full-featured MCP server providing seamless access to CustomGPT.ai APIs, enabling agent and conversation management through MCP-compatible clients.5MIT
- Alicense-qualityDmaintenanceExposes internal tools from agent harnesses (Claude Code, Codex, etc.) as a standard MCP server by intercepting LLM API calls.1MIT
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
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/kyawthiha7/mythic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server