Hermes
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Hermes
A local-first Model Context Protocol server that gives your agent a persistent notebook, a searchable map of your local repositories, and a live console for calling every tool by hand.
No account, no API key, no network call. Notes live in a JSON file you own.
npx hermes-local-mcp start # console on http://127.0.0.1:4123
npx hermes-local-mcp mcp-json # ready-to-paste config for your MCP clientWhy
Your agent forgets; Hermes doesn't. Notes survive restarts and are shared across every client you connect (Claude Desktop, Cursor, VS Code, any MCP host).
Local code context without uploading code. Point it at your checkouts and it indexes languages, exported symbols, headings, entrypoints and manifest dependencies.
You can see what your agent sees. The console is the same tool registry the MCP server exposes, not a mock, so debugging a tool call is one click instead of a protocol trace.
Related MCP server: Sugar Memory
Install
Requires Node 18.17+.
npm install -g hermes-local-mcp
hermes start
hermes status
hermes mcp-json # copy the output into your client's configOr skip the install and use npx hermes-local-mcp <command>.
Connect a client
hermes mcp-json prints the exact JSON for the directory Hermes is installed in:
{
"mcpServers": {
"hermes": {
"command": "/usr/local/bin/node",
"args": ["/path/to/hermes-local-mcp/src/mcp.js"],
"env": { "HERMES_DATA_DIR": "/home/you/.hermes-mcp" }
}
}
}Claude Desktop — paste into
claude_desktop_config.json, restart the app.Cursor / VS Code — paste into
~/.cursor/mcp.jsonor.vscode/mcp.jsonunderservers.Lemon Code — Customize → MCP servers, same
command/args/env.
The server speaks stdio only: logs go to stderr, protocol frames to stdout.
CLI
Command | Does |
| Run the console in the background (idempotent) |
| Stop it |
| Stop then start |
| Health check, pid, data directory |
| Print the console address |
| Print a client config for this install |
| Last 60 lines of the console log |
Tools
Tool | What it does |
| Server name, version, pid, uptime, note count, data dir |
| Current time in ISO 8601, optional IANA timezone |
| Arithmetic |
| Store text with tags |
| Filter by substring and/or tags |
| Delete by id |
| Platform, arch, cpus, memory, hostname, uptime |
| Re-index repo checkouts into the knowledge map |
| Search repo names, READMEs, symbols, headings, entrypoints |
| One repo in full: git state, languages, symbols, manifest |
| Map age, repo location, coverage |
Resources: hermes://notes, hermes://server-info, hermes://atlas.
Repo atlas
hermes-local-mcp sync-repos # gh repo list → clone/fetch into ~/hermes-repos, then rescan
hermes-local-mcp atlas # rescan onlyEnv: HERMES_REPOS_DIR (default ~/hermes-repos), HERMES_GH_OWNER (defaults to the signed-in
gh account). The map lands in $HERMES_DATA_DIR/atlas.json; a scan of ~10 repos (18k lines)
takes about 60 ms. Skips .git, node_modules, dist, venv and friends.
Paid tools (x402)
src/paid.js serves the same tools over MCP Streamable HTTP with per-call pricing, so an agent
can discover the server for free and pay only for the calls that cost you money to run. Payment
is x402: the server answers an unpaid call with a 402 carrying price, asset,
network and payee; the client signs a USDC authorization and retries, and a facilitator verifies
and settles it.
Tool | Price | What it does |
| free | Arithmetic; proves the server is reachable before paying |
| $0.02 | Index every repo under |
| $0.01 | Details for one indexed repo |
# demo: local mock facilitator — a real signature and 402 flow, no chain, no money
X402_PAY_TO=0xYourReceivingAddress X402_FACILITATOR=mock npm run paid:serve
PAYER_PRIVATE_KEY=0xThrowawayTestnetKey npm run paid:client# real testnet settlement on Base Sepolia via the public facilitator:
# the payer account needs testnet USDC (0x036CbD…CF7e)
X402_PAY_TO=0xYourReceivingAddress npm run paid:serve
PAYER_PRIVATE_KEY=0xFundedTestnetKey npm run paid:clientEnv (server) | Default | Meaning |
| — (required) | Address that receives payment |
|
|
|
|
| Base Sepolia |
|
| Price per call |
|
| Listen address |
|
| Where settled payments are recorded |
| — | Required to read |
Knowing what you earned
Every settled payment is appended to payments.jsonl (time, tool, amount, asset, network, payer,
transaction) and summarised at GET /earnings:
curl -s http://127.0.0.1:4130/earnings | jq
# { real: {count, totalUsd, byTool}, mock: {...}, recent: [...], ledger: "..." }Mock settlements are written too but land in mock and never in real, so a demo cannot inflate
your revenue. The file is the audit trail: keep it, back it up, and reconcile recent[].transaction
against the chain. /earnings is local-only on the default loopback bind; behind a public address
it answers 404 unless the request carries x-hermes-token: $X402_ADMIN_TOKEN.
The client (scripts/paid-client.js) prints the 402 challenge before paying, then pays and prints
the settlement. It refuses any call above MAX_PRICE_USD (default 0.05) in its
onPaymentRequested hook — the same place you would add a daily budget or an allowlist.
The mock facilitator always verifies and settles and never touches a chain, so a green
npm test proves the protocol flow, not that money moved. test/paid.test.js covers the free
tier, the 402, settlement, the second paid tool and the client-side price cap.
Safety and data
Notes and the atlas are plain JSON in
$HERMES_DATA_DIR(default~/.hermes-mcp). Back them up by copying that directory; delete them by removing it.Every write takes an
O_EXCLlock and renames a temp file into place, so several processes can write at once. The previous version is kept asnotes.json.bakand restored automatically if the main file is ever corrupt.The console binds
127.0.0.1by default. To expose it on a network, set bothHERMES_HTTP_HOST=0.0.0.0andHERMES_HTTP_TOKEN=<secret>;/api/*then requiresAuthorization: Bearer <secret>and the UI prompts once. Never set the host without the token.
Develop
npm install
npm test # stdio handshake, multi-process writes, CLI and x402 payment checks
npm run demo # spawn the server with a real MCP client and call its toolsLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Related MCP Servers
- AlicenseCqualityBmaintenanceGives AI coding assistants persistent project memory and semantic code search, running fully locally with no API keys required.56MIT
- FlicenseNot gradedqualityAmaintenanceProvides AI coding agents with a local-first persistent memory layer they can read and write during sessions, storing decisions, preferences, error patterns, and research per project or globally. Enables semantic and keyword search, formatted context recall, and cross-project guideline surfacing without API keys or cloud storage.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to store and retrieve persistent project and cross-project memories via semantic search, so decisions, preferences, error patterns, and guidelines survive across sessions. Optionally supports autonomous task execution built on the same local-first knowledge store.-
- FlicenseNot gradedqualityAmaintenanceGives AI coding agents direct, local-first read/write access to persistent memory — project decisions, preferences, error patterns, research, and cross-project guidelines — retrieved by semantic search backed by SQLite with no API keys or network calls. A companion server also exposes optional autonomous task-queue execution.-