Skip to main content

Hermes MCP Server — self-hosted gateway that bridges Android/Web clients to Hermes AI Agent via MCP (Model Context Protocol). WebSocket + HTTP SSE + REST.

Project description

Hermes MCP Server

Self-hosted MCP (Model Context Protocol) gateway — bridges Android/Web clients to Hermes AI Agent. Run your own AI server in 30 seconds.

Architecture

┌──────────────────┐      ┌─────────────────────────┐      ┌──────────────────┐
│  Hermes Gateway  │      │   Hermes MCP Server      │      │  Hermes Agent    │
│  (Android App)   │◄────►│   (this package)         │◄────►│  (hermes CLI)    │
│                  │ WS   │   Port 8080              │ CLI  │                  │
│  • Chat          │ SSE  │   • MCP JSON-RPC         │      │  • LLM models    │
│  • Streaming     │ HTTP │   • SSE streaming        │      │  • Tools         │
│  • File upload   │      │   • REST API             │      │  • Skills        │
│  • Dark theme    │      │   • Session mgmt         │      │  • Memory        │
└──────────────────┘      └─────────────────────────┘      └──────────────────┘

Prerequisites

Quick Start

# 1. Install
pip install hermes-mcp-server

# 2. Start
hermes-mcp-server

# That's it! Server running on http://0.0.0.0:8080

Connect from Android

  1. Install Hermes Gateway APK on your phone
  2. Open app → Add Profile
  3. Enter your server's IP and port 8080
  4. Press Connect — start chatting with your AI!

APK available at: https://github.com/gothbreach/hermes-gateway/releases

Configuration

# Custom port
hermes-mcp-server --port 9000

# Specific model + provider
hermes-mcp-server --model deepseek-v4-pro --provider opencode-go

# Custom host (for LAN access)
hermes-mcp-server --host 0.0.0.0 --port 8080

Environment Variables

Variable Default Description
HOST 0.0.0.0 Server bind address
PORT 8080 Server port
HERMES_PATH hermes Path to hermes binary
HERMES_HOME ~/.hermes Hermes config directory
HERMES_MODEL Default model override
HERMES_PROVIDER Default provider override
HERMES_UPLOAD_DIR /tmp/hermes-uploads File upload directory

Endpoints

Method Path Description
WS /ws MCP WebSocket (JSON-RPC 2.0)
GET /stream HTTP SSE streaming chat
GET /health Health check
GET /status Full server status
POST /chat One-shot chat
POST /upload File upload
GET /config/providers List available providers
GET /config/models?provider=X List models for provider
GET /mcp/info MCP server info + tools
GET /docs Swagger UI

MCP Tools

Tool Description
hermes_chat Send message to Hermes
hermes_status Get agent status
hermes_execute Execute shell command
hermes_analyze_file Analyze a file
hermes_new_session Create new session
hermes_send_file Upload file

Run as System Service (systemd)

cat > /etc/systemd/system/hermes-mcp.service << 'EOF'
[Unit]
Description=Hermes MCP Server
After=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/hermes-mcp-server
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl enable --now hermes-mcp

CLI Client

Use hermes-mcp-client to connect from terminal:

pip install hermes-mcp-client
hermes-mcp connect http://localhost:8080 --name local
hermes-mcp chat "Hello" --server local

License

MIT — Gothbreach 2026

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hermes_mcp_server-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hermes_mcp_server-1.0.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file hermes_mcp_server-1.0.0.tar.gz.

File metadata

  • Download URL: hermes_mcp_server-1.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for hermes_mcp_server-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b20f85eaedbf7f9b5ba8a8cbb1d2bd2669ae8d99f244b04e80f2ed72df92b64b
MD5 e283e137f63151f4b8f5fc73dc7b9ce2
BLAKE2b-256 2494df58aa95a5be462ff8630c673d1ee399606c7db11bc9bfbf9589fbc9c0f0

See more details on using hashes here.

File details

Details for the file hermes_mcp_server-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hermes_mcp_server-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c22687fb814b4ac40d5a73804359313653bfea164653853d7ab81c87ef6b9496
MD5 9ba1ac15959463451d946df4bcc64d97
BLAKE2b-256 33dc80e2a92800c7494695a4902c9130119ea5943c2b1e3762080dbc86d72571

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page