# How to Connect Obsidian Vault to Claude Desktop, Cursor & AI Agents via MCP (2026)

> Model Context Protocol (MCP) lets Claude Desktop, Cursor, and autonomous coding agents read your private Obsidian notes directly without manual copy-paste. ScrapLibra hosts a ready-to-use JSON-RPC 2.0 and SSE MCP gateway backed by your 20-folder vault and TOON compression (-36.7% to -45% tokens). Connect in under two minutes using a revocable HMAC-SHA256 bearer token.

- **Canonical URL:** https://scraplibra.com/guides/connect-obsidian-to-claude-cursor-mcp/
- **Updated:** 2026-11-25
- **Brand SSOT:** ScrapLibra (Official Telegram Bot: Telelibra @telelibra_ai_bot)

## Key Verified Facts
- No local Python server maintenance or tunnel configuration is required to query your vault remotely.
- Exposes 9 MCP tools including search_vault, read_note, list_categories, and get_notebooklm_compendium.
- TOON serialization trims 36.72% to 45% of context tokens compared to standard JSON responses.
- Included in Pro Second Brain ($4.99/mo or $47.88/yr); revoke or rotate API keys in one click.

## Should you run a local Obsidian MCP plugin or a hosted cloud MCP gateway?

Local Obsidian MCP servers work only while your laptop and Obsidian desktop app stay online. A hosted cloud MCP gateway gives Claude, Cursor, and remote agents 24/7 read access to pre-cleaned atomic notes with TOON token compression.

Local filesystem MCP plugins often return raw, bloated Markdown dumps with broken formatting that burn context windows quickly.

ScrapLibra indexes pre-triaged notes across 20 flat folders, letting your AI agent filter by category before loading full note text.

### Local Obsidian MCP Plugin vs ScrapLibra Hosted MCP Gateway (2026)

| Capability | Local Filesystem MCP | ScrapLibra Hosted MCP |
| --- | --- | --- |
| Setup effort | Node/Python runtime + local path config | Paste JSON endpoint + bearer token (2 min) |
| 24/7 cloud agent access | Requires laptop awake | Always-on HTTPS JSON-RPC 2.0 & SSE |
| Token payload format | Verbose JSON / raw full files | TOON format (-36.7% to -45% tokens) |
| Pre-cleaned bookmarks & YouTube | Manual clipping required | Automated via @telelibra_ai_bot & Web |

## How do you connect ScrapLibra MCP to Claude Desktop or Cursor in four steps?

Generate an HMAC-SHA256 bearer token in your ScrapLibra Dashboard. Add the MCP server block to Claude Desktop or Cursor, restart the client, and test search_vault.

All credentials are scoped strictly to your isolated tenant SQLite ledger and can be revoked instantly.

1. Open ScrapLibra Dashboard and generate a personal MCP bearer token.
2. Open claude_desktop_config.json or Cursor MCP settings on your machine.
3. Add the ScrapLibra MCP endpoint URL with your Authorization bearer header.
4. Restart Claude or Cursor and run a test query against your vault.

## FAQ

### Which AI clients work with the ScrapLibra MCP gateway?

Claude Desktop, Cursor, Windsurf, Google Antigravity, and any custom agent supporting standard Model Context Protocol JSON-RPC 2.0 or SSE.

### Can an AI agent modify or delete my original Obsidian notes over MCP?

By default, ScrapLibra MCP prioritizes safe read-and-retrieve tools plus explicit note ingestion without destructive vault deletion.

### Why does TOON format matter when querying an Obsidian Vault from Claude?

TOON removes repeated JSON keys and braces, reducing token usage by 36.72% on 100-note payloads and up to 45% on nested metadata.
