Skip to main content
Glama
hermes-mcp-bridge

hermes-mcp-bridge

by nirvana6

hermes-mcp-bridge

A zero-friction stdio MCP bridge connecting Cursor Desktop to a local Hermes Agent — no OAuth, no tunnels, no Dynamic Client Registration.


1. Architecture

 Cursor Desktop                  hermes-mcp-bridge             Hermes Gateway
 ┌──────────────┐   stdio    ┌─────────────────────┐   HTTP   ┌──────────────┐
 │  mcp.json    │ ─────────→ │ FastMCP             │ ───────→ │ 127.0.0.1    │
 │  command:    │            │  ├ hermes_ask()     │  Bearer  │ :8642        │
 │  /home/...   │ ←───────── │  ├ hermes_check()   │ ←─────── │ /v1/chat/    │
 └──────────────┘   stdio    │  ├ hermes_cancel()  │   JSON   │ completions  │
                             │  └ hermes_reset()   │          └──────────────┘
                             └─────────────────────┘
                        X-Hermes-Session-Id → REPL context

1.1 Comparison with mlennie/hermes-mcp

mlennie/hermes-mcp

hermes-mcp-bridge

Transport

Streamable HTTP

stdio

Auth

OAuth 2.1 + DCR

Bearer header

External deps

cloudflared / ngrok

none

Process model

Standalone daemon

Cursor subprocess

Deployment files

5 configs + systemd unit

2 files


Related MCP server: cursor-mcp-server

2. Profile Awareness

The bridge connects to the same Hermes profile your gateway is serving. It inherits everything that profile has loaded — skills, memory, tools, sessions.

You can pick which profile to use in two ways:

Method

What you do

When to use

Set a default

Edit ~/.config/hermes-mcp-bridge/config.toml

You mostly use one profile

Mention it in chat

Say "Use Hermes with the default profile to…" in the Cursor chat input

You switch profiles often

Neither requires touching mcp.json or restarting Cursor.

2.1 Default profile (config.toml)

# ~/.config/hermes-mcp-bridge/config.toml
model = "general_researcher"   # ← used when no profile arg is passed

2.2 Switching profiles from Cursor

The hermes_ask tool exposes an optional profile parameter. Just mention which profile you want — Cursor's LLM reads the tool signature and passes it.

┌─────────────────────────────────────────────────────────┐
│  You say in Cursor                                      │
├─────────────────────────────────────────────────────────┤
│  "Use Hermes with the default profile to send an email" │
│    → hermes_ask(prompt="send an email",                 │
│                  profile="default")                     │
│                                                         │
│  "Ask Hermes to search arXiv for MCP papers"            │
│    → hermes_ask(prompt="search arXiv...")               │
│                 # no profile → uses config.toml default │
└─────────────────────────────────────────────────────────┘

No mcp.json changes, no config edits, no restart. Just say the profile name.

2.3 Discover available profiles

curl -s http://127.0.0.1:8642/v1/models \
  -H "Authorization: Bearer change...-dev"
# → {"data": [{"id": "general_researcher", ...}, {"id": "default", ...}]}

If your gateway only runs one profile, only one id appears. Start additional gateway instances on different ports to serve multiple profiles simultaneously.


3. Why This Exists

mlennie/hermes-mcp v0.4.0 hits three real-world blockers:

  1. OAuth 2.1 demands an HTTPS tunnel — even when Cursor and Hermes run on the same machine.

  2. No Dynamic Client Registration support — mcp-remote crashes with Incompatible auth server.

  3. Cursor's localhost OAuth callback is broken — its built-in MCP HTTP client returns ERR_EMPTY_RESPONSE on localhost.

This bridge drops the HTTP transport layer entirely, runs as a stdio subprocess, and sidesteps all three.


4. Quick Start

4.1 Install

git clone https://github.com/<your-org>/hermes-mcp-bridge.git
cd hermes-mcp-bridge
uv tool install --editable .

4.2 Configure

mkdir -p ~/.config/hermes-mcp-bridge
cat > ~/.config/hermes-mcp-bridge/config.toml << 'EOF'
api_url = "http://127.0.0.1:8642"
api_key = "change-me-local-dev"    # must match API_SERVER_KEY in ~/.hermes/.env
model   = "general_researcher"
timeout_seconds = 300
EOF
chmod 600 ~/.config/hermes-mcp-bridge/config.toml

4.3 Register with Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "hermes": {
      "command": "/home/nirvana/.local/bin/hermes-mcp-bridge"
    }
  }
}

4.4 Restart Cursor

Settings → MCP → hermes should show connected.


5. Tools

Tool

Signature

Purpose

hermes_ask

(prompt, session_id?, profile?) → str

Delegate a task to Hermes Agent

hermes_check

(job_id) → str

Poll async job status (stub)

hermes_cancel

(job_id) → str

Cancel an async job (stub)

hermes_reset

() → str

Clear the job queue (stub)

The last three are kept for API parity. hermes-mcp-bridge runs synchronously — hermes_ask blocks until the full Agent response is ready.


6. REPL Context (Session Continuity)

Hermes remembers what you told it earlier — just keep talking in the same Cursor chat. Cursor automatically reuses the same session_id across turns.

┌─────────────────────────────────────────────────────────┐
│  You say in Cursor                                      │
├─────────────────────────────────────────────────────────┤
│  "Use Hermes to remember that my lucky number is 42"    │
│    → Hermes remembers 42                                │
│                                                         │
│  "Ask Hermes what my lucky number is"                   │
│    → Hermes answers 42                                  │
│      (same session_id — context preserved)              │
└─────────────────────────────────────────────────────────┘

The bridge passes session_id through as the X-Hermes-Session-Id HTTP header. The gateway uses it to maintain context across calls.

No special syntax. No session IDs to track. Just talk normally — Hermes remembers.


7. Configuration Reference

~/.config/hermes-mcp-bridge/config.toml

Key

Default

Description

api_url

http://127.0.0.1:8642

Hermes Gateway HTTP API address

api_key

—

Must match API_SERVER_KEY in ~/.hermes/.env

model

general_researcher

Must match a model ID from gateway /v1/models

timeout_seconds

300

Max wait per hermes_ask call

Environment variable overrides (higher priority): HERMES_BRIDGE_API_URL, HERMES_BRIDGE_API_KEY.


8. Security

  • All network traffic is confined to the 127.0.0.1 loopback interface.

  • The API key lives in ~/.config/hermes-mcp-bridge/config.toml (mode 600).

  • The repository itself contains no keys, secrets, or credentials.

  • Cursor spawns the bridge via stdio — no ports are exposed.


9. License

Apache-2.0

Available Tools

4 tools
hermes_askA

Delegate a task to Hermes Agent on this user's machine.

Use for things the calling LLM cannot do directly: scheduling cron jobs, browser-driven web search, sending email, creating/editing local documents, anything that should persist after this chat ends.

Args: prompt: Natural-language instruction for Hermes. session_id: Optional. Pass the same id across multiple calls in one chat to let Hermes remember prior steps (draft → refine → save). profile: Optional. Hermes profile to use (e.g. 'default', 'general_researcher'). Overrides the model in config.toml. Discover available profiles via the gateway's /v1/models endpoint.

Returns: Hermes's final answer text.

Inputs: prompt (required), profile, session_id. Returns: result

hermes_cancelA

Not implemented. Kept for API parity with hermes-mcp.

Inputs: job_id (required). Returns: result

hermes_checkC

Not implemented. Kept for API parity with hermes-mcp.

Inputs: job_id (required). Returns: result

hermes_resetA

Not implemented. Kept for API parity with hermes-mcp.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 4 tools

    Disambiguation5/5

    All four tools have distinct names and clear descriptions. The three non-functional tools are explicitly marked as 'Not implemented', so an agent can easily distinguish the single functional tool from the stubs.

    Naming Consistency5/5

    All tool names follow a consistent 'hermes_verb' pattern with imperative verbs (ask, cancel, check, reset), which is predictable and systematic.

    Tool Count3/5

    With only one functional tool out of four, the effective tool count is very low for a server that claims to handle diverse tasks like scheduling, browsing, and email. The three stubs inflate the count without adding value.

    Completeness2/5

    The server is missing core lifecycle operations: there is no way to cancel a task, check its status, or reset a session, even though stubs for these exist. The single 'ask' tool cannot cover the full intended scope.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Acts as a bridge between Claude's desktop application and the Cursor editor, enabling seamless AI-powered automation and multi-instance management across platforms with standardized communication and secure token-based authentication.
      6 npm
      68
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server wrapping the Cursor CLI agent, enabling Claude Code and other MCP clients to delegate tasks to Cursor's AI agent for file writing, bash commands, and codebase queries.
      -
    • A
      license
      A
      quality
      D
      maintenance
      A project-local MCP bridge that allows Codex Desktop to plan tasks and OpenCode to execute them within the current project directory, with session reuse and native OpenCode background subagents.
      4
      1
      MIT