jungle-grid-mcp-server
OfficialJungle Grid MCP Server
从支持 MCP 的 AI 主机(如 Claude Desktop、Cursor、Windsurf 和 MCP Inspector)运行 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/mcp在 Windows 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:提交异步 GPU 工作负载,并可选择environment值。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.js使用 MCP 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