claude-vault-sync
Mirrors conversations, Claude Code sessions, and memory into an Obsidian Markdown vault, creating dated conversation notes, memory notes, and an incremental conversation index.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-vault-sync sync my claude.ai conversations to my Obsidian vault"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
claude-vault-sync
Espelha no seu vault Markdown (Obsidian) as conversas do claude.ai, as sessões e a memória do Claude Code e a memória/controles do claude.ai. Inclui um servidor MCP (stdio) e uma CLI.
Aviso: a parte do claude.ai usa a API interna e não oficial do site, autenticada com o seu cookie
sessionKey. Ela pode mudar sem aviso e o uso fica numa zona cinzenta dos termos de serviço. Só lê os seus próprios dados (requisições GET) e nunca apaga nada no vault.
Uso
python -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/claude-vault-sync run --dry-run # mostra o que faria
.venv/bin/claude-vault-sync run --code # sessões + memória do Claude Code (não precisa de cookie)
.venv/bin/claude-vault-sync run # conversas + memória do claude.ai
.venv/bin/claude-vault-sync serve # servidor MCP (stdio)Tools MCP: sync_conversations, sync_code_sessions, sync_status, search_vault, read_conversation
(as de sync começam em modo simulação).
Related MCP server: Obsidian Claude Code MCP Server
Configuração
Vault:
~/Documents/claude-vault(config.py).Cookie do claude.ai: em
~/.config/claude-vault-sync/session(permissão 600, fora do repositório) ou na variávelCLAUDE_VAULT_SESSION_KEY. Se expirar, o sync sai com código 2 e envia uma notificação (notify-send). A chave só é enviada parahttps://claude.ai/api.Estado:
~/.local/state/claude-vault-sync/state.json.
Notas geradas
Uma nota por conversa em conversations/AAAA/MM/, com as tags origem/web ou origem/code.
Memórias em memory/web/ (conta e projetos) e memory/code/<projeto>/. O índice de conversas é atualizado
de forma incremental.
Testes
.venv/bin/pytestAlguns testes opcionais usam fixtures reais em tests/fixtures/ (fora do git) e são pulados quando ausentes.
Licença
GPL-3.0-only. Veja LICENSE.
Available Tools
5 toolsread_conversationA
Lê uma conversa por UUID (8+ caracteres) ou caminho relativo dentro de conversations/.
Inputs: ref (required). Returns: result
search_vaultB
Busca texto nas conversas do vault (título e corpo).
Inputs: query (required), limit. Returns: result
sync_code_sessionsB
Importa as sessões e a memória do Claude Code (~/.claude/projects) para o vault. dry_run=True só mostra o que faria.
Inputs: dry_run. Returns: result
sync_conversationsB
Baixa do claude.ai conversas novas/atualizadas para o vault. dry_run=True só mostra o que faria.
Inputs: limit, dry_run. Returns: result
sync_statusB
Mostra contagem do vault, estado do sync e se há sessionKey.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The three 'sync' tools could look similar at a glance, but descriptions clearly separate them: sync_status is a read-only overview, sync_conversations pulls from claude.ai, and sync_code_sessions imports from local Claude Code. search_vault (text search) and read_conversation (fetch by UUID/path) are also clearly distinct.
All tools use consistent snake_case with a predictable verb_noun pattern (sync_status, search_vault, read_conversation, sync_conversations, sync_code_sessions). No mixing of conventions or styles.
Five tools is a tight, well-scoped set for a vault sync server: status, search, read, and two sync sources. Each tool earns its place with no redundancy.
The surface covers the core sync lifecycle (status, sync from two sources) plus retrieval (search, read). Minor gaps exist: no explicit list-conversations operation and no delete/edit of vault entries, but agents can work around these via search and the underlying sync.
Maintenance
Related MCP Connectors
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
A personal memory you control, shared across Claude, ChatGPT, Cursor and any MCP client.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceObsidian vault connector for Claude Desktop - enables reading and writing Markdown notes using Model Context Protocol (MCP)17 npm5-
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code and Claude Desktop to interact with Obsidian vaults through MCP protocol. Supports file operations, workspace context access, and dual transport (WebSocket and HTTP/SSE) for AI-powered assistance with your notes.365BSD Zero Clause
- AlicenseNot gradedqualityDmaintenanceConnects Claude.ai to your local Obsidian vault for full CRUD access, search, and daily note creation via the Model Context Protocol.14MIT
- FlicenseNot gradedqualityDmaintenanceProvides Claude with read, search, and write access to an Obsidian vault through MCP tools.-