hermes-gpt
Enables MCP-based interaction with a local Hermes Agent installation, providing file read/search, skill management, and optional sandboxed write, terminal, and memory tools.
README
hermes-gpt

hermes-gpt is a standalone MCP sidecar for Hermes Agent. It imports selected local Hermes Agent internals at runtime and exposes them to MCP clients without modifying Hermes Agent source files.
This is a local-dev release. It is not a hosted service, not a fork of Hermes Agent, not a generic remote dev container, and not a replacement for DevSpace.
Security posture
By default, hermes-gpt is designed for a trusted local machine:
- HTTP binds to
127.0.0.1by default. - Tools advertise
noauthso ChatGPT can use Developer Mode withNo Authentication; optional bridge auth is enforced by the HTTP endpoint itself. - Public HTTP can be protected with
HERMES_GPT_HTTP_TOKENusing query parameters or an HTTP Bearer token header. - Reads are limited by
HERMES_GPT_READ_ROOTSand writes are confined toHERMES_GPT_SAFE_ROOT. - Write is create-only; patch, terminal execution, memory writes, and session search are disabled or hidden by default.
Do not expose this server publicly without HERMES_GPT_HTTP_TOKEN or an equivalent outer authentication layer. Prefer a stable Cloudflare named tunnel or reserved ngrok domain over quick trycloudflare.com URLs when ChatGPT connector URLs must survive restarts.
Prerequisites
- Python 3.10+
- A local Hermes Agent install
- MCP Python SDK and Uvicorn
Install dependencies:
cd ~/hermes-gpt
python -m pip install -r requirements.txt
Local MCP clients
Stdio mode is for local MCP clients that support subprocess MCP servers:
cd ~/hermes-gpt
python server.py
Example client command:
{
"command": "python",
"args": ["C:\\Users\\asimo\\hermes-gpt\\server.py"]
}
Local HTTP
HTTP mode uses FastMCP streamable HTTP:
cd ~/hermes-gpt
python server.py --http --host 127.0.0.1 --port 7677
Local endpoint:
http://127.0.0.1:7677/mcp
If you bind to anything other than loopback in the default local-dev profile, the server prints a warning. This warning means the configuration is not release-safe.
ChatGPT local testing
ChatGPT developer mode expects a remote MCP endpoint. Do not enter a localhost URL such as http://127.0.0.1:4750; ChatGPT fetches the MCP configuration through its connector path, where 127.0.0.1 is not your machine.
For short local testing only:
cd C:\Users\asimo\hermes-gpt
python server.py --http --host 127.0.0.1 --port 4750
In another terminal:
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel --url http://127.0.0.1:4750 --http-host-header 127.0.0.1:4750
For token-protected local testing, start the server with a stable bridge token:
HERMES_GPT_HOST_IDENTITY=Dell \
HERMES_GPT_HTTP_TOKEN=placeholder-token \
HERMES_GPT_SAFE_ROOT=/path/to/sandbox \
HERMES_GPT_READ_ROOTS=/path/to/read/root \
HERMES_GPT_ENABLE_WRITE=1 \
python server.py --http --host 127.0.0.1 --port 4750
In ChatGPT, configure:
- Protocol: Streaming HTTP
- MCP server URL:
https://<your-host>/mcp?hermes_token=placeholder-token - Authentication: No Authentication
The token is intentionally part of the server URL because many ChatGPT connector flows cannot set custom headers. Do not publish real connector URLs. Remove and recreate the connector if ChatGPT cached older tool metadata.
Tool gates
Default visible tools:
hermes_server_config()— host identity, read roots, write root, auth status, and safety modes without revealing token values.hermes_self_test()— local bridge diagnostics for roots, token, write sandbox, and sensitive-path blocking.hermes_tree(path=".", depth=2, limit=100)— shallow directory tree.hermes_read_file(path, offset=1, limit=500)hermes_search_files(pattern, target="content", path=".", file_glob=None, limit=50);target="path"is accepted as a filename-search alias.hermes_list_files(path=".", limit=50)hermes_view_image(path)— returns PNG/JPEG/WebP/GIF as MCP image content.hermes_skill_list()hermes_skill_view(name)
Opt-in tools and actions:
| Capability | Env var | Default |
|---|---|---|
| Create-only sandbox write | HERMES_GPT_ENABLE_WRITE=1 + HERMES_GPT_SAFE_ROOT=/path/to/sandbox |
Hidden |
Memory add, replace, remove |
HERMES_GPT_ENABLE_MEMORY_WRITE=1 |
Disabled |
| Session search | HERMES_GPT_ENABLE_SESSION_SEARCH=1 |
Hidden |
| Terminal command execution | HERMES_GPT_ENABLE_TERMINAL=1 |
Hidden |
Terminal timeout is capped at 120 seconds even when enabled.
CodexPro-inspired bridge knobs
| Setting | Purpose |
|---|---|
HERMES_GPT_HOST_IDENTITY |
Human label such as Dell or Pedro returned by hermes_server_config. |
HERMES_GPT_HTTP_TOKEN |
Enables query/Bearer token enforcement on HTTP/SSE transports. |
HERMES_GPT_REQUIRE_HTTP_TOKEN=1 |
Reject HTTP traffic if no token is configured. |
HERMES_GPT_READ_ROOTS |
os.pathsep-separated read-only roots visible to read/search/tree/image tools. |
HERMES_GPT_PATH_ALIASES |
Public-to-local path aliases, e.g. /linus1=/home/imac-hermes/linus1/shared. |
HERMES_GPT_SAFE_ROOT |
The only directory where write tools may create files. |
See HERMESPRO_PLAN.md for Dell/Pedro deployment examples and the hybrid design rationale.
Remote profile
--profile remote is intended for public/tunneled testing. Configure HERMES_GPT_HTTP_TOKEN before exposing it through a public URL:
HERMES_GPT_HTTP_TOKEN=placeholder-token python server.py --http --profile remote --host 127.0.0.1 --port 7677
For temporary no-auth experiments only, you can bypass the remote-profile guard with both:
HERMES_GPT_UNSAFE_REMOTE_NOAUTH=1
python server.py --http --profile remote --i-understand-this-is-unsafe
Do not use the no-auth bypass for release.
Release checklist
Before publishing:
- No
*.pemfiles. - No
*.logor*.err.logfiles. - No
__pycache__/or*.pyc. python -m py_compile server.pypasses.pytestpasses.- Server binds to loopback by default.
- Terminal, write tools, memory writes, and session search are disabled by default.
Current capability notes
The feasibility probe passed in this environment:
- Hermes source root:
C:\Users\asimo\AppData\Local\hermes\hermes-agent - File tools: available
- Terminal tool: available, gated by
HERMES_GPT_ENABLE_TERMINAL=1 - Memory tool: available
- Skill discovery: available through local and bundled skill directories
- Session search: available through
SessionDB.search_messages - FastMCP stdio: available
- FastMCP streamable HTTP: available
See FEASIBILITY.md for probe details and exact signatures.
License
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。