Hermes MCP — GitHub and GitLab Integration
Wire GitHub and GitLab MCP servers into Hermes via ~/.hermes/config.yaml so you can ask Hermes to manage repos, issues, and PRs naturally.
Why / When to Use
When you want Hermes to interact with GitHub/GitLab — listing open PRs, creating issues, reviewing diffs — without copying tokens into every prompt. Once configured, tool calls happen automatically during normal reasoning.
Core Concept / Commands
Step 1 — Install MCP support in Hermes
cd ~/.hermes/hermes-agent
uv pip install -e ".[mcp]"
# Node.js required for npx-based servers — check: node --versionStep 2 — Get personal access tokens
- GitHub: Settings → Developer settings → Personal access tokens → Fine-grained token (scopes: repo, issues, PRs)
- GitLab: Settings → Access Tokens → create with
apiscope
Step 3 — Edit ~/.hermes/config.yaml
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "ghp_your_token_here"
gitlab:
command: "npx"
args: ["-y", "@zereight/mcp-gitlab"]
env:
GITLAB_PERSONAL_ACCESS_TOKEN: "glpat_your_token_here"
GITLAB_API_URL: "https://gitlab.com/api/v4" # or self-hosted URLStep 4 — Restart Hermes
sudo systemctl restart hermes # if running as systemd service
# or just relaunch:
hermesStep 5 — Verify
hermes mcp listKey Options / Variants
- Replace
GITLAB_API_URLwith your self-hosted GitLab instance URL if not using gitlab.com - Pre-install the npm package to avoid first-run download timeout:
npm install -g @modelcontextprotocol/server-github npm install -g @zereight/mcp-gitlab
Gotchas
- Hermes does NOT inherit your shell environment for MCP subprocesses — only safe baseline vars like
PATHandHOMEare passed. API keys exported in your shell are invisible to MCP. They must be inconfig.yamlunder theenv:key. - If a server shows
0 toolsafterhermes mcp list, the handshake failed. Check the token and confirm Node.js is available. - The
npxfirst run downloads the package — this can hit MCP handshake timeouts. Pre-install to avoid this.
Source
Conversation: “Hermes integration with GitHub and GitLab” — 2026-05-15