NOUZ MCP Server
NOUZ MCP Server turns a local Markdown vault (Obsidian/Logseq) into a semantic knowledge graph that an AI agent can read, classify, navigate, and edit.
Read notes (
read_file): get body, YAML frontmatter, hierarchy metadata, parent links, tags, and warnings as JSON, while refreshing the file in the local SQLite index.Write/replace notes (
write_file): save content plus YAML metadata, validating parent links against graph cycles and syncing parents;content_lock=truepreserves the existing body and updates only metadata.Update metadata safely (
update_metadata): change type, level, sign, artifact_sign, tags, or parents while leaving the Markdown body untouched.Inventory the vault (
list_files): list indexed notes with path, type, level, and sign; filter by sign, level, subfolder, or find files missing YAML metadata (no_metadata).Navigate the graph:
get_childrenwalks downward ("what does this topic contain?"),get_parentsreturns parent entities with link types (hierarchy, derived_from, semantic, analogy, temporary, tag, error).Get classification help (
suggest_metadata): suggested domain sign, material type, hierarchy level, tags, tag quality, tag candidates with chunk evidence, semantic bridge candidates, and hierarchy/drift warnings — with optionalcontextoverrides for what-if analysis.Reindex the vault (
index_all): rescan and rebuild the SQLite index of files, metadata, and graph links after external changes, optionally computing file and chunk embeddings (PRIZMA/SLOI modes) for retrieval and semantic classification.Semantic classification: compare note vectors against configured "core" etalons to assign domain signs and detect
core_driftbetween declared and empirical domains.Find semantic bridges: surface connections between notes from different domains whose texts are close in meaning, verified against chunk pairs when available.
Run locally: embeddings via LM Studio/Ollama keep notes and the server on your machine; operates in LUCA (plain graph, no config needed), PRIZMA, or SLOI modes.
Manages notes in an Obsidian vault, providing tools to read, write, and navigate markdown files with YAML frontmatter, including bidirectional link tracking (parents/children), semantic indexing, and hierarchical organization across five knowledge levels.
Integrates with Ollama for local embedding generation, enabling semantic search, similarity matching, and automated metadata suggestions using locally-hosted language models.
Integrates with OpenAI's API for cloud-based embedding generation, supporting semantic analysis, core sign calibration, and vector similarity operations for knowledge graph navigation.
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.
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:
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.
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.
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
You describe domains in
config.yaml— what area each domain covers and what text features to recognize it by.The server turns descriptions into reference vectors (locally, via LM Studio or Ollama).
Each new note is projected onto these axes. The sign is determined by content, or by you.
L4 receives a domain profile from text classification, and L3/L2 collect
core_mixfrom child nodes. If a module'ssigndiverges fromcore_mix, the server reports acore_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-mcpWithout 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.yamlIn Windows PowerShell:
Copy-Item config.template.yaml config.yamlOr 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.pyConnecting 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 |
| Sign, level, bridges, drift warnings |
| Write a note with YAML markup |
| Update only YAML without changing the note text |
| Read a note + metadata |
| Update reference vectors for cores |
| Recalculate signs for all notes |
| Recalculate bottom-up aggregation |
| Reindex the entire database |
| Get a vector for text |
| List with filters by level, sign |
| Traverse down the graph |
| Traverse up the graph |
| Find parents for an orphan |
| Create an entity in one step (auto sign, tags, parents) |
| 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.4822Negative 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 |
|
| Path to the vault |
| (empty) | Absolute path to |
|
| Name of the SQLite cache file inside |
| (empty) | Full path to the SQLite cache; takes priority over |
|
|
|
|
| Endpoint for embeddings |
| (empty) | API key, if needed |
| (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.pyLinks
MIT License © 2026 Semiotronika
Cosines are calculated. Syntax changes. Semantics remain.
Available Tools
8 toolsget_childrenGet ChildrenARead-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 ParentsARead-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 AllAIdempotent
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 FilesARead-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 FileAIdempotent
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 MetadataAIdempotent
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 MetadataADestructive
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 FileADestructive
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
Scored across 8 tools
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.
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.
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.
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
Related MCP Connectors
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
KnowMan MCP server: search, ask, save and read your Knowledge Base from any MCP client.
Personal knowledge graph as an AI memory layer over MCP - read, save, and link your memories.
Related MCP Servers
- AlicenseBqualityFmaintenanceA server that consolidates 21+ Obsidian tools into 5 intelligent operations (vault, edit, view, workflow, system) with contextual workflow hints to help AI agents effectively interact with Obsidian.536MIT
- AlicenseNot gradedqualityDmaintenanceProvides a coherent memory layer for LLM agents that models beliefs as nodes in a constraint network to detect and surface semantic contradictions. It uses local embeddings and a hybrid geometric-logical energy model to identify conflicting information that requires review.MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that enables full-text search and link navigation over Markdown files as a knowledge graph.-
- AlicenseNot gradedqualityDmaintenanceMCP server for a personal knowledge base that captures and structures idea fragments, enabling MCP-capable agents to search, retrieve, and add notes with semantic links and clustering.3MIT