jungle-grid-mcp-server
OfficialJungle Grid MCP Server
Claude Desktop、Cursor、Windsurf、MCP Inspector などの MCP 対応 AI ホストから Jungle Grid GPU ワークロードを実行します。
このサーバーは stdio を介してローカルで実行され、ツール呼び出しを API キーを使用して Jungle Grid REST API に転送します。
要件
Node.js 18 以降
Jungle Grid API キー
オプション: セルフホスト型オーケストレーター用の
JUNGLE_GRID_API_URL
完全な送信ワークフローには、API キーに jobs:write スコープが必要です。このスコープにより、キーのアカウントが所有するジョブの見積もり、送信、ポーリング、キャンセル、およびログ取得が可能になります。list_jobs には引き続き jobs:read が必要です。
Related MCP server: gpusmarket
クイックスタート
JUNGLE_GRID_API_KEY=jg_... npx -y @jungle-grid/mcpWindows PowerShell の場合:
$env:JUNGLE_GRID_API_KEY = "jg_..."
npx -y @jungle-grid/mcpサーバーは stdio を使用するため、手動起動が成功すると MCP メッセージを待機しているように見えます。JUNGLE_GRID_API_KEY が欠落している場合は、明確なエラーを出力して終了します。
Claude Desktop
claude_desktop_config.json に以下を追加し、Claude Desktop を完全に再起動してください。
{
"mcpServers": {
"junglegrid": {
"command": "npx",
"args": ["-y", "@jungle-grid/mcp"],
"env": {
"JUNGLE_GRID_API_KEY": "jg_..."
}
}
}
}Windows の設定パス:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS の設定パス:
~/Library/Application Support/Claude/claude_desktop_config.jsonCursor または Project MCP 設定
チェックインされたプロジェクト設定の場合、シークレットをコミットしないようにしてください。API キーは Cursor の起動に使用する環境変数に設定し、設定ファイルにはシークレットを含めないようにします。
{
"mcpServers": {
"junglegrid": {
"command": "npx",
"args": ["-y", "@jungle-grid/mcp"]
}
}
}ローカルのコミットされない設定の場合は、キーを直接含めることができます:
{
"mcpServers": {
"junglegrid": {
"command": "npx",
"args": ["-y", "@jungle-grid/mcp"],
"env": {
"JUNGLE_GRID_API_KEY": "jg_..."
}
}
}
}セルフホスト型オーケストレーター
JUNGLE_GRID_API_URL のデフォルトは https://api.junglegrid.dev です。ホストが別のオーケストレーターを呼び出す必要がある場合は、これを上書きしてください。
{
"mcpServers": {
"junglegrid": {
"command": "npx",
"args": ["-y", "@jungle-grid/mcp"],
"env": {
"JUNGLE_GRID_API_KEY": "jg_...",
"JUNGLE_GRID_API_URL": "https://your-orchestrator.example.com"
}
}
}
}ツール
estimate_job: GPU ティア、リージョン、期間、およびクレジットコストを見積もります。submit_job: オプションのenvironment値を指定して、非同期 GPU ワークロードを送信します。get_job: 現在のジョブのステータスと詳細を取得します。list_jobs: 認証済みアカウントの最近のジョブを一覧表示します。cancel_job: 保留中、キューイング中、または実行中のジョブをキャンセルします。get_job_logs: stdout、stderr、および終了情報を取得します。stream_job_logs: 完了またはタイムアウトまでライブログをストリーミングします。list_job_artifacts: ジョブ用にアップロードされた管理対象アーティファクトを一覧表示します。get_artifact_download_url: 管理対象アーティファクトの署名付きダウンロード URL を作成します。
リアルタイムジョブパターン
submit_job で作業を開始し、stream_job_logs でライブ出力を確認し、完了後に list_job_artifacts で保存されたファイルを取得します。
{
"command": ["python", "-c", "import os; exec(os.environ['CODE'])"],
"environment": {
"CODE": "import os, json\nos.makedirs('/workspace/artifacts', exist_ok=True)\nwith open('/workspace/artifacts/output.json','w') as f:\n json.dump({'status':'ok'}, f)"
}
}これは、実際の Python ペイロードが command 配列に収まらないほど長い場合に推奨されるパターンです。
管理対象ジョブの場合、Jungle Grid は自動的に /workspace/artifacts を作成し、そこに書き込まれた通常のファイルをアップロードします。ユーザーが手動で署名付きアップロード URL を作成したり、アーティファクト完了エンドポイントを呼び出したりする必要はありません。
ローカル開発
npm install
npm run build
JUNGLE_GRID_API_KEY=jg_... node dist/index.jsMCP Inspector でサーバーを検査します:
JUNGLE_GRID_API_KEY=jg_... npx @modelcontextprotocol/inspector node dist/index.js公開
公開前にパッケージを確認します:
npm run build
npm pack --dry-runスコープ付きパッケージを公開します:
npm publish --access publicトラブルシューティング
JUNGLE_GRID_API_KEY environment variable is required: ホスト設定のenvブロック、またはホストを起動する環境にキーを追加してください。ツールが表示されない: 設定を編集した後、MCP ホストを完全に終了して再起動してください。
古いパッケージバージョン: 設定でバージョンを固定する(例:
["@jungle-grid/mcp@0.1.0"])か、npx キャッシュをクリアしてください。API 呼び出しが失敗する: キーが有効であること、および
JUNGLE_GRID_API_URLが使用するオーケストレーターを正しく指していることを確認してください。
コントリビューター募集
AI エージェント、MCP、開発者ツール、ワークロード実行に関心のあるコントリビューター向けに Jungle Grid MCP サーバーを公開しています。
最初に取り組むのにおすすめの分野:
ドキュメントの改善
サンプルプロンプトの追加
MCP ツールハンドラーのテスト追加
Docker サポートの追加
GitHub Actions の改善
統合例の構築
good first issue ラベルが付いた課題から始めてください。
Available Tools
8 toolscancel_jobADestructive
Cancel an existing Jungle Grid job. This may stop active execution and prevent further outputs.
Inputs: jobId (required), reason. Returns: data
estimate_jobARead-only
Estimate routing, capacity source, and expected cost for a proposed Jungle Grid workload without submitting it.
Inputs: workload (required), model_size, image, command, +4 more. Returns: data
get_artifactARead-only
Retrieve download information for a specific output artifact from a Jungle Grid job.
Inputs: jobId (required), artifactId (required). Returns: data
get_jobARead-only
Retrieve current status and execution details for a specific Jungle Grid job belonging to the authenticated user.
Inputs: jobId (required). Returns: data
get_job_logsBRead-only
Retrieve execution logs for a specific Jungle Grid job belonging to the authenticated user.
Inputs: jobId (required), limit, cursor. Returns: data
list_artifactsARead-only
List output artifacts associated with a specific Jungle Grid job.
Inputs: jobId (required). Returns: data
list_jobsARead-only
List the authenticated user's Jungle Grid jobs, optionally filtered by status. Use this to find recent jobs before checking status, logs, or artifacts.
Inputs: limit, cursor, status. Returns: data
submit_jobA
Submit a Jungle Grid workload for execution. This may start managed compute infrastructure and incur usage charges.
Inputs: name (required), workload (required), image (required), command, +5 more. Returns: data
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct operation (submit, cancel, estimate, get status, get logs, list, get artifact, list artifacts) with no overlap. The separation between job management and artifact management is clear.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., cancel_job, get_artifact, list_jobs). The naming is predictable and easy to understand.
With 8 tools, the server provides a focused but complete set for managing Jungle Grid jobs. Each tool serves a necessary function without bloat or undersupply.
Covers the core job lifecycle (submit, get, list, cancel, estimate, logs, artifacts). Missing an update/retry tool for modifying job parameters, but the core workflow is well-supported.
Maintenance
Related MCP Connectors
ComputePortal marketplace: AI agents find, deploy and manage GPU and CPU compute through MCP.
HiveCompute MCP Server — decentralized inference router for AI agents
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceAn MCP server for monitoring and managing multi-cluster Slurm GPU jobs, enabling AI agents to execute commands, check allocations, and explore logs across HPC clusters.1-
- FlicenseNot gradedqualityCmaintenanceMCP server for renting real GPUs from the terminal. Enables browsing, renting, chatting, managing, and pooling GPU instances with per-second billing, designed for AI agents.1-
- AlicenseAqualityBmaintenanceGPU compute for AI agents: quote/run B200, H200, H100, A100 GPU jobs, live-quoted pricing, pay per job in USDC via x402 on Base. Per-job/session spend limits; automatic refunds if a job never becomes ready. 9 tools: deploy_gpu_node, x402_quote, x402_run_job, x402_job_status, get_capacity, get_platform_status, get_pricing, get_resume_info, resume_job. License MIT. https://kilawattcloud.dev966 npmMIT
- AlicenseAqualityDmaintenanceEnables MCP-aware agents to estimate, submit, monitor, cancel, and retrieve artifacts from Jungle Grid workloads, supporting asynchronous AI execution, batch processing, training, fine-tuning, and access to logs and managed outputs.11MIT