Skip to main content

Cross-agent, dataset-backed skill and memory sync via MCP. Hermify your agent interactions into portable, event-sourced artifacts.

Project description

hermify-mcp

Cross-agent, dataset-backed skill and memory sync via MCP. Hermify your agent interactions - push from Claude, pull into Gemini, improve without friction.

MIT License Python 3.11+ uv agentskills.io


What it does

hermify-mcp is an MCP server that gives any agent runtime a shared, event-sourced, dataset-backed knowledge base following the agentskills.io open standard.

Instead of relying on traditional file-based version control, hermify-mcp treats agent skills, memory, and logs as structured, queryable data. It uses a local-first DuckDB buffer for lightning-fast, non-blocking agent interactions, which seamlessly syncs to Hugging Face Datasets as the immutable source of truth.

Claude session ──► hermify_log() ──► Local DuckDB Buffer (Instant, ACID)
                                              │
                                        (Async Sync)
                                              │
                               Hugging Face Datasets (Parquet Shards)
                                              │
                              Gemini / Hermes / next Claude
                              session pulls & queries on start

Non-intrusive by design. The server never injects into the agent loop. Agents call propose_skill or hermify_log post-session. The main workflow is never blocked waiting for network sync.


🚀 Quick Start & Agent Setup

The recommended way to run hermify-mcp is via uvx, which allows your agent runtime to spawn the server in an isolated, ephemeral environment without polluting your global Python packages.

1. Bootstrap your local configuration (One-time setup)

Run this in your terminal to create your local DuckDB buffer and configure your Hugging Face target.

# Install uv if you haven't already (https://docs.astral.sh/uv/)
# Bootstrap local config (creates ~/.hermify/config.yaml)
uvx hermify-mcp init --hf-repo your-username/hermify-agent-memory --mode hf_push

# Optional: Enable YOLO auto-approval mode (uses LLM-as-a-Judge)
# uvx hermify-mcp init --hf-repo your-username/hermify-agent-memory --mode hf_push --yolo

2. Connect your Agent Runtime

Option A: Local Private Brain (Claude Desktop / Cursor / Windsurf)

Add the following to your MCP client configuration. This uses uvx to run the server locally via stdio.

Note: We inject HF_TOKEN via the env block so the server can sync to Hugging Face.

Claude Desktop (claude_desktop_config.json) / Cursor (mcp.json):

{
  "mcpServers": {
    "hermify": {
      "command": "uvx",
      "args": ["hermify-mcp", "serve", "--transport", "stdio"],
      "env": {
        "HF_TOKEN": "hf_YOUR_HUGGINGFACE_TOKEN_HERE"
      }
    }
  }
}

Option B: Shared Team Brain (Hugging Face Spaces / Remote HTTP)

Want to host a centralized, team-wide agent brain or a public demo? You can deploy hermify-mcp to Hugging Face Spaces using Docker.

This allows multiple agents (or multiple users) to connect to the same shared memory and skill library via HTTP, without needing to manage local files or sync conflicts.

👉 Read the full Docker Deployment Guide here

Once your Space is deployed and running, you don't use uvx or stdio. Instead, point your agent's MCP configuration directly to your Space's URL.

Update your agent's MCP configuration (e.g., claude_desktop_config.json or Cursor's mcp.json):

{
  "mcpServers": {
    "hermify-team-brain": {
      "url": "https://YOUR_USERNAME-hermify-team-brain.hf.space/mcp"
    }
  }
}

Note: FastMCP's HTTP transport automatically handles the /mcp or /sse routing based on the client's negotiation.


🏗️ Architecture

hermify-mcp is built on a pluggable storage architecture, making it easy to scale or swap backends while maintaining a consistent MCP tool surface.

src/hermify_mcp/
├── config.py           # HermifyConfig (Pydantic) + domain models
├── dataset_store.py    # Local-first DuckDB store (Skills, Memory, Audit Chain)
├── hf_sync.py          # Hugging Face Datasets sync engine (Parquet <-> Hub)
├── eval.py             # LLM-as-a-Judge evaluation pipeline (YOLO governance)
├── server.py           # FastMCP server - dataset-native tools
└── cli.py              # Typer CLI (hermify init/serve/sync)

Governance & Approval Modes

Every skill write goes through a strict state machine (draftsandboxactive).

Mode Behaviour
human_review Skills stay draft. Humans review via HF Hub UI or CLI before promoting to active.
yolo_eval An LLM-as-a-Judge automatically evaluates drafts. High-scoring skills auto-promote to sandbox (probationary use) or active (pure YOLO).
local_only Skills and memory stay in the local DuckDB buffer. No network calls. Default for air-gapped environments.

🛠️ CLI Reference

While agents interact with the server via MCP, you can manage your local brain directly from the terminal.

# Show help
uvx hermify-mcp --help

# Initialize / Reconfigure
uvx hermify-mcp init --home ~/.hermify --hf-repo user/repo --mode hf_push --yolo

# Manual Sync Operations (Useful for cron jobs or CI/CD)
uvx hermify-mcp sync push      # Force push local DuckDB to HF Hub
uvx hermify-mcp sync pull      # Pull latest Parquet shards from HF Hub
uvx hermify-mcp sync status    # View local buffer metrics and sync state

# Start server manually (defaults to stdio)
uvx hermify-mcp serve
uvx hermify-mcp serve --transport http --port 8742

🧰 MCP Tools Surface

Skills & Governance

Tool Description
propose_skill Append a new skill draft to the local dataset. Triggers YOLO eval if enabled.
evaluate_skill Manually trigger the LLM Judge to score a draft and auto-transition state.
approve_skill Human override to promote a draft or sandbox skill to active.
search_skills Semantic or keyword search across the active dataset.

Core: hermify_log

hermify_log(
  raw_transcript,   # full session text
  skill_md,         # pre-generated SKILL.md from reflective phase
  source_agent,     # "claude" | "gemini" | "hermes"
  session_id,
  task_goal,
)

Stores the log + creates a draft skill in the local buffer. One call = full hermification.

Sync & Memory

Tool Description
append_memory Append semantic memory to the local dataset buffer.
get_memory Retrieve chronological memory entries for an agent.
sync_status Show local buffer size, last sync timestamp, and HF Hub revision.
sync_push Batch local DuckDB changes into Parquet and push to HF Hub.
sync_pull Download latest Parquet shards from HF Hub and merge into local DB.

🧩 Extensibility

The storage layer is abstracted. While DuckDB + Hugging Face Datasets is the default, the BaseStore protocol allows you to implement custom backends (e.g., PostgreSQL, LanceDB, or cloud object storage) without changing the MCP server interface.

Similarly, the EvalJudge protocol allows you to plug in any LLM (OpenAI, Anthropic, Ollama) for YOLO governance.


🤝 Contributing

We follow strict TDD. Please read CONTRIBUTING.md before submitting PRs.

# Clone and setup
git clone https://github.com/your-org/hermify-mcp.git
cd hermify-mcp
uv sync

# Run tests
uv run pytest

# Type checking
uv run mypy .

License

MIT - see LICENSE

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

hermify_mcp-0.2.1.tar.gz (263.6 kB view details)

Uploaded Source

Built Distribution

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

hermify_mcp-0.2.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file hermify_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: hermify_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 263.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hermify_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 212f4f6b0f17c546ecb62bf82b9f4378be384e2f51039edc16ab7d22ba54e431
MD5 5cf01f74bff498964b5ba1f1f8f4fa90
BLAKE2b-256 238bd44b193e5935e26acf1a29b129a1afe5bb34499e72a22cc99ebb8250694b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hermify_mcp-0.2.1.tar.gz:

Publisher: release.yml on Felix-Mutinda/hermify-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hermify_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: hermify_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hermify_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed30b8332883dbad598519b25553e87a0b32596fc0f8d3807a164ab605d946df
MD5 f9c027dc6ebad718a2dec246aa58025e
BLAKE2b-256 d967cb2c7c6f77ad1776cf155fb5463e91dd3c591ed544d7b014b1095fd9dd01

See more details on using hashes here.

Provenance

The following attestation bundles were made for hermify_mcp-0.2.1-py3-none-any.whl:

Publisher: release.yml on Felix-Mutinda/hermify-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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