Files
derez.ai/blog/posts/higgsfield-mcp-hermes-agent.html

218 lines
11 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://derez.ai/blog/posts/higgsfield-mcp-hermes-agent.html" />
<title>Speed Run: Use Higgsfield MCP with Hermes Agent via SSH Tunnel — derez.ai Blog</title>
<meta name="description" content="Connect Hermes Agent to Higgsfield's MCP server running on your VPS. SSH port forwarding solves the OAuth browser auth challenge." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://derez.ai/blog/posts/higgsfield-mcp-hermes-agent.html" />
<meta property="og:title" content="Speed Run: Use Higgsfield MCP with Hermes Agent via SSH Tunnel" />
<meta property="og:description" content="Connect Hermes Agent to Higgsfield's MCP server running on your VPS. SSH port forwarding solves the OAuth browser auth challenge." />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Speed Run: Use Higgsfield MCP with Hermes Agent via SSH Tunnel" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap" rel="stylesheet" />
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #08080c;
color: #e8e8f0;
font-family: 'Inter', sans-serif;
line-height: 1.7;
padding: 40px 20px;
}
.container { max-width: 720px; margin: 0 auto; }
a { color: #00f5ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.back { margin-bottom: 32px; display: inline-block; font-size: 0.9rem; color: #888; }
.back:hover { color: #00f5ff; }
h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.meta { font-size: 0.85rem; color: #888; margin-bottom: 40px; display: flex; gap: 12px; align-items: center; }
.area-tag {
display: inline-block;
background: #f472b6;
color: #000;
font-size: 0.75rem;
font-weight: 700;
padding: 2px 10px;
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.chip-tag {
display: inline-block;
background: rgba(0,245,255,0.1);
color: #00f5ff;
border: 1px solid rgba(0,245,255,0.3);
font-size: 0.75rem;
font-weight: 600;
padding: 2px 10px;
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
h2 { font-size: 1.3rem; font-weight: 600; margin: 36px 0 12px; color: #f0f0ff; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; color: #e0e0f0; }
p { margin-bottom: 16px; color: #c8c8d8; }
ul, ol { margin: 0 0 16px 24px; color: #c8c8d8; }
li { margin-bottom: 6px; }
code { background: #0e0e14; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: #00f5ff; }
strong { color: #f0f0ff; }
.prereq-group { margin-bottom: 16px; }
.prereq-group > .group-label { font-weight: 600; color: #f472b6; margin-bottom: 4px; }
.prompt-box {
background: #0e0e14;
border: 1px solid #1a1a24;
border-radius: 12px;
padding: 20px 24px;
margin: 16px 0 24px;
font-style: italic;
color: #c8c8d8;
}
.prompt-box code { background: #001a18; }
.pro-tip {
background: rgba(0,245,255,0.06);
border-left: 3px solid #00f5ff;
border-radius: 8px;
padding: 16px 20px;
margin: 20px 0;
font-size: 0.92rem;
color: #d0d0e0;
}
.pro-tip strong { color: #00f5ff; }
.note-box {
background: rgba(244,114,182,0.06);
border-left: 3px solid #f472b6;
border-radius: 8px;
padding: 16px 20px;
margin: 20px 0;
font-size: 0.92rem;
color: #d0d0e0;
}
.note-box strong { color: #f472b6; }
@media (max-width: 600px) {
body { padding: 24px 16px; }
h1 { font-size: 1.5rem; }
}
</style>
</head>
<body>
<div class="container">
<a class="back" href="https://derez.ai/#blog">&larr; Back to Blog</a>
<h1>Speed Run: Use Higgsfield MCP with Hermes Agent via SSH Tunnel</h1>
<div class="meta">
<span>July 29, 2026</span>
<span class="area-tag">speed-run</span>
<span class="chip-tag">hermes</span>
</div>
<h2>Introduction</h2>
<p>
Higgsfield is an AI media platform that exposes an MCP server on <code>localhost:8765</code>. But there's a catch — their OAuth authentication flow opens a browser window, and your agent runs headless on a VPS with no display.
</p>
<p>
The solution is simple: SSH port forwarding. I'll show you how to tunnel your VPS's <code>localhost:8765</code> to your local machine, run <code>higgsfield auth login</code>, and connect your Hermes Agent to use Higgsfield's tools — all in under 10 minutes.
</p>
<h2>Prerequisites</h2>
<p>Before you start, make sure you have:</p>
<div class="prereq-group">
<div class="group-label">SSH Access</div>
<ul>
<li><strong>VPS hostname</strong> &mdash; <code>root@wildflower.derez.ai</code></li>
<li><strong>SSH port</strong> &mdash; <code>2211</code></li>
<li><strong>Local port</strong> &mdash; <code>8765</code> (must be free on your machine)</li>
</ul>
</div>
<div class="prereq-group">
<div class="group-label">Higgsfield</div>
<ul>
<li><strong>CLI installed</strong> &mdash; <code>npm install -g @higgsfield/cli</code></li>
<li><strong>Higgsfield MCP server</strong> &mdash; running on port 8765 inside your VPS</li>
<li><strong>Account</strong> &mdash; signed up at <a href="https://higgsfield.ai/?utm_source=derez" target="_blank">higgsfield.ai</a></li>
</ul>
</div>
<p>Don't have a Higgsfield account yet? <a href="https://higgsfield.ai/?utm_source=derez" target="_blank">Sign up here</a>.</p>
<h2>Step 1: Start the SSH Tunnel</h2>
<p>
On your local machine, open a terminal and forward port 8765 from your VPS to your localhost:
</p>
<p>
<code>ssh -p 2211 -N -L 8765:localhost:8765 root@wildflower.derez.ai</code>
</p>
<p>
This tells SSH to listen on your local port <code>8765</code> and forward everything to port <code>8765</code> on the VPS. The <code>-N</code> flag means &ldquo;don't open a shell&mdash;just forward ports.&rdquo; Keep this terminal open for the entire session.
</p>
<h2>Step 2: Authenticate on the VPS</h2>
<p>
SSH into your VPS and run the Higgsfield login:
</p>
<p>
<code>ssh -p 2211 root@wildflower.derez.ai</code><br />
<code>higgsfield auth login</code>
</p>
<p>
This command starts a local HTTP server on the VPS and tries to open your default browser. But the VPS has no display, so the browser opens on <code>localhost:8765</code> — which is the VPS's localhost, not yours.
</p>
<p>
Because your SSH tunnel is running, the VPS's <code>localhost:8765</code> is forwarded to your machine's <code>localhost:8765</code>. The browser opens on your local machine and connects seamlessly through the tunnel.
</p>
<div class="note-box">
<strong>Why the tunnel is necessary:</strong> Without the SSH tunnel, <code>higgsfield auth login</code> opens the OAuth page on the VPS's localhost (port 8765 on the VPS itself), and your local machine's browser can't reach it. The tunnel bridges that gap — the VPS thinks the browser is local, but the browser window actually appears on your machine.
</div>
<p>
Complete the OAuth flow in your browser. Once authenticated, the token is stored on the VPS and <code>higgsfield auth status</code> should confirm you're logged in.
</p>
<h2>Step 3: Connect Hermes Agent</h2>
<p>
In your Hermes dashboard, add the Higgsfield MCP integration pointing to <code>http://localhost:8765</code> on the VPS. Your agent communicates with the VPS's localhost, which is the same endpoint that <code>higgsfield auth login</code> used.
</p>
<p>
The agent connects via the MCP protocol. No API keys needed beyond what you set during <code>auth login</code> — the agent reuses the token already stored on the VPS.
</p>
<h2>Step 4: Use Higgsfield Tools</h2>
<p>
With the integration active, your agent can call Higgsfield's MCP tools. Here's the pattern:
</p>
<p>
<code>higgsfield mcp call video.create --prompt "A cinematic drone shot over a sunset coastline" --output /tmp/video.mp4</code>
</p>
<p>
Replace with whatever tool and parameters Higgsfield exposes. The agent handles the MCP request/response cycle through the local port.
</p>
<h2>Wrap Up</h2>
<p>
SSH port forwarding solved the browser auth challenge for a headless VPS. The same pattern works for any MCP server or local HTTP tool that needs OAuth — forward the port, run auth, keep the tunnel alive, and your agent gets full access.
</p>
<div class="pro-tip">
<strong>Pro tip:</strong> Use <code>autossh</code> instead of raw <code>ssh -N</code> for your production tunnels. It auto-reconnects if the SSH connection drops, so your agent's MCP integration stays alive without you noticing.
</div>
<p>
Use coupon code <strong>BLOG950</strong> at checkout to get $9.50 off your first month &mdash; zero risk, full access.
</p>
<p>
<a href="https://derez.ai/#pricing">Deploy your own agent now.</a>
</p>
<p style="margin-top:48px;padding-top:24px;border-top:1px solid #1a1a24;font-size:0.85rem;color:#666;">
<a href="https://derez.ai" style="color:#00f5ff">derez.ai</a> &mdash; Deploy your AI agent in 10 Minutes.
</p>
</div>
</body>
</html>