Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

hermes-prime MCP server

Native Claude Code surface for hermes-prime. Exposes the session-priming conventions as MCP tools so a fresh session can call get_conventions once at the top instead of relying on CLAUDE.md injection.

Pure stdlib. No third-party runtime dependencies.

Tools

  • get_conventions(scope_class?) — returns the CLAUDE-fragment as raw markdown. Optional scope_class returns fragments/<scope_class>.md if it exists, else falls back to the default fragment.
  • list_scopes — enumerates available scoped fragments.

Install from PyPI (packaged console script)

Once published (see Packaging status below), the server installs as a standalone console script with no repo checkout required:

pip install hermes-prime-mcp
hermes-prime-mcp   # speaks MCP JSON-RPC over stdio

or run it without installing, via uvx:

uvx --from hermes-prime-mcp hermes-prime-mcp

Register the installed script directly with Claude Code:

claude mcp add --scope local hermes-prime -- hermes-prime-mcp

The packaged server reads the versioned convention card bundled in its wheel. Set HERMES_PRIME_FRAGMENT_ROOT=/path/to/your/project only when you want it to read a trusted custom CLAUDE-fragment.md instead (see Configuration).

Register in Claude Code (from a repo checkout)

Run from the repository root. Local scope loads the command for your sessions in the current project:

claude mcp add --scope local hermes-prime -- python3 "$PWD/mcp-server/hermes_prime_mcp.py"

For a private command available to your sessions across projects, use user scope:

claude mcp add --scope user hermes-prime -- python3 "$PWD/mcp-server/hermes_prime_mcp.py"

Use claude mcp get hermes-prime or claude mcp list to verify registration; both should report the server as Connected (verified with Claude Code 2.1.268 on 2026-09-11). The tools appear in sessions covered by the selected scope, and the server's initialize instructions tell the session to call get_conventions once before recursive or emergent work.

Verify it works

printf '%s\n%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_conventions","arguments":{}}}' \
  | python3 "$PWD/mcp-server/hermes_prime_mcp.py"

Two JSON-RPC responses; second one contains the fragment markdown.

Uninstall

claude mcp remove hermes-prime

Remove it from the same project/scope in which it was registered.

Configuration

HERMES_PRIME_FRAGMENT_ROOT overrides the directory containing the default CLAUDE-fragment.md. In a repository checkout the default is the repository root; in a packaged install it is the immutable card bundled with the wheel. Scoped fragments are bundled at mcp-server/fragments/<scope_class>.md in a checkout.

Tests

python3 -m pytest mcp-server/test_hermes_prime_mcp.py -v

13 tests, stdlib-only (subprocess + json), no mcp SDK dependency.

Packaging status

  • pyproject.toml (repo root) builds an sdist/wheel named hermes-prime-mcp exposing the hermes-prime-mcp console script via python -m build.
  • server.json (repo root) is the MCP Registry manifest, matching the registry's 2025-12-11 server.schema.json.
  • Before publishing, run mcp-publisher validate server.json; this verifies the live Registry contract without creating a listing.
  • Not yet done by this change, remains for the repo owner: twine upload to PyPI, a tagged GitHub release, and mcp-publisher publish (or the registry's GitHub Action) to submit server.json. This branch does not create a PyPI credential, a git tag, or a GitHub Release.

Release files for hermes-prime-mcp 0.2.1a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hermes-prime-mcp 0.2.1a1
File Size Uploaded
hermes_prime_mcp-0.2.1a1.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hermes-prime-mcp 0.2.1a1
File Interpreter ABI Platform
hermes_prime_mcp-0.2.1a1-py3-none-any.whl Python 3 none any Details

Total release size: 31.0 kB

Release files / hermes_prime_mcp-0.2.1a1.tar.gz

Download URL hermes_prime_mcp-0.2.1a1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2abdfd6465c57d6509b22ecdc3145d6d79c48a000a4c6f56e5f9930ff2c69143
BLAKE2b-256 checksum
How to use checksums
dd623ee0cdb43fd0022033bead8bcbc398d714235d2f36e0a611445a19278d66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / hermes_prime_mcp-0.2.1a1-py3-none-any.whl

Download URL hermes_prime_mcp-0.2.1a1-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1905d20451334ba315fe77f2eaa310948692ce620ae54fc786452dbafada0ed1
BLAKE2b-256 checksum
How to use checksums
af5dbb15dda863288fbab27d41143e5e72f736b80399dec07a7c925e9da14d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.2.1a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page