Content-addressed semantics: fail-closed handshakes over 453 cognitive patterns.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Content-addressed semantics for multi-agent coordination.
Sema is a content-addressed reference system for reasoning and communication. Participants encode and hash information under an agreed representation, then reuse the content address as a verifiable reference, optionally paired with a human-readable handle. Matching full references establishes identity of the resolved hashed content; semantic equivalence, correctness, and enforcement remain separate questions.
Web: semahash.org Β· Discord: Join
Add to any MCP client (Claude Code, Cursor, VS Code, Windsurf, Claude Desktop):
Or via Claude Code CLI:
This uses uv to download, install, and run sema in an isolated environment on first invocation, then caches it for subsequent calls.
Sema also ships as a Claude Code plugin β MCP server plus a skill that teaches the agent the search/resolve/mint/handshake workflow:
This gives you the MCP server and the sema-usage skill (auto-loaded), which teaches when to search vs mint, how to embed handles in text, and how to verify meaning at boundaries. The skill is a Claude Code convenience β the MCP server works with any client.
For local development:
For CLI-only use (no MCP server):
Already covered above via the JSON config or pip install path. For development against this repo:
Your agent now has access to sema_search, sema_lookup, sema_handshake, and 9 more tools. Any MCP-compatible client works β Sema exposes a standard stdio server.
Verify it works β ask your agent: "Search sema for coordination patterns and handshake on StateLock"
Sema exposes a standard MCP stdio server β any MCP-compatible client works, including OpenClaw (openclaw mcp set sema '{"command":"uvx","args":["--from","semahash[mcp]","sema","mcp"]}').
Build a private registry from scratch β no PR or maintainer in the loop:
Subsequent sema commands (including sema mcp) read from your private
registry. (SEMA_DB_PATH, if set, overrides sema use.) See
CONTRIBUTING.md for the canonical
contribution path and docs/specification/versioning.md for the
refinement and supersession policy.
Package a project database as a verified, standalone library release:
Publish the generated library.json and versioned ZIP as assets on the
corresponding published GitHub Release. Consumers install the Release asset URL
for library.jsonβnot the repository URL or a branch:
It installs one verified snapshot at a time rather than merging vocabularies;
the bundled vocabulary remains the offline default. Use sema update mylib to
follow the installed library's recorded release pointer. See
Publishing and Installing Vocabulary Libraries for
the complete DeFi authoring, dependency-closure, packaging, GitHub Release, and
update workflow.
See the handshake in action: matching hashes PROCEED, mismatched hashes HALT, and unknown patterns HALT. Cooperative mode accepts short prefixes for drift detection; strict mode requires the full hash. Takes 2 seconds.
Take any concept (a coordination protocol, a reasoning pattern, a trust mechanism), express it in canonical form, hash it. That hash IS the word. Change one byte in the definition, get a different word.
This is the Anti-Postel principle: strict mode proceeds only on full-hash identity; cooperative mode uses compact prefixes as a non-adversarial drift signal. Mismatches fail closed in both modes.
The bundled vocabulary spans 4 layers:
Each pattern is a content-addressed behavioral definition. Concrete cards may add machine-verifiable contracts, invariants, failure modes, parameters, and typed dependencies where those fields are identity-defining.
When running as an MCP server (sema mcp), these tools are available:
| Tool | Description |
|---|---|
sema_search | Search patterns by name, description, or meaning |
sema_lookup | Get a pattern by its reference (e.g., StateLock#c9c2) |
sema_resolve | Get a pattern with dependencies expanded |
sema_handshake | Fail-closed semantic verification between agents |
sema_mint | Create a new pattern (validate, hash, add to vocabulary) |
sema_propose_context | Compute a context digest for a multi-agent definition set (drift detection) |
sema_verify_context | Verify a context proposal from another agent |
sema_tree | Browse vocabulary by layer and category |
sema_validate | Validate a pattern JSON for correctness |
sema_stats | Vocabulary statistics |
sema_graph_skeleton | Ultra-minimal graph overview (~150 tokens) |
sema_reset_session | Clear session cache so searches return full results again |
Interactive 3D graph visualization, pattern browser, and search. Built with React + Three.js.
The experiments/ directory contains reproducible evaluations of Sema's
claims and implementation boundaries.
The public v0.3.0 to v0.4.0 reconstruction experiment checks whether the
current graph and hash-cascade algorithm can rebuild a target vocabulary from
an earlier release. It compares both aggregate roots, semantic pattern content,
the logical dependency graph, unhashed metadata, and the complete normalized
read model rather than treating root equality as complete release equality.
It also demonstrates the safe reconstruction path: integrate the delta into a
complete staged card snapshot, compile a fresh database, verify the result, and
only then activate it.
The experiment and its expected results are documented in
experiments/delta_reconstruction/README.md.
Small synthetic versions of its addition, removal, rename, cascade, metadata,
and failure cases run in the regular test suite.
The controlled multi-agent design challenge compares three conditions:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/semahash)<a href="https://allmcps.com/mcp/semahash"><img src="https://allmcps.com/api/badge/semahash?style=directory" alt="Semahash on AllMCPs" /></a>