Skip to main content
Glama

hermes-mcp-bridge

Model Context Protocol (MCP) server for Hermes Agent.

Connects MCP-compatible clients (Cursor, Claude Desktop, Antigravity, Windsurf) to local or remote Hermes instances.

Features

  • Shell execution: Run bash commands in the workspace (exec_command).

  • History & inspection: Read conversation transcripts, tool outputs, and token counts from Hermes's SQLite database (get_conversation, search_conversation, list_sessions, list_profiles).

  • Run control: Send messages, send slash commands, cancel active runs, and release stuck leases (send_message, steer_agent, cancel_run, get_agent_status, clear_stuck_lease, restart_gateway).

  • Git operations: Check status, diffs, logs, commit changes, and switch branches (git_status, git_diff, git_log, git_commit, git_checkout).

  • File operations: Read and write workspace files (read_file, write_file).

Related MCP server: CodePier

Installation

Requires Python 3.10+.

git clone https://github.com/shakilapr/hermes-mcp-bridge.git
cd hermes-mcp-bridge
pip install .

For development:

pip install -e ".[dev]"

Configuration

Configure using environment variables:

Variable

Default

Description

HERMES_HOME

~/.hermes

Path to Hermes home directory (contains state.db and profiles).

HERMES_API_URL

http://127.0.0.1:8642

Hermes gateway URL.

HERMES_API_KEY

None

Optional API key for gateway requests.

HERMES_PROFILE

default

Default Hermes profile to use.

HERMES_SSH_HOST

None

Remote SSH host alias or IP. If set, queries and commands run over SSH.

HERMES_SSH_PORT

22

SSH port.

HERMES_SSH_KEY

None

Path to SSH private key.

HERMES_REMOTE_HOME

/root/.hermes

Path to Hermes home directory on remote server.

HERMES_ALLOWED_WORKSPACES

*

Comma-separated list of allowed workspace paths.

MCP Client Configuration

Local Hermes

Add to your MCP client configuration (claude_desktop_config.json, Cursor MCP settings, etc.):

{
  "mcpServers": {
    "hermes": {
      "command": "hermes-mcp",
      "env": {
        "HERMES_HOME": "/path/to/.hermes"
      }
    }
  }
}

Remote Hermes (over SSH)

Runs locally and connects to Hermes on a remote server through SSH. No bridge installation required on the server.

{
  "mcpServers": {
    "hermes": {
      "command": "hermes-mcp",
      "env": {
        "HERMES_SSH_HOST": "user@your-server-ip",
        "HERMES_SSH_KEY": "/path/to/id_ed25519",
        "HERMES_REMOTE_HOME": "/root/.hermes"
      }
    }
  }
}

Running the Server Directly

Stdio mode (default for MCP):

hermes-mcp

SSE mode (HTTP server):

hermes-mcp --transport sse --port 8000

Testing

pytest

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects ChatGPT and MCP clients to authorized local development environments, enabling secure file access, shell execution, persistent tasks, browser/desktop control, and remote management of projects.
      19
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets MCP clients such as Claude Code, Cursor, and Claude.ai inspect and drive herdr workspaces, panes, and coding agents over a local socket, running either as a local stdio process or as an OAuth-protected HTTP endpoint published through a Cloudflare Tunnel. It exposes tools to create workspaces and tabs, split panes, start and prompt agents, read their output, and wait for results.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP-capable chat clients like ChatGPT, Claude, and Cursor to read, search, edit, and run commands on a local machine, including git operations and browser automation. Runs as a local daemon with workspace path jails, safety modes, checkpoints, and human-in-the-loop approval for edits and shell commands.
      MIT