Skip to main content
Glama
jungle-grid-mcp-server

jungle-grid-mcp-server

Official
by Jungle-Grid

Jungle Grid MCP-Server

Führen Sie Jungle Grid GPU-Workloads von MCP-fähigen KI-Hosts wie Claude Desktop, Cursor, Windsurf und dem MCP Inspector aus.

Der Server läuft lokal über stdio und leitet Tool-Aufrufe mit Ihrem API-Schlüssel an die Jungle Grid REST-API weiter.

Anforderungen

  • Node.js 18 oder neuer

  • Ein Jungle Grid API-Schlüssel

  • Optional: JUNGLE_GRID_API_URL für einen selbst gehosteten Orchestrator

Für den vollständigen Übermittlungs-Workflow benötigt der API-Schlüssel jobs:write. Dieser Bereich erlaubt das Schätzen, Übermitteln, Abfragen, Abbrechen und Abrufen von Protokollen für Jobs, die dem Konto des Schlüssels gehören. list_jobs erfordert weiterhin jobs:read.

Related MCP server: gpusmarket

Schnellstart

JUNGLE_GRID_API_KEY=jg_... npx -y @jungle-grid/mcp

Unter Windows PowerShell:

$env:JUNGLE_GRID_API_KEY = "jg_..."
npx -y @jungle-grid/mcp

Der Server verwendet stdio, daher scheint ein erfolgreicher manueller Start auf MCP-Nachrichten zu warten. Wenn JUNGLE_GRID_API_KEY fehlt, wird er mit einer klaren Fehlermeldung beendet.

Claude Desktop

Fügen Sie dies zu claude_desktop_config.json hinzu und starten Sie Claude Desktop anschließend vollständig neu.

{
  "mcpServers": {
    "junglegrid": {
      "command": "npx",
      "args": ["-y", "@jungle-grid/mcp"],
      "env": {
        "JUNGLE_GRID_API_KEY": "jg_..."
      }
    }
  }
}

Windows-Konfigurationspfad:

%APPDATA%\Claude\claude_desktop_config.json

macOS-Konfigurationspfad:

~/Library/Application Support/Claude/claude_desktop_config.json

Cursor oder Projekt-MCP-Konfiguration

Für eine eingecheckte Projektkonfiguration sollten Sie das Committen von Geheimnissen vermeiden. Platzieren Sie den API-Schlüssel in der Umgebung, die zum Starten von Cursor verwendet wird, und halten Sie die Konfiguration frei von Geheimnissen.

{
  "mcpServers": {
    "junglegrid": {
      "command": "npx",
      "args": ["-y", "@jungle-grid/mcp"]
    }
  }
}

Für eine lokale, nicht committete Konfiguration können Sie den Schlüssel direkt einfügen:

{
  "mcpServers": {
    "junglegrid": {
      "command": "npx",
      "args": ["-y", "@jungle-grid/mcp"],
      "env": {
        "JUNGLE_GRID_API_KEY": "jg_..."
      }
    }
  }
}

Selbst gehosteter Orchestrator

JUNGLE_GRID_API_URL ist standardmäßig auf https://api.junglegrid.dev eingestellt. Überschreiben Sie dies, wenn Ihr Host einen anderen Orchestrator aufrufen soll.

{
  "mcpServers": {
    "junglegrid": {
      "command": "npx",
      "args": ["-y", "@jungle-grid/mcp"],
      "env": {
        "JUNGLE_GRID_API_KEY": "jg_...",
        "JUNGLE_GRID_API_URL": "https://your-orchestrator.example.com"
      }
    }
  }
}

Tools

  • estimate_job: Schätzung von GPU-Stufe, Region, Dauer und Kreditkosten.

  • submit_job: Übermittlung eines asynchronen GPU-Workloads mit optionalen environment-Werten.

  • get_job: Abrufen des aktuellen Job-Status und der Details.

  • list_jobs: Auflisten der letzten Jobs für das authentifizierte Konto.

  • cancel_job: Abbrechen eines ausstehenden, in der Warteschlange befindlichen oder laufenden Jobs.

  • get_job_logs: Abrufen von stdout, stderr und Exit-Informationen.

  • stream_job_logs: Live-Streaming von Protokollen bis zum Abschluss oder Timeout.

  • list_job_artifacts: Auflisten der verwalteten Artefakte, die für einen Job hochgeladen wurden.

  • get_artifact_download_url: Erstellen einer signierten Download-URL für ein verwaltetes Artefakt.

Echtzeit-Job-Muster

Verwenden Sie submit_job, um die Arbeit zu starten, stream_job_logs für die Live-Ausgabe und anschließend list_job_artifacts nach Abschluss, um gespeicherte Dateien abzurufen.

{
  "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)"
  }
}

Dies ist das empfohlene Muster, wenn die eigentliche Python-Nutzlast zu lang ist, um bequem in das command-Array zu passen.

Für verwaltete Jobs erstellt Jungle Grid automatisch /workspace/artifacts und lädt alle dort geschriebenen regulären Dateien hoch. Benutzer müssen keine signierten Upload-URLs erstellen oder Endpunkte für den Artefakt-Abschluss manuell aufrufen.

Lokale Entwicklung

npm install
npm run build
JUNGLE_GRID_API_KEY=jg_... node dist/index.js

Untersuchen Sie den Server mit dem MCP Inspector:

JUNGLE_GRID_API_KEY=jg_... npx @modelcontextprotocol/inspector node dist/index.js

Veröffentlichung

Überprüfen Sie das Paket vor der Veröffentlichung:

npm run build
npm pack --dry-run

Veröffentlichen Sie das scoped Paket öffentlich:

npm publish --access public

Fehlerbehebung

  • JUNGLE_GRID_API_KEY environment variable is required: Fügen Sie den Schlüssel zum env-Block der Host-Konfiguration oder zu der Umgebung hinzu, die den Host startet.

  • Tools erscheinen nicht: Beenden Sie den MCP-Host vollständig und öffnen Sie ihn nach dem Bearbeiten der Konfiguration erneut.

  • Alte Paketversion: Fixieren Sie eine Version in der Konfiguration, zum Beispiel ["@jungle-grid/mcp@0.1.0"], oder leeren Sie den npx-Cache.

  • API-Aufrufe schlagen fehl: Bestätigen Sie, dass der Schlüssel gültig ist und JUNGLE_GRID_API_URL auf den Orchestrator zeigt, den Sie verwenden möchten.

Mitwirkende gesucht

Wir öffnen den Jungle Grid MCP-Server für Mitwirkende, die sich für KI-Agenten, MCP, Entwicklertools und Workload-Ausführung interessieren.

Gute erste Bereiche:

  • Dokumentation verbessern

  • Beispiel-Prompts hinzufügen

  • Tests für MCP-Tool-Handler hinzufügen

  • Docker-Unterstützung hinzufügen

  • GitHub Actions verbessern

  • Integrationsbeispiele erstellen

Beginnen Sie mit Issues, die als good first issue gekennzeichnet sind.

Available Tools

8 tools
cancel_jobA
Destructive

Cancel an existing Jungle Grid job. This may stop active execution and prevent further outputs.

Inputs: jobId (required), reason. Returns: data

estimate_jobA
Read-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_artifactA
Read-only

Retrieve download information for a specific output artifact from a Jungle Grid job.

Inputs: jobId (required), artifactId (required). Returns: data

get_jobA
Read-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_logsB
Read-only

Retrieve execution logs for a specific Jungle Grid job belonging to the authenticated user.

Inputs: jobId (required), limit, cursor. Returns: data

list_artifactsA
Read-only

List output artifacts associated with a specific Jungle Grid job.

Inputs: jobId (required). Returns: data

list_jobsA
Read-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

    A3.8/5.0

    Scored across 8 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      An 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
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP 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
      -
    • A
      license
      A
      quality
      B
      maintenance
      GPU 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.dev
      9
      66 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      11
      MIT