Skip to main content
Glama

NOUZ — Semantic MCP Server for your knowledge base

Works with Obsidian, Logseq, and any directory of Markdown files.

Structure emerges from content.

Semantic tools for knowledge bases, project memory, and AI agents.

MIT License Python 3.10+ MCP PyPI

🇬🇧 English version


Why Nouz is needed

Folders show where a file is located. But they don't explain to an agent how documents, ideas, and materials within the base are connected.

NOUZ gives the agent semantic coordinates. Each note receives a domain sign, a level in the hierarchy, and links to other notes. The domain is assigned based on the file's content, or manually by you if you want a strict hierarchy.


Related MCP server: Semantic Mesh Memory (SEM) MCP Server

What it does

NOUZ acts as a layer between your note base and an AI agent. It helps turn scattered Markdown files into a graph that can be worked with via MCP:

  1. Automatic Classification (Semantics) You define "Cores" — the base domains of your database (e.g., Systems Analysis, Data & Science, Engineering). When you add a new note, NOUZ reads its text, compares vectors, and suggests a domain sign or a combination of domains.

  2. Finding connections between notes The server builds a directed acyclic graph (DAG) and suggests connections that can be verified before saving:

    • Semantic bridges: two notes from different domains point to the same idea.

    • Tag bridges: notes have common hidden concepts at the tag level.

  3. Tracking database evolution (Drift) NOUZ aggregates data from the bottom up. If a module started as one domain, but new notes gradually lead it to another, the server will show a discrepancy (core_drift).

Depending on your tasks, NOUZ works in three modes: from a simple graph (LUCA) to a strict 5-level hierarchy (SLOI).


How it works

  1. You describe domains in config.yaml — what area each domain covers and what text features to recognize it by.

  2. The server turns descriptions into reference vectors (locally, via LM Studio or Ollama).

  3. Each new note is projected onto these axes. The sign is determined by content, or by you.

  4. L4 receives a domain profile from text classification, and L3/L2 collect core_mix from child nodes. If a module's sign diverges from core_mix, the server reports a core_drift.

Two types of bridges find connections between notes from different domains: semantic (texts are close) and tag-based (concepts overlap).


Quick start

pip install nouz-mcp
OBSIDIAN_ROOT=/path/to/vault nouz-mcp

Without config.yaml, the server starts in LUCA mode — a graph without semantics, works immediately.

To enable semantic mode, create a local config from the template:

cp config.template.yaml config.yaml

In Windows PowerShell:

Copy-Item config.template.yaml config.yaml

Or from source:

git clone https://github.com/Semiotronika/NOUZ-MCP
cd NOUZ-MCP
pip install -r requirements.txt
cp config.template.yaml config.yaml
OBSIDIAN_ROOT=./vault python server.py

Connecting to Claude Desktop, Cursor, Opencode, or any MCP client:

{
  "mcpServers": {
    "nouz": {
      "command": "nouz-mcp",
      "env": {
        "OBSIDIAN_ROOT": "/path/to/vault",
        "NOUZ_CONFIG": "/absolute/path/to/config.yaml",
        "EMBED_API_URL": "http://127.0.0.1:1234/v1"
      }
    }
  }
}

MCP Tools

Tool

Purpose

suggest_metadata

Sign, level, bridges, drift warnings

write_file

Write a note with YAML markup

update_metadata

Update only YAML without changing the note text

read_file

Read a note + metadata

calibrate_cores

Update reference vectors for cores

recalc_signs

Recalculate signs for all notes

recalc_core_mix

Recalculate bottom-up aggregation

index_all

Reindex the entire database

embed

Get a vector for text

list_files

List with filters by level, sign

get_children

Traverse down the graph

get_parents

Traverse up the graph

suggest_parents

Find parents for an orphan

add_entity

Create an entity in one step (auto sign, tags, parents)

process_orphans

Auto-fill files without markup


Configuration

Minimal config.yaml:

mode: prizma

etalons:
  - sign: S
    name: Systems Analysis
    text: >
      Methodology for analysing complex objects: feedback loops,
      emergent properties, self-regulation, bifurcation points.
      Cybernetics, synergetics, dissipative structures, catastrophe
      theory, autopoiesis — tools for understanding how the whole
      exceeds the sum of its parts. Not data and not code — a way
      of thinking about how parts form a whole and why systems
      behave non-linearly.
  - sign: D
    name: Data & Science
    text: >
      Physics and cosmology: from subatomic particles to the large-scale
      structure of the Universe. Lagrangians, curvature tensors, scattering
      cross-sections, quarks, bosons, fermions, plasma, vacuum fluctuations,
      cosmic microwave background, cosmological constant, decoherence.
      Pure science about the nature of matter, energy and spacetime.
  - sign: E
    name: Engineering
    text: >
      Software engineering, machine learning and infrastructure: writing
      and debugging code, deployment, containerisation, neural networks,
      inference, tokenisation, data serialisation, microservices, CI/CD,
      automated testing, refactoring, Git, Docker, Kubernetes, APIs.
      The practical discipline of building computational systems from
      architecture to production.

thresholds:
  sign_spread: 0.05
  confident_spread: 60.0
  pattern_second_sign_threshold: 30.0
  semantic_bridge_threshold: 0.55
  parent_link_threshold: 0.55

artifact_signs:
  - sign: n
    name: Note
    text: Short note, observation, fragment.
  - sign: c
    name: Concept
    text: Definition, concept, entity description.
  - sign: r
    name: Reference
    text: External source, documentation, link, citation.
  - sign: l
    name: Log
    text: Session log, chronology, dialogue record.
  - sign: u
    name: Update
    text: Update, release note, changelog entry.
  - sign: h
    name: Hypothesis
    text: Hypothesis, assumption, speculative idea.
  - sign: s
    name: Specification
    text: Technical specification, instruction, requirements.

After configuration, run calibrate_cores — the server will create reference vectors. Check pairwise cosines: mean-centered between different domains should be significantly lower than raw. If all pairs are roughly the same, strengthen the differences in the texts.

etalons are semantic domains compared via embeddings. artifact_signs are material types for L5 artifacts: note, concept, link, log, update, hypothesis, or specification. This is a heuristic label, not a separate reference for embeddings. In the public schema, domains are usually denoted by uppercase letters (S/D/E), and material types by lowercase (n/c/r/l/u/h/s); these can be changed in the config if signs are short and do not conflict with domains. If necessary, you can add keywords for any type: then the server will use your words for heuristics instead of the built-in RU/EN set.

Real calculation example

Here are the actual results for S/D/E etalons with the text-embedding-granite-embedding-278m-multilingual model:

=== Pairwise Cosine (raw) ===
S↔D: 0.5894    S↔E: 0.5862    D↔E: 0.6022

=== Pairwise Cosine (mean-centered) ===
S↔D: -0.5059   S↔E: -0.5117   D↔E: -0.4822

Negative mean-centered values here are a good result: after subtracting the mean vector, the domains diverge well. Self-classification: S→99.4%, D→97.5%, E→96.9%.

Variable

Default

Description

OBSIDIAN_ROOT

./obsidian

Path to the vault

NOUZ_CONFIG

(empty)

Absolute path to config.yaml; if not set, the server looks for the config in the current directory

NOUZ_DATABASE_NAME

obsidian_kb.db

Name of the SQLite cache file inside OBSIDIAN_ROOT; convenient for isolated checks, e.g., obsidian_kb.public.db

NOUZ_DATABASE_PATH

(empty)

Full path to the SQLite cache; takes priority over NOUZ_DATABASE_NAME

EMBED_PROVIDER

openai

openai, lmstudio, ollama

EMBED_API_URL

http://127.0.0.1:1234/v1

Endpoint for embeddings

EMBED_API_KEY

(empty)

API key, if needed

EMBED_MODEL

(empty)

Model name


Privacy

Component

Local?

Embeddings (LM Studio / Ollama)

✅ Yes

Your notes

✅ Yes

NOUZ Server

✅ Yes

AI agent context (Claude, ChatGPT)

❌ Goes to the cloud

Everything critical stays on your machine.


Development

git clone https://github.com/Semiotronika/NOUZ-MCP
cd NOUZ-MCP
pip install -e .
python test_server.py

MIT License © 2026 Semiotronika

Cosines are calculated. Syntax changes. Semantics remain.

Available Tools

8 tools
get_childrenGet ChildrenA
Read-onlyIdempotent

Traverse the hierarchy downward from one note. Returns all direct and transitive child note paths from the local graph index. Use this to answer 'what does this topic/module contain?' It is read-only and does not recompute semantic classification. Use get_parents for the opposite direction.

Inputs: path (required).

get_parentsGet ParentsA
Read-onlyIdempotent

Return the parent links of one note from the graph index. Each result includes the parent entity name and link_type, such as hierarchy, derived_from, semantic, temporary, tag, analogy, or error. Use this to understand where a note belongs before editing links. It is read-only. Use suggest_parents when a note has no parents and you want candidate links.

Inputs: path (required).

index_allIndex AllA
Idempotent

Scan the whole Markdown vault and rebuild the local SQLite index of files, metadata, and graph links. Use this after adding, moving, or reorganizing notes outside NOUZ. It is safe to run repeatedly and reports missing parent links. In PRIZMA/SLOI, with_embeddings=true also updates file and chunk embeddings for retrieval and semantic classification, which is slower and requires an embedding provider. This tool indexes data; it is not a search tool.

Inputs: with_embeddings.

list_filesList FilesA
Read-onlyIdempotent

List notes already known to the local index. Returns lightweight records with path, type, level, and sign, without loading full note bodies. Use this for inventory, filtering, and finding files to inspect next. Set no_metadata=true to find Markdown files without YAML metadata. Use get_children or get_parents when you need graph traversal from a specific note.

Inputs: sign, level, subfolder, no_metadata.

read_fileRead FileA
Idempotent

Read one Markdown note from the local knowledge base. Returns the note body, YAML frontmatter, hierarchy metadata, parent links, explicit tags, and warnings as JSON. Use this before write_file when you need to preserve existing content or inspect current metadata. Side effect: refreshes this file in the local SQLite index so later classification and parent suggestions use current data. It never changes the file.

Inputs: path (required).

suggest_metadataSuggest MetadataA
Idempotent

Analyze one note and propose knowledge-graph metadata for review. Returns suggested domain sign, material type, hierarchy level, explicit tags, tag quality, tag candidates with chunk evidence, bridge candidates, and hierarchy warnings. Use this before write_file when you want classification help, or to audit an existing note. It is read-only and never edits YAML. Semantic fields require embeddings and are available in PRIZMA/SLOI modes. The optional context object lets an agent test metadata overrides without changing the note.

Inputs: path (required), context.

update_metadataUpdate MetadataA
Destructive

Update only YAML frontmatter for an existing note and preserve the Markdown body exactly. Use this for safe changes to type, level, sign, artifact_sign, tags, parents, and parents_meta when the note content must not be touched.

Inputs: path (required), metadata (required).

write_fileWrite FileA
Destructive

Create or replace one Markdown note with YAML metadata. Use it when an agent has an explicit final content body and metadata to save. This is a destructive write: it replaces the complete file, unless content_lock=true is used to preserve the existing body and update only metadata. Before writing, the server validates that parent links do not create graph cycles, syncs parents and parents_meta, and then refreshes the local index. Use read_file first for existing notes and suggest_metadata first when you want classification hints.

Inputs: path (required), content (required), metadata, content_lock.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have clear, distinct responsibilities: write_file is for creating/replacing notes, update_metadata is for frontmatter-only edits, and suggest_metadata provides classification advice. The only mild overlap is that write_file with content_lock=true can also update metadata-only, but the descriptions are explicit enough to guide correct selection.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (index_all, read_file, write_file, update_metadata, list_files, get_children, get_parents, suggest_metadata). There is no mixing of conventions or unexpected naming styles.

    Tool Count5/5

    Eight tools is a well-scoped set for a Markdown vault knowledge-base server. Each tool covers a distinct operation without redundancy, and the count is neither too sparse nor overwhelming.

    Completeness3/5

    The core content lifecycle (read, create/replace, update metadata, index, list, traverse) is covered, but obvious operations are missing: there is no delete/remove toolchers, no search/query tool despite embeddings being mentioned, and no explicit move/rename workflow. These are notable gaps but not fatal for basic note management.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers