obsidian-mcp
Allows interacting with an Obsidian vault, providing tools for searching, reading, creating, and updating notes.
Click on "Install 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., "@obsidian-mcpsearch my vault for notes about MCP"
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.
obsidian-mcp
Servidor MCP que expõe um vault do Obsidian (busca, leitura, criação e atualização de notas) via Streamable HTTP.
Status
config.py, auth.py, sync.py, server.py, vault.py e tools.py estão implementados
e funcionais.
Related MCP server: Obsidian CLI MCP Server
Tools disponíveis
O servidor expõe 5 tools MCP (src/tools.py, registradas em src/server.py):
search_notes(query, tag=None, limit=10)— busca por conteúdo, título e tags.read_note(path)— lê uma nota e devolve conteúdo + frontmatter.list_notes(folder=None, tag=None)— lista notas, opcionalmente filtradas.write_note(path, content, frontmatter=None)— cria uma nota nova; não sobrescreve a menos queALLOW_DESTRUCTIVE=true(erronote_exists/ 409 caso contrário).replace_section(path, heading, new_content, mode="replace", occurrence=None)— substitui ou anexa (mode="append") o conteúdo de uma seção sem tocar no resto da nota. Se oheadingse repetir na nota, a chamada recusa comcode: "ambiguous_heading"e informa quantas ocorrências existem — useoccurrence(1-based, na ordem do documento) para escolher qual editar. Substituir um heading pai (ex:## Fase 1) troca a seção inteira, incluindo qualquer subseção aninhada.
Todas retornam {"error": ..., "code": ...} em vez de lançar exceção — ver tools.py para
o mapeamento completo de códigos de erro (unsafe_path_error, note_not_found,
note_exists, heading_not_found, ambiguous_heading, sync_conflict,
invalid_content, internal_error).
Write tools (write_note, replace_section) fazem sync_pull() antes de editar e
sync_write() (commit + push) depois, mantendo o repo git do vault sincronizado.
Setup local
uv sync
cp .env.example .env
# editar .env: VAULT_PATH deve apontar para a subpasta do vault dentro do clone
# (ex: .../SecondBrain/SecondBrain), MCP_AUTH_TOKEN para um token forte,
# e ALLOWED_HOST para o host que vai servir o Streamable HTTP.
uv run uvicorn src.server:app --reloadRodar os testes:
uv run pytestTestar com o MCP Inspector antes de expor remotamente:
npx @modelcontextprotocol/inspector uv run python -m src.serverVariáveis de ambiente
Definidas em src/config.py (Settings), carregadas de .env. Ver .env.example para
os comentários completos.
Variável | Obrigatória | Default | Descrição |
| sim | — | Caminho absoluto para a subpasta do vault dentro do clone git (ex: |
| sim | — | Token exigido em |
| sim | — | Host(s) permitido(s) para proteção contra DNS rebinding do Streamable HTTP (ex: |
| não |
| Remote git usado para pull/push automático. |
| não |
| Autor dos commits automáticos feitos pelo servidor. |
| não |
| Segundos entre pulls de frescor em background. |
| não |
| Libera overwrite/delete de notas. Mantenha |
| não |
| Porta do uvicorn. |
Deploy (EasyPanel)
Build via Dockerfile, expor por trás do Traefik com TLS. O container precisa de uma
deploy key SSH com permissão de push no repo do vault.
Conectar no Claude Code
claude mcp add --transport http obsidian https://SEU-DOMINIO/mcp \
--header "Authorization: Bearer SEU_TOKEN"Depois, /mcp dentro do Claude Code lista as tools disponíveis.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceMCP server that provides read and write access to an Obsidian vault by interacting directly with markdown files on disk. Supports searching, listing, reading, creating, editing, and appending notes without requiring any Obsidian plugins.Last updated3,555ISC
- Flicense-qualityDmaintenanceMCP server that exposes Obsidian vault operations over HTTP via the Obsidian CLI, enabling note management, search, and daily note operations.Last updated1
- Alicense-qualityBmaintenanceMCP server for interacting with Obsidian via the Local REST API, enabling file operations, search, and content editing in your vault.Last updatedMIT
- Alicense-qualityBmaintenanceMCP server to interact with Obsidian via the Local REST API community plugin, enabling file listing, search, content manipulation, and note management.Last updatedMIT
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RonaldoMerussi/obsidian-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server