MCP Server

RFHub MCP Server 为 AI 助手直接提供 RFHub 的计算能力,使 AI 驱动的优化环境更严谨。

Stdio 安装

适用于在本地运行的 Agent 客户端,通过 npx 按需拉取,无需提前安装。

Claude Desktop

打开菜单 Settings → Developer → Edit Config,编辑配置文件并添加以下内容:
{
  "mcpServers": {
    "rfhub-mcp": {
      "command": "npx",
      "args": ["-y", "rfhub-mcp@latest"]
    }
  }
}
配置文件路径:
# macOS
~/Library/Application Support/Claude/claude_desktop_config.json

# Windows
%APPDATA%\Claude\claude_desktop_config.json

Claude Code

在终端执行以下命令一键添加:
claude mcp add rfhub-mcp npx -- -y rfhub-mcp@latest
或手动编辑 ~/.claude/settings.json,添加以下内容:
{
  "mcpServers": {
    "rfhub-mcp": {
      "command": "npx",
      "args": ["-y", "rfhub-mcp@latest"]
    }
  }
}

Cursor

打开菜单 Cursor Settings → MCP → Add new MCP Server,或编辑配置文件:
{
  "mcpServers": {
    "rfhub-mcp": {
      "command": "npx",
      "args": ["-y", "rfhub-mcp@latest"]
    }
  }
}
配置文件路径:
# 全局(所有项目)
~/.cursor/mcp.json

# 项目级
.cursor/mcp.json

Windsurf

打开菜单 Windsurf Settings → Cascade → MCP Configuration,或直接编辑配置文件:
{
  "mcpServers": {
    "rfhub-mcp": {
      "command": "npx",
      "args": ["-y", "rfhub-mcp@latest"]
    }
  }
}
配置文件路径:
~/.codeium/windsurf/mcp_config.json

Cline

在 VS Code 侧边栏打开 Cline 面板,点击 MCP Servers → Configure MCP Servers,添加以下内容:
{
  "mcpServers": {
    "rfhub-mcp": {
      "command": "npx",
      "args": ["-y", "rfhub-mcp@latest"]
    }
  }
}

Trae

打开菜单 设置 → MCP,点击「添加 MCP 服务」,或编辑配置文件:
{
  "mcpServers": {
    "rfhub-mcp": {
      "command": "npx",
      "args": ["-y", "rfhub-mcp@latest"]
    }
  }
}
配置文件路径:
# macOS / Linux
~/.trae/mcp.json

# Windows
%APPDATA%\Trae\mcp.json

Cherry Studio

打开 设置 → MCP 服务器 → 添加服务器,选择「stdio」类型,填入以下信息:
{
  "mcpServers": {
    "rfhub-mcp": {
      "command": "npx",
      "args": ["-y", "rfhub-mcp@latest"]
    }
  }
}

HTTP / SSE 安装

适用于无法直接执行本地进程的客户端(如 Web 应用、自托管平台)。rfhub 提供两个远程端点:
# Streamable HTTP(新规范,推荐)
https://rfhub.cn/mcp

# SSE(旧规范,兼容旧版客户端)
https://rfhub.cn/sse

LobeChat

进入 设置 → 助手 → 工具 → MCP 服务,点击「添加 MCP 服务器」,选择「Streamable HTTP」并填入:
{
  "mcpServers": {
    "rfhub-mcp": {
      "type": "http",
      "url": "https://rfhub.cn/mcp"
    }
  }
}

Dify

在工作流编辑器中添加「MCP 工具」节点,传输方式选择 SSE,服务地址填入:
{
  "mcpServers": {
    "rfhub-mcp": {
      "type": "sse",
      "url": "https://rfhub.cn/sse"
    }
  }
}
© 2026 RFHub.cn. All rights reserved.