OpenCrab MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install -e ".[dev]"
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "NEO4J_URI=${NEO4J_URI}" -e "CHROMA_DB_PATH=${CHROMA_DB_PATH}" -e "MONGO_URI=${MONGO_URI}" opencrab -- python "<FULL_PATH_TO_OPENCRAB>/dist/index.js"

Replace <FULL_PATH_TO_OPENCRAB>/dist/index.js with the actual folder you prepared in step 1.

Required:NEO4J_URICHROMA_DB_PATHMONGO_URI
README.md

MetaOntology OS MCP Server Plugin

OpenCrab

MetaOntology OS MCP Server Plugin

Carcinization is the evolutionary tendency for crustaceans to converge on a crab-like body plan. OpenCrab applies the same principle to agent environments: all sufficiently advanced AI systems eventually evolve toward ontology-structured forms.

OpenCrab is an MCP (Model Context Protocol) server that exposes the MetaOntology OS grammar to any OpenClaw-compatible agent environment — Claude Code, n8n, LangGraph, and beyond.


Architecture

                        ┌─────────────────────────────────────────────┐
                        │           OpenCrab MCP Server               │
                        │              (stdio JSON-RPC)               │
                        └──────────────────┬──────────────────────────┘
                                           │
              ┌────────────────────────────┼────────────────────────────┐
              │                           │                            │
      ┌───────▼──────┐           ┌────────▼───────┐          ┌────────▼───────┐
      │  grammar/    │           │   ontology/    │          │    stores/     │
      │  manifest.py │           │   builder.py   │          │                │
      │  validator.py│           │   rebac.py     │          │  neo4j_store   │
      │  glossary.py │           │   impact.py    │          │  chroma_store  │
      └──────────────┘           │   query.py     │          │  mongo_store   │
                                 └────────────────┘          │  sql_store     │
                                                             └───────┬────────┘
                                                                     │
                              ┌──────────────────────────────────────┤
                              │              Data Layer              │
              ┌───────────────┼───────────────┬──────────────────────┤
              │               │               │                      │
      ┌───────▼──────┐ ┌──────▼──────┐ ┌─────▼──────┐ ┌────────────▼───┐
      │    Neo4j     │ │  ChromaDB   │ │  MongoDB   │ │  PostgreSQL    │
      │  (graph)     │ │  (vectors)  │ │ (documents)│ │  (registry +   │
      │  Cypher      │ │  semantic   │ │  audit log │ │   ReBAC policy)│
      │  traversal   │ │  search     │ │            │ │                │
      └──────────────┘ └─────────────┘ └────────────┘ └────────────────┘

MetaOntology OS — 9 Spaces

Space Node Types Role
subject User, Team, Org, Agent Actors with identity and agency
resource Project, Document, File, Dataset, Tool, API Artifacts that subjects act upon
evidence TextUnit, LogEntry, Evidence Raw empirical observations
concept Entity, Concept, Topic, Class Abstract knowledge
claim Claim, Covariate Derived assertions
community Community, CommunityReport Concept clusters
outcome Outcome, KPI, Risk Measurable results
lever Lever Tunable control variables
policy Policy, Sensitivity, ApprovalRule Governance rules

MetaEdge Relationship Grammar

subject    ──[owns, manages, can_view, can_edit, can_execute, can_approve]──► resource
resource   ──[contains, derived_from, logged_as]──────────────────────────► evidence
evidence   ──[mentions, describes, exemplifies]────────────────────────────► concept
evidence   ──[supports, contradicts, timestamps]───────────────────────────► claim
concept    ──[related_to, subclass_of, part_of, influences, depends_on]────► concept
concept    ──[contributes_to, constrains, predicts, degrades]──────────────► outcome
lever      ──[raises, lowers, stabilizes, optimizes]───────────────────────► outcome
lever      ──[affects]─────────────────────────────────────────────────────► concept
community  ──[clusters, summarizes]────────────────────────────────────────► concept
policy     ──[protects, classifies, restricts]─────────────────────────────► resource
policy     ──[permits, denies, requires_approval]──────────────────────────► subject

Quick Start

1. Start the data services

docker-compose up -d

This starts Neo4j, MongoDB, PostgreSQL, and ChromaDB.

2. Install OpenCrab

pip install -e ".[dev]"

3. Configure environment

opencrab init          # creates .env from template
# Edit .env if your credentials differ from defaults

4. Seed example data

python scripts/seed_ontol

Tools (3)

query_ontologyPerform hybrid searches and traverse entity relationships within the MetaOntology OS.
manage_entityCreate, update, or delete entities and relationships within the ontological framework.
impact_analysisConduct impact analysis to determine how changes to levers or policies affect outcomes.

Environment Variables

NEO4J_URIrequiredConnection string for the Neo4j graph database
CHROMA_DB_PATHrequiredPath or connection string for ChromaDB vector storage
MONGO_URIrequiredConnection string for MongoDB document storage

Configuration

claude_desktop_config.json
{"mcpServers": {"opencrab": {"command": "python", "args": ["path/to/opencrab/main.py"]}}}

Try it

Find all entities related to the 'Project' resource type that have a high risk outcome.
Analyze the impact of changing the current 'Policy' on the 'Team' subject.
Search for evidence mentioning 'AI regulations' and map them to the relevant concepts.
List all resources owned by the 'Agent' subject and their current status.

Frequently Asked Questions

What are the key features of OpenCrab?

Hybrid search capabilities across graph, vector, and document databases. Structured knowledge management using a 9-space ontological framework. Relationship grammar enforcement for consistent data modeling. Impact analysis for evaluating policy and lever changes on outcomes. Support for ReBAC (Relationship-Based Access Control) policies.

What can I use OpenCrab for?

Managing complex entity relationships in large-scale AI agent environments. Performing governance and impact analysis on organizational policies. Synthesizing raw empirical observations into structured knowledge concepts. Tracking KPI and risk outcomes linked to specific project levers.

How do I install OpenCrab?

Install OpenCrab by running: pip install -e ".[dev]"

What MCP clients work with OpenCrab?

OpenCrab works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep OpenCrab docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare