MarkScribe
MarkScribe
Konventionsbewusster Markdown-MCP-Server für das Model Context Protocol. MarkScribe ermöglicht es KI-Agenten, Markdown-Dateien zu lesen, zu schreiben, zu durchsuchen und zu validieren – und setzt dabei Konventionen durch benutzerdefinierte YAML-Schemas durch. Funktioniert mit jedem Markdown-Verzeichnis: Obsidian-Vaults, Foam-Workspaces, Digital Gardens, Dokumentations-Repos.
Funktionen
Notizen lesen, schreiben, verschieben und löschen mit atomaren Dateioperationen
Volltextsuche (BM25-Ranking) über Inhalte und Frontmatter hinweg
Wikilink-bewusst: Backlinks, Erkennung defekter Links, Auffinden von Waisen, Entdeckung nicht verlinkter Erwähnungen
YAML-Frontmatter-Parsing, Validierung und Massenaktualisierungen
Tag-Verwaltung (Frontmatter und Inline)
Konventionsdurchsetzung mittels Schemas – Notiz-Schemas validieren Frontmatter/Inhalt, Ordner-Schemas erzwingen strukturelle Regeln
Konventionskaskade:
_conventions.md-Dateien weisen Schemas Verzeichnis-Unterbäumen zuPfadsicherheit:
.obsidian/,.git/,node_modules/sind immer blockiert
Related MCP server: LifeOS MCP Server
Installation
npm install -g markscribeVerwendung
Als MCP-Server
{
"mcpServers": {
"markscribe": {
"command": "markscribe",
"args": ["--root", "/path/to/your/notes"]
}
}
}CLI-Flags
Flag | Standard | Beschreibung |
| Aktuelles Arbeitsverzeichnis | Zu bedienendes Stammverzeichnis |
|
| Verzeichnis zum Laden von Schema-YAML-Dateien |
|
| Log-Level ( |
Verzeichnisspezifische Konfiguration
Platzieren Sie eine .markscribe/config.yaml in Ihrem Stammverzeichnis:
paths:
blocked:
- private/
- drafts/
allowed_extensions:
- .md
- .markdown
- .txt
search:
max_results: 50
excerpt_chars: 40Schemas
Schemas definieren Konventionen für Ihre Notizen und Ordner. Platzieren Sie diese in Ihrem Schema-Verzeichnis (standardmäßig ~/.markscribe/schemas/).
Notiz-Schema – validiert Frontmatter-Felder und Inhaltsregeln:
name: blog-post
description: Blog post with required metadata
type: note
frontmatter:
fields:
title:
type: string
required: true
tags:
type: list
required: true
content:
rules:
- name: has-outgoing-link
check: hasPattern
pattern: "\\[\\[.+?\\]\\]"Ordner-Schema – erzwingt strukturelle Regeln für Verzeichnisse:
name: project-folder
description: Project folder with hub note
type: folder
noteSchemas:
default: blog-post
hub: project-hub
classification:
supplemental: [assets, templates]
skip: [archive]
hub:
detection:
- pattern: "_{{folderName}}"
required: trueNotizen wählen Schemas über note_schema: <name> im Frontmatter aus oder automatisch über die Konventionskaskade (_conventions.md-Dateien).
Tools
Tool | Beschreibung |
| Dateien und Unterverzeichnisse auflisten |
| Notizanzahl, Gesamtgröße, kürzliche Dateien |
| Aktives Stammverzeichnis wechseln |
| Notiz mit geparstem Frontmatter lesen |
| Notiz erstellen oder aktualisieren |
| Zeichenfolgenersetzung innerhalb einer Notiz |
| Notiz löschen (mit Bestätigung) |
| Verschieben/Umbenennen mit optionalen Link-Aktualisierungen |
| Bis zu 10 Notizen stapelweise lesen |
| Konventionsbewusste Notizerstellung |
| Nur YAML-Frontmatter lesen |
| Frontmatter-Felder zusammenführen oder ersetzen |
| Tags hinzufügen, entfernen oder auflisten |
| Volltext-BM25-Suche |
| Notiz gegen ihr Schema validieren |
| Ordner klassifizieren und validieren |
| Rekursive Teilbaum-Validierung |
| Vollständige Verzeichnisbaum-Validierung |
| Alle geladenen Schemas auflisten |
| Notizen finden, die auf eine Notiz verlinken |
| Wikilinks zu nicht existierenden Notizen finden |
| Notizen ohne eingehende Links finden |
| Klartext-Erwähnungen finden, die Wikilinks sein sollten |
Kompatible Viewer
MarkScribe funktioniert mit jedem Tool, das Markdown-Dateien liest:
Obsidian – PKM-App mit Graph-Ansicht und Community-Plugins
Foam – VS Code-Erweiterung für verlinkte Notizen
Logseq – Outliner mit bidirektionalen Links
Jeder Texteditor oder Static Site Generator
Danksagungen
Erstellt mit Claude Code.
Lizenz
MIT
Available Tools
24 toolscreate_noteA
Creates a new note with convention-aware defaults. Pass { path, content } and optionally frontmatter (overrides), noteSchema (explicit schema name). Resolves the applicable schema, applies its frontmatter template, merges overrides, writes the note, and lints it. Returns { root, path, frontmatter, lintResult }. Fails if the note already exists.
delete_noteA
Deletes a note. Pass { path, confirmPath } where both must match exactly. Returns { root, path, success }. This is irreversible.
find_bidirectional_mentionsA
Two-direction mention sweep for batch new-note operations. Pass { newNotes, terms?, scope? }. Returns { root, scope, existing_to_new[], new_to_existing[] }. existing_to_new lists plain-text mentions of new-note titles found inside existing notes. new_to_existing lists plain-text mentions of free terms found inside the new notes. If a free term equals a new-note stem, the title classification wins.
find_broken_linksA
Finds wikilinks pointing to non-existent notes. Optional { scope } path prefix. Returns { root, scope, brokenLinks[] } with sourcePath, link, line.
find_orphansA
Finds notes with no incoming wikilinks. Optional { scope } path prefix. Returns { root, scope, orphans[] } (array of relative paths).
find_unlinked_mentionsA
Finds plain-text occurrences of a note's title that are not wikilinked. Pass { path }. Returns { root, path, mentions[] } with sourcePath, mentionText, line, column.
get_backlinksA
Finds all notes linking to a given note. Pass { path }. Returns { root, path, backlinks[] } where each backlink has sourcePath, link, line.
get_frontmatterA
Returns { root, path, frontmatter } for a note. Reads only the YAML frontmatter block, not the body.
get_statsA
Returns { root, noteCount, totalBytes, recentFiles[] }. No arguments needed. Use this to verify connectivity and get an overview of the active directory.
lint_noteB
Validates a note against its resolved schema. Pass { path }. Returns { root, path, pass, schema, checks[] }. Each check has name, pass, detail. Returns schema: null if no schema matches.
list_directoryA
Returns { root, path, entries[] }. Each entry has name, type (file|directory), and relative path. Omit path or pass "" to list the root. Blocked paths (.obsidian, .git, node_modules) are excluded automatically.
list_schemasA
Lists all loaded schemas. No arguments. Returns { root, schemas[] } where each schema has name, description, type (note|folder), and type-specific details.
manage_tagsA
Add, remove, or list tags on a note. Pass { path, operation, tags? } where operation is add|remove|list. Handles both YAML tags arrays and inline #tags. Returns { root, path, tags, added?, removed? }.
move_noteA
Moves or renames a note. Pass { oldPath, newPath }. Optional: overwrite (boolean), updateLinks (boolean, propagates [[wikilink]] renames). Returns { root, oldPath, newPath } and optionally linksUpdated.
patch_noteA
Replaces a string within a note. Pass { path, oldString, newString } and optionally replaceAll (boolean). Returns { root, path, replacements }. Read the note first to confirm the exact string.
read_multiple_notesA
Batch-reads up to 10 notes. Pass { paths: string[] }. Returns { root, results[] } where each result has path, note (or null), and optional error.
read_noteA
Returns { root, path, frontmatter, content }. Pass a relative path. Use list_directory first if unsure of the path.
search_notesA
Full-text BM25 search. Pass { query } and optionally scope (path prefix), searchContent (default true), searchFrontmatter (default false), limit. Returns { root, results[] } sorted by relevance, each with path, score, excerpt.
switch_directoryA
Accepts { path } (absolute path). Rebuilds all services for the new root directory. Returns { root, switched: true } on success. Call get_stats after switching to verify.
update_frontmatterA
Sets and/or removes frontmatter keys. Pass { path, fields?, remove?, merge? }. fields sets key-value pairs (null is a real value, pass-through to schema validation). remove is a list of keys to delete. merge (default true) merges with existing frontmatter; false replaces all fields. Returns { root, path, frontmatter }.
validate_allA
Validates the entire directory tree using the convention cascade. Optional verbose (default false) — when false, the response includes only folders/notes with actionable results. Returns { root, summaryText, pass, conventionSources, folders, summary }. Discovers _conventions.md notes and resolves folder schemas.
validate_areaA
Recursively validates a subtree. Pass { path }. Returns { root, summaryText, path, pass, folders, summary }. Use for checking a section of the directory.
validate_folderA
Classifies and validates a folder. Pass { path }. Returns { root, summary, path, pass, folderType, schema, notes, structural }. Folder types: packet, superfolder, supplemental, unclassified.
write_noteA
Writes content to a note. Pass { path, content } and optionally frontmatter (object) and mode (overwrite|append|prepend, default overwrite). Returns { root, path, message }. Creates parent directories automatically.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Each tool has a clearly distinct purpose with detailed descriptions that eliminate ambiguity. For example, create_note and write_note both write notes but are differentiated by creation-only vs. overwrite/append/prepend modes. Similarly, the validation tools operate at different scopes (note, folder, area, all).
All tool names follow a consistent verb_noun pattern in snake_case (e.g., create_note, find_orphans, validate_all). No mixing of conventions like camelCase, and the pattern is predictable across all tools.
With 24 tools, the set covers a comprehensive range of operations for a note-taking system without feeling excessive. Each tool has a clear role, from basic CRUD to advanced link analysis and validation, justifying the count.
The tool surface covers the full lifecycle of note management: creation, reading, updating, deletion, moving, patching, frontmatter manipulation, linting, validation, search, tag management, link analysis, and directory navigation. No obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Related MCP Servers
- AlicenseAqualityCmaintenanceA token-efficient, schema-aware MCP server that enables AI assistants to safely read, modify, query, and validate JSON, YAML, and TOML files with automatic schema detection and format conversion capabilities.841 PyPI10MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server for managing LifeOS Obsidian vaults, enabling AI assistants to create, read, and search notes with YAML compliance and organizational standards.1GPL 3.0
- AlicenseBqualityDmaintenancePython MCP server for programmatic access to markdown-based knowledge vaults, enabling AI assistants to browse, read, search, update, and manage notes, tasks, and projects.481MIT
- AlicenseAqualityCmaintenanceA filesystem-based MCP server for Obsidian vaults that enables LLMs to browse, search, read, write, and edit Markdown notes directly on disk without requiring Obsidian to be running.61CeCILL-B Free Software Agreement