Skip to main content
Glama

MarkScribe

Model Context Protocol을 위한 컨벤션 인식 마크다운 MCP 서버입니다. MarkScribe를 사용하면 AI 에이전트가 마크다운 파일을 읽고, 쓰고, 검색하고, 검증할 수 있으며, 사용자가 정의한 YAML 스키마를 통해 컨벤션을 강제할 수 있습니다. Obsidian 볼트, Foam 워크스페이스, 디지털 가든, 문서 저장소 등 모든 마크다운 디렉토리에서 작동합니다.

주요 기능

  • 원자적 파일 작업을 통한 노트 읽기, 쓰기, 이동 및 삭제

  • 콘텐츠 및 프런트매터 전반에 걸친 전체 텍스트 검색 (BM25 랭킹)

  • 위키링크 인식: 백링크, 깨진 링크 탐지, 고아 노트 찾기, 연결되지 않은 언급 발견

  • YAML 프런트매터 파싱, 유효성 검사 및 일괄 업데이트

  • 태그 관리 (프런트매터 및 인라인)

  • 스키마를 통한 컨벤션 강제 — 노트 스키마는 프런트매터/콘텐츠를 검증하고, 폴더 스키마는 구조적 규칙을 강제함

  • 컨벤션 캐스케이드: _conventions.md 파일을 통해 디렉토리 하위 트리에 스키마 적용 범위 설정

  • 경로 보안: .obsidian/, .git/, node_modules/는 항상 차단됨

Related MCP server: LifeOS MCP Server

설치

npm install -g markscribe

사용법

MCP 서버로 사용하기

{
  "mcpServers": {
    "markscribe": {
      "command": "markscribe",
      "args": ["--root", "/path/to/your/notes"]
    }
  }
}

CLI 플래그

플래그

기본값

설명

--root <path>

현재 작업 디렉토리

서비스할 루트 디렉토리

--schemas-dir <path>

~/.markscribe/schemas/

스키마 YAML 파일을 로드할 디렉토리

--log-level <level>

info

로그 레벨 (debug, info, warn, error, fatal)

디렉토리별 설정

루트 디렉토리에 .markscribe/config.yaml을 배치하세요:

paths:
  blocked:
    - private/
    - drafts/
  allowed_extensions:
    - .md
    - .markdown
    - .txt
search:
  max_results: 50
  excerpt_chars: 40

스키마

스키마는 노트와 폴더에 대한 컨벤션을 정의합니다. 스키마 디렉토리(기본값 ~/.markscribe/schemas/)에 배치하세요.

노트 스키마 — 프런트매터 필드 및 콘텐츠 규칙 검증:

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: "\\[\\[.+?\\]\\]"

폴더 스키마 — 디렉토리에 대한 구조적 규칙 강제:

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: true

노트는 프런트매터의 note_schema: <name>을 통해 스키마를 선택하거나, 컨벤션 캐스케이드(_conventions.md 파일)를 통해 자동으로 선택합니다.

도구

도구

설명

list_directory

파일 및 하위 디렉토리 나열

get_stats

노트 수, 총 크기, 최근 파일

switch_directory

활성 루트 디렉토리 변경

read_note

파싱된 프런트매터와 함께 노트 읽기

write_note

노트 생성 또는 업데이트

patch_note

노트 내 문자열 교체

delete_note

노트 삭제 (확인 필요)

move_note

선택적 링크 업데이트와 함께 이동/이름 변경

read_multiple_notes

최대 10개의 노트를 일괄 읽기

create_note

컨벤션 인식 노트 생성

get_frontmatter

YAML 프런트매터만 읽기

update_frontmatter

프런트매터 필드 병합 또는 교체

manage_tags

태그 추가, 제거 또는 나열

search_notes

전체 텍스트 BM25 검색

lint_note

스키마에 따라 노트 검증

validate_folder

폴더 분류 및 검증

validate_area

재귀적 하위 트리 검증

validate_all

전체 디렉토리 트리 검증

list_schemas

로드된 모든 스키마 나열

get_backlinks

노트를 참조하는 노트 찾기

find_broken_links

존재하지 않는 노트에 대한 위키링크 찾기

find_orphans

들어오는 링크가 없는 노트 찾기

find_unlinked_mentions

위키링크로 변환해야 할 일반 텍스트 언급 찾기

호환 뷰어

MarkScribe는 마크다운 파일을 읽는 모든 도구와 호환됩니다:

  • Obsidian — 그래프 뷰와 커뮤니티 플러그인을 지원하는 PKM 앱

  • Foam — 연결된 노트를 위한 VS Code 확장 프로그램

  • Logseq — 양방향 링크를 지원하는 아웃라이너

  • 모든 텍스트 편집기 또는 정적 사이트 생성기

감사의 말

Claude Code로 제작되었습니다.

라이선스

MIT

Available Tools

24 tools
create_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_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_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

    A4.1/5.0

    Scored across 24 tools

    Disambiguation5/5

    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).

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      An MCP server for managing LifeOS Obsidian vaults, enabling AI assistants to create, read, and search notes with YAML compliance and organizational standards.
      1
      GPL 3.0
    • A
      license
      A
      quality
      C
      maintenance
      A 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.
      6
      1
      CeCILL-B Free Software Agreement