Hyperon-MCP
An MCP server that gives coding agents persistent, scoped symbolic memory with PLN/NAL inference on the OpenCog Hyperon MeTTa stack.
README
Hyperon-MCP (atomspace-agent)
An MCP server that gives coding agents (Claude Code, Codex, OpenClaw, OmegaClaw) persistent, scoped symbolic memory with real PLN/NAL inference on the OpenCog Hyperon MeTTa stack:
- one global AtomSpace — cross-project preferences and learned rules,
- one AtomSpace per repo — architecture facts, dependency edges, invariants, decisions — keyed by normalized git remote (clones/worktrees share a space),
- inference by the vendored, frozen
lib_nal.metta/lib_pln.mettafrom OmegaClaw-Core (@ dbb22b0), evaluated on thehyperonruntime (PeTTa subprocess backend optional), - truth values everywhere: atoms carry
(stv f c); multi-hop conclusions decay in confidence, contradictions merge by NAL revision, provenance follows OmegaClaw'smemory_schemacontract (tool_result 0.9 / user 0.8 / knowledge_prior 0.7 / llm 0.55).
Install & run
pip install -e '.[full]' # hyperon + mcp
atomspace-agent # stdio MCP server
atomspace-agent selftest # end-to-end smoke: assert -> query -> 2-hop infer -> export
Claude Code: drop skills/claude-code/.mcp.json into your project (or merge it)
and install the skills/claude-code/atomspace skill. Codex: see
skills/codex/AGENTS.snippet.md. OpenClaw: skills/openclaw/atomspace.
OmegaClaw: point profile/plugins.yaml roots at plugins/omegaclaw-bridge
(no MCP needed — it bridges through plugin_registry).
Tools (11)
atom_assert · atom_assert_batch · atom_query (pattern match, $-vars) ·
infer (k-hop PLN/NAL with proof traces, subprocess + hard timeout) ·
revise (NAL revision) · atom_retract (supersede, never delete) ·
scope_info (counts, contradictions) · hybrid_recall · bootstrap_project
(import-scan → (Implication (affected file:dep) (affected file:dependent))
edges + doc topics; writes committable .atomspace/seed.metta) ·
snapshot_export · snapshot_import.
Atom schema (LLM-learnable: 5 shapes, 6 prefixes)
Inheritance (taxonomy) · Implication (impact edges/invariants) ·
Similarity · Evaluation (conventions/decisions/preferences) · Not —
over namespaced terms file: module: dir: dep: decision: user:.
See skills/SKILL_BODY.md for the full discipline (assert budget, stv
reading, counter-examples).
Safety
Atoms are parsed to an AST, never string-eval'd (validate.py): closed
head whitelist, closed symbol charset, banned grounded-op tokens, depth/size
caps. Validated atoms hydrate into MeTTa as premise data inside
(|-nal ...)/(|~pln ...) calls — never as (= ...) equations. Inference
runs in a worker subprocess with a hard wall-clock timeout.
Benchmarks
Benchmark-gated development lives in
OmegaClaw-Bench under benchmarks/atomspace/
(gates pre-registered in benchmark-docs/atomspace.md):
T0 engine/store/MCP conformance → T1 retrieval quality → T2 multi-hop
decision-change (the primary program gate) → T3 end-to-end agent outcomes.
python -m pytest tests/ # unit + cross-backend conformance
Layout
src/atomspace_agent/ server, store, scopes, validate, runtime, inference,
revision, bridge, bootstrap, export, truth, conformance
src/atomspace_agent/metta/ vendored lib_nal / lib_pln + lib_compat shims
skills/ canonical SKILL_BODY.md + per-host packs
plugins/omegaclaw-bridge/ OmegaClaw plugin_registry bridge (4 tools)
tests/ unit tests + T0.1 golden conformance
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.