Custom MCP server for Obsidian vault with PDF reading and media writing support
Strong foundation with complete schemas, good descriptions, and proper error handling. All 8 tools have Zod-validated input schemas with type constraints and descriptions. Tool descriptions average ~180 chars, meeting the 10-1024 char baseline. Naming follows verb_noun convention (vault_read_file, vault_write_file, etc.). However, descriptions lack dependency hints and recovery guidance for error cases. Output schemas are not documented. Some parameter descriptions could be more prescriptive about constraints (e.g., file path format, size limits). Risk annotations (READ_ONLY, WRITE, DESTRUCTIVE) are present but not formally integrated into schema.
Delete a file from the Obsidian vault. Only deletes individual files, not directories (for safety). Path should be relative to vault root. This action cannot be undone.
Get an overview of the Obsidian vault structure and statistics. Returns total file counts by extension, folder structure, total size, and recently modified files. Optionally scope to a subdirectory.
List files and directories in the Obsidian vault. Returns names, types (file/directory), and sizes. Excludes .obsidian and other hidden directories. Path is relative to vault root (empty string or "/" for vault root). Set recursive to true to list all files in subdirectories.
Read a text file from the Obsidian vault. Returns the text content of markdown, txt, json, yaml, csv, and other text-based files. Path should be relative to vault root (e.g. "Daily Notes/2026-02-25.md"). Use vault_read_pdf instead for PDF files.
Read a PDF file from the Obsidian vault and return it as base64-encoded data. Claude can natively process the returned PDF content. Path should be relative to vault root. Only works with .pdf files.
Output schemas not documented. Tool descriptions state what is returned (e.g., 'Returns file paths, line numbers, and surrounding context') but formal response schemas are absent. LLMs cannot plan downstream tool calls without knowing exact field names and types.
Error handling lacks recovery guidance. No tool description explains what to do if a file is not found, path is invalid, or permission is denied. Descriptions state 'This action cannot be undone' (vault_delete_file) but do not guide the LLM on confirmation or dry-run patterns.
Parameter descriptions lack prescriptive constraints. 'File path relative to vault root' does not specify: max length, forbidden characters, whether paths must exist, or whether parent directories are auto-created. Constraints are implemented but not documented for LLM reasoning.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 64 | 2026-07-28+ | v2 |
Search across vault notes by keyword. Searches the text content of .md files for matching text (case-insensitive). Returns file paths, line numbers, and surrounding context for each match. Optionally scope the search to a specific subdirectory.
Write or create a text file in the Obsidian vault. Creates the file if it doesn't exist, overwrites if it does. Parent directories are created automatically. Path should be relative to vault root (e.g. "Daily Notes/2026-02-25.md").
Write a binary file (image, audio, etc.) to the Obsidian vault from base64-encoded data. Decodes base64 data and writes as a binary file. Parent directories are created automatically. Use this for images generated by Image Generation, or any non-text file. Common usage: write a banner image to "Attachments/banner-2026-02-25.png" then reference it in a daily note as "![[Attachments/banner-2026-02-25.png]]". Args: - path: File path relative to vault root (e.g. "Attachments/banner.png") - data: Base64-encoded binary data (no data URI prefix... just the raw base64 string) - mimeType: MIME type like "image/png", "image/jpeg", "audio/mp3"
vault_list_files and vault_search lack pagination documentation. vault_search accepts maxResults (1-50, default 20) but vault_list_files has no limit parameter. Large vaults could return hundreds of files, exhausting context. No next_cursor or offset mechanism documented.
Risk annotations (READ_ONLY, WRITE, DESTRUCTIVE) are present in metadata but not formally declared as tool annotations in the MCP schema. Modern MCP supports readOnlyHint, destructiveHint, and idempotentHint, these should be integrated into tool definitions for proper agent safety classification.