Turns Obsidian vaults into AI memory stores, enabling AI assistants to store and retrieve knowledge, perform full-text searches, execute Dataview queries, auto-link notes, track provenance, and manage multi-vault configurations with read/write access control.
Obsidian Palace MCP
An MCP server that turns your Obsidian vault into an AI memory palace.
What is this?
Obsidian Palace MCP enables AI assistants (Claude, ChatGPT, or any MCP-compatible client) to use your Obsidian vault as a persistent memory store. The AI can:
Store knowledge using intent-based storage (AI says WHAT, Palace decides WHERE)
Retrieve information using full-text search or structured queries
Auto-link notes by detecting mentions of existing note titles
Check before storing to prevent duplicates and expand existing knowledge
Query with Dataview using familiar DQL syntax
Follow standards defined in your vault
Track provenance - know where every piece of knowledge came from
v2.0 Features
Feature | Description |
🧠 Intent-Based Storage | AI expresses intent; Palace resolves location |
📚 Multi-Vault Support | Multiple vaults with read/write access control |
⚛️ Atomic Notes | Auto-splitting large content into hub + children |
📋 Standards System | AI follows user-defined binding standards |
🔗 Auto-Linking | Automatically creates |
📊 Dataview Queries | Query your vault using DQL syntax |
📍 Provenance | Track source, confidence, and verification status |
🤖 AI-Agnostic | Works with any MCP-compatible client |
⚡ Fast Search | SQLite FTS5 full-text search index |
👁️ Live Sync | Watches for external changes to your vault |
❓ Context Clarification | AI asks for missing context before storing |
Installation
Or use directly with npx:
Quick Start
1. Configure Claude Desktop / Claude Code
Add to your MCP client configuration:
Single Vault (Quick Setup):
Multi-Vault (Quick Setup):
Multi-Vault (Config File):
2. Create a Vault Config (Optional)
Create .palace.yaml in your vault root for custom structure mapping:
See Configuration Guide for full options.
Tools
Core Tools
Tool | Description |
| Store knowledge with intent-based resolution |
| Check for existing knowledge before storing |
| Read a specific note |
| Update existing notes intelligently |
| Search the vault for information |
Structure & Navigation
Tool | Description |
| List notes in a directory |
| Get vault directory tree |
| List configured vaults |
Graph Intelligence
Tool | Description |
| Get backlinks and outgoing links |
| Find notes with no connections |
| Find related notes |
| Scan vault and create wiki-links |
Queries
Tool | Description |
| Execute Dataview (DQL) queries |
| Property-based queries |
Standards & AI Support
Tool | Description |
| Load binding standards for AI |
| Validate notes against standards |
| Generate clarifying questions for incomplete context |
Sessions
Tool | Description |
| Start a research session |
| Log activity to current session |
Knowledge Organization
Knowledge Layers
Palace organizes knowledge into three layers:
Layer 1: Technical (never project-specific)
technologies/- Technology documentationcommands/- CLI commands and scriptsreference/- Quick references
Layer 2: Domain (reusable knowledge)
standards/- Standards and conventionspatterns/- Reusable patternsresearch/- Research findings
Layer 3: Contextual (project/client specific)
projects/- Project decisions and configsclients/- Client-specific knowledge
Intent-Based Storage
AI expresses WHAT to store; Palace determines WHERE:
Atomic Notes
Large content is automatically split into hub + atomic notes:
Max 200 lines per atomic note
Max 6 H2 sections per note
Hub notes (
_index.md) provide navigation
Note Format
Notes use YAML frontmatter for metadata:
Knowledge Types
Type | Layer | Purpose |
| 1 | Technology documentation |
| 1 | CLI commands and snippets |
| 1 | Quick reference material |
| 2 | Standards and conventions |
| 2 | Reusable patterns |
| 2 | Research findings |
| 3 | Project decisions |
| 3 | Project-specific configs |
| 1-2 | Problems and solutions |
| varies | General notes |
Example Usage
Storing Knowledge (v2.0 way)
Finding Information
Following Standards
Environment Variables
Variable | Required | Default | Description |
| Yes* | - | Vault config: |
| No |
| Global config file |
| No | First vault | Default vault alias |
| No |
| debug, info, warn, error |
| No |
| Watch for file changes |
*Required unless PALACE_CONFIG_PATH is set pointing to a config file.
Troubleshooting
Server won't start
"PALACE_VAULTS is required"
Ensure you've set
PALACE_VAULTSin your MCP client config or usePALACE_CONFIG_PATHFormat:
path:alias:mode(e.g.,/path/to/vault:main:rw)
"Cannot find module 'better-sqlite3'"
Run
npm rebuild better-sqlite3if you installed globallyThis native module may need recompilation for your Node version
Notes not appearing
Check vault path
Verify the path in
PALACE_VAULTSpoints to your actual Obsidian vaultThe path should contain
.obsidian/folder
Check ignore patterns
Files in
.obsidian/,templates/, or directories with.palace-ignoreare skippedNotes with
palace_ignore: truein frontmatter are also skipped
Search not finding notes
Rebuild the index
Delete
.palace/index.sqlitein your vault and restart the serverThe index will be rebuilt automatically on startup
Permission errors
Read-only vault
Check the mode in
PALACE_VAULTS- use:rwfor read-write,:rofor read-onlyVerify file system permissions on the vault directory
Documentation
API Reference - Complete tool documentation
Configuration Guide - All configuration options
AI Behavior Guide - Protocols for AI assistants
Changelog - Version history
Development
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'feat: add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
License
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0) - see LICENSE for details.
Commercial Use
If you need to use Obsidian Palace MCP in proprietary software or as part of a commercial SaaS without open-sourcing your modifications, commercial licenses are available. See LICENSE-COMMERCIAL.md for options.
Support the Project
If you find Obsidian Palace MCP useful, consider supporting its development:
GitHub Sponsors - Monthly sponsorship
Star the repo - Help others discover it
Report issues - Help improve quality
Credits
Built by Probably Computers
Inspired by the Luci project's Memory Palace concept.