Understand Obsidian Bases support in the MCP plugin
mainThe plugin implements support for Obsidian's Bases feature (available in Obsidian v1.9.0+), which allows AI agents to interact with database-like views of notes.
Key Capabilities:
- List bases: Retrieve all
.basefiles in the vault. - Read base: Parse YAML configuration from
.basefiles. - Create base: Generate new
.basefiles using the correct YAML format. - Query base: Execute queries against note data (note: filter evaluation is currently under development).
- Export: Export base data to CSV, JSON, or Markdown formats.
- View support: Define Table and Card views.
Important Technical Details:
- Format: Uses YAML for
.basefiles (not JSON). - Property Prefixes: Queries must use specific prefixes to distinguish property types:
note.*,file.*, andformula.*. - Syntax: Filter expressions use a JavaScript-like syntax rather than SQL.