DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to connect Claude Code to your Obsidian vault over MCP with Compass

Point Claude Code at Local REST API so it can read, search, and patch notes.

Credentials. The Local REST API key grants access to the vault, so store it outside the vault and never commit .mcp.json or agent sessions.

Who it is forA developer or power user who already uses Claude Code and wants it to work directly on their Compass vault.

The problemCopying notes into an agent chat is slow and loses structure, and the agent cannot act on the vault without a safe connection.

The outcomeClaude Code connected to the vault's MCP server, with read-only tools pre-approved and the key kept outside the vault.

What you need first

  • Obsidian 1.13.1 or newer
  • The Compass zip from Releases, or a clone of the repository
  • A desktop computer for Agent Client and the Local REST API bridge (these are desktop-only)
  • For the agent use cases: a local agent such as Claude Code, Codex, or Gemini CLI

Steps

  1. Enable the Local REST API community plugin in the vault and note the per-install key it generates on first load.
  2. Confirm the MCP server is running at http://127.0.0.1:27123/mcp.
  3. Register the server with claude mcp add --scope user and the URL above, storing the key outside the vault. (inferred, check the README)
  4. Review .mcp.example.json and .claude/settings.json to see the read-only tool allowlist.
  5. Ask Claude Code to search the vault and read one note to confirm the connection works.

Prompt for your agent

Using the Obsidian MCP server at http://127.0.0.1:27123/mcp for the Compass vault at <vault path>, list the available tools and search for notes tagged example. Expected output: the tool names and a count of matching notes. Verify that no note was written or patched during the check.

Caveat. The README says the Local REST API bridge is desktop-only and the MCP server exposes 16 tools, so check which of them you allow before enabling write tools.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page