Skip to main content

MCP server for Obsidian vault structural health checks. Find broken links, orphaned notes, missing frontmatter — and auto-repair them.

Project description

vault-health-mcp

MCP server for Obsidian vault structural health checks.

Find broken wikilinks, orphaned notes, and missing frontmatter — then auto-repair them. Works with any Obsidian vault, no plugins required.

Install

pip install vault-health-mcp

Usage

Claude Code

claude mcp add vault-health -- vault-health-mcp --vault ~/my-vault

Claude Desktop

{
  "mcpServers": {
    "vault-health": {
      "command": "uvx",
      "args": ["vault-health-mcp", "--vault", "/path/to/vault"]
    }
  }
}

MCP Tools

Tool Description
check_vault_health Full structural scan: broken links, orphans, missing frontmatter
repair_vault Auto-fix safe issues (add-only, never deletes)
vault_statistics File count, link count, orphan %, frontmatter coverage
find_orphans List all structurally disconnected leaf notes
find_broken_links List all wikilinks pointing to non-existent files

How auto-repair works

repair_vault only makes additive changes:

  • Broken [[links]] → replaced with plain text (the link text is preserved)
  • Missing frontmatter → adds a default YAML block with title and type

It never deletes files, removes content, or modifies existing frontmatter values.

Requirements

  • Python 3.10+
  • An Obsidian vault (any size)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vault_health_mcp-0.1.0.tar.gz (4.0 MB view details)

Uploaded Source

File details

Details for the file vault_health_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: vault_health_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vault_health_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 942a06e1fe092ae277a342e9fadeda05bedef8fbdb383e2456f340d96ffd68e4
MD5 3ecc09176bc639447747618c2b38e71b
BLAKE2b-256 6a36a84d90296c8ed73873744b7853ed6cea73b7b3e0686a709b71b55abad524

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page