HH

hyperboliclabs/hyperbolic-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

17 stars 6 forks 质量 82 趋势 35MIT

Claude 的 MCP 服务器

概览

与Hyperbolic的GPU云交互,使代理和LLMs能够查看并租用可用的GPU,SSH进入它们,并为您运行GPU所驱动的工作量. https://github.com/user-attachments/assets/814d0327-ce5e-4c1b-90bc-7f3712aa1c68 - Node.js 16 或更高 -- npm 或 纱线 -- -- 超曲面 API 符号 -- -- (可选) SSH 私人密钥,用于连接到 GPU 实例 1. 双曲账户注册: - 访问 https://app.hyperbolic.xyz/ - 创建账户或登录到您现有的账户 - 验证您的电子邮件地址 2. 将资金存入您的账户: - 登录到您的 Hyperbolic 应用程序 - 导航到" Billing" 标签 - 选择您要存入多少( 我们建议从 25 美元 开始) - 点击支付 - 遵守在您的账户中添加资金的指示 - 请注意您需要足够的资金来租赁 GPU 实例 3个.

概述(AI 翻译)

与Hyperbolic的GPU云交互,使代理和LLMs能够查看并租用可用的GPU,SSH进入它们,并为您运行GPU所驱动的工作量.

https://github.com/user-attachments/assets/814d0327-ce5e-4c1b-90bc-7f3712aa1c68

□ 设置

· 先决条件

  • 节点.js 16或以上
  • Npm或纱线
  • 超曲面 API 符号
  • (可选) SSH 连接到 GPU 实例的私人密钥

获取双曲账户和 API Token

  1. 双曲账户登记册:
  1. 将资金存入您的账户:
  • 登录到您的双曲应用程序
  • 导航到"Billing"标签
  • 选择要多少存款(我们建议从25美元开始)
  • 现在点击支付
  • 遵守指示,在你的账户中增加资金
  • 注意您需要足够的资金来租赁 GPU 实例
  1. 生成 API 令牌:
  • 在你的双曲仪表板,导航到"安顿"
  • 导航到 API 密钥 部分
  • 复制生成的代币并保持安全
  • 您将在您的 MCP 服务器配置环境变量中使用此密钥
  1. 添加您的 SSH 公钥 :

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Hyperbolic GPU MCP Server

Interact with Hyperbolic’s GPU cloud, enabling agents and LLMs to view and rent available GPUs, SSH into them, and run GPU-powered workloads for you.

https://github.com/user-attachments/assets/814d0327-ce5e-4c1b-90bc-7f3712aa1c68

Setup

Prerequisites

  • Node.js 16 or higher
  • npm or yarn
  • A Hyperbolic API token
  • (Optional) SSH private key for connecting to GPU instances

Getting a Hyperbolic Account and API Token

  1. Register for a Hyperbolic account:

  2. Deposit funds into your account:

    • Log in to your Hyperbolic application
    • Navigate to the “Billing” tab
    • Select how much you want to deposit (we suggest starting with $25)
    • Click Pay Now
    • Follow the instructions to add funds to your account
    • Note that you will need sufficient funds to rent GPU instances
  3. Generate an API token:

    • In your Hyperbolic dashboard, navigate to “Settings”
    • Navigate to the API Key section
    • Copy the generated token and keep it secure
    • You will use this key in your MCP server configuration environment variables
  4. Add your SSH public key:

    • Generate an SSH key pair if you don’t already have one
    • In your Hyperbolic application, navigate to the “Settings” section
    • Scroll down to the SSH Public Key section
    • Paste your public key (usually from ~/.ssh/id_rsa.pub or similar)
    • Click the save icon

Installation

  1. Clone this repository:

    git clone 
    cd hyperbolic-mcp
    
  2. Install dependencies:

    npm install
    
  3. Build the TypeScript files:

    npm run build
    

Usage

Running the server locally

To run the server:

npm start

Connecting with Claude for Desktop

  1. Add the server to your Claude for Desktop config:
{
  "mcpServers": {
    "hyperbolic-gpu": {
      "command": "node",
      "args": ["/path/to/hyperbolic-mcp-server/build/index.js"],
      "env": {
        "HYPERBOLIC_API_TOKEN": "your-hyperbolic-api-token",
        "SSH_PRIVATE_KEY_PATH": "/path/to/your/privatekey" 
      }
    }
  }
}
  1. Restart Claude for Desktop.

  2. Start a new conversation and interact with the server.

Note: You can provide environment variables either through the Claude Desktop config as shown above, or by creating a .env file in the project root. The .env file is only needed if you’re not providing the variables through the config.

Available Tools

The server provides the following tools:

GPU Management Tools

list-available-gpus

Lists all available GPUs on the Hyperbolic network.

Example query: “Show me all available GPUs on Hyperbolic.”

rent-gpu-instance

Rents a GPU instance from a specific cluster.

Parameters:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "hyperbolic-gpu": { "command": "node", "args": ["/path/to/hyperbolic-mcp-server/build/index.js"], "env": { "HYPERBOLIC_API_TOKEN": "your-hyperbolic-api-token", "SSH_PRIVATE_KEY_PATH": "/path/to/your/privatekey" } } } }