MCP server for agent-safe Obsidian vault access with lint validation
Strong vault-focused design with clear, action-oriented naming (read_, create_, update_, delete_, move_, list_, lint_). All 7 tools have descriptive docstrings (average ~180 chars). Input schemas are present and typed for all tools. However, output schemas are not formally documented, and error handling lacks recovery guidance. The server demonstrates good safety practices (write vault isolation, soft deletes, wikilink rewriting) but falls short of production-grade error messages that guide LLM recovery.
Create a new note at source (vault/relative/path.md format). Refuses with a structured error if the target vault is not the configured write vault. Refuses to overwrite an existing file unless overwrite=True. Creates intermediate directories as needed. Validates markdown content with lint before writing.
Move a note to the .trash folder at the vault root rather than deleting it permanently. The directory structure within the vault is preserved under .trash so the file can be recovered if needed. Refuses with a structured error if the target vault is not the configured write vault.
Pre-validate markdown content without writing it to disk. Returns a structured result with valid, errors, and warnings fields. Never raises.
List note paths within a vault, optionally scoped to a subfolder. Returns paths in vault/relative/path.md format — the same format as the source field from search_notes — so results can be passed directly to read_note. Set recursive=False to list only the immediate folder (non-recursive).
Move a note from source to dest (both in vault/relative/path.md format). Both paths must be within the write vault. Fails if dest already exists — there is no overwrite option. If create_dirs=True, creates missing parent directories at the destination. After a successful move, rewrites wikilinks in all .md files that referenced the old filename so they point to the new filename.
Output schemas not formally documented. Tools return dicts with structured fields (e.g. {"ok": true, "source": source, "action": "created"}) but the response schema is not declared in tool definitions. LLMs cannot reason about what fields to expect without seeing the schema.
Error messages lack recovery guidance. Example: {'error': 'not_found', 'source': source} tells the LLM the file is missing but not what to do next (check the path? call list_notes? try a different vault?). Errors should include actionable next steps.
Parameter 'mode' in update_note uses a free-form string with validation at runtime, not an enum. The description says 'must be overwrite or append' but schema does not enforce it. Enums are self-documenting and prevent hallucinated values.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 11 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 51 | - | v1 |
Return the full markdown content of a note. source is in vault/relative/path.md format, as returned by search_notes. The full filesystem path is HOST_VAULT_PATH / source.
Update an existing note. mode must be 'overwrite' (replace entire content) or 'append' (add content to the end of the file). Refuses with a structured error if the target vault is not the configured write vault. Validates markdown content with lint before writing.
folder parameter in list_notes has default='' but no minLength/maxLength or pattern constraints. The description lacks guidance on valid format (e.g., can it contain '..' for traversal? what about absolute paths?). Path parameters should be validated.
create_note and update_note accept 'source' and 'content' but the description does not specify maximum content length or any size constraints. Agents could attempt to create arbitrarily large files, causing disk issues or timeouts.