Obsidian MCP Server
Permite que seu agente de IA leia, escreva, pesquise e edite notas, tags e frontmatter no seu cofre do Obsidian.
702 estrelas no GitHubpor cyanheadsLicença Apache-2.0Atualizado há 23 dias
Como instalar
Este MCP é local: roda no seu computador.
Funciona nos apps instalados no PC (Claude Desktop, Claude Code, Cursor, VS Code…). Escolha o seu app:
Cole no terminal:
claude mcp add obsidian -e OBSIDIAN_API_KEY="<seu valor>" -- npx -y obsidian-mcp-server
O que preencher
| Nome | O que é | Obrigatório |
|---|---|---|
OBSIDIAN_API_KEY | Bearer token for the Obsidian Local REST API plugin (Settings → Community Plugins → Local REST API). | Sim |
OBSIDIAN_BASE_URL | Base URL of the Obsidian Local REST API. Default: http://127.0.0.1:27123 (enable "Non-encrypted (HTTP) Server" in plugin settings). Use https://127.0.0.1:27124 for the always-on HTTPS port (self-signed cert; pair with OBSIDIAN_VERIFY_SSL=false). | Não |
OBSIDIAN_VERIFY_SSL | Whether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert. | Não |
OBSIDIAN_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds. | Não |
OBSIDIAN_ENABLE_COMMANDS | Opt-in flag for the command-palette pair (obsidian_list_commands + obsidian_execute_command). Off by default — Obsidian commands are opaque and can be destructive. | Não |
OBSIDIAN_READ_PATHS | Optional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; backslashes read as slashes, repeated and trailing slashes and '.' segments dropped, and names normalized to Unicode NFC; an entry naming the vault root ('.') is rejected at startup. Unset = full vault. Write paths are implicitly readable. Example: 'public/,projects/'. | Não |
OBSIDIAN_WRITE_PATHS | Optional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault, or the read scope when reads are restricted; paths in OBSIDIAN_DENY_PATHS stay denied. Example: 'projects/,scratch/'. | Não |
OBSIDIAN_DENY_PATHS | Optional comma-separated vault-relative paths withheld from reads and writes. Same syntax as OBSIDIAN_READ_PATHS. Wins over both allowlists; denied paths are left out of listings, search results, and tag counts. Unset = nothing denied. Example: 'private/,journal/therapy/'. | Não |
OBSIDIAN_READ_ONLY | Global read-only kill switch. When true, every write is denied regardless of OBSIDIAN_WRITE_PATHS, and the command-palette pair is suppressed (commands can mutate). Useful for shared or public-facing deployments. | Não |
OBSIDIAN_DELETE_ELICITATION | Opt-in delete confirmation. When true, obsidian_delete_note asks the user to confirm each delete through an elicitation round (the client must support elicitation), and HTTP startup requires a stateful session unless OBSIDIAN_READ_ONLY=true disables the tool. Off by default — the delete runs on the first call, bounded by OBSIDIAN_WRITE_PATHS and OBSIDIAN_READ_ONLY. | Não |
OBSIDIAN_OMNISEARCH_URL | Override URL for the Omnisearch plugin HTTP server. Unset derives from OBSIDIAN_BASE_URL host with port 51361. Required only if the Omnisearch plugin is not on the default port. | Não |
MCP_LOG_LEVEL | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). | Não |
Pronto! Agora teste
Reinicie o app e cole um destes pedidos no chat:
Adicione os itens de ação de hoje sob o título Tarefas da minha nota diária.
Liste minhas tags mais usadas.
O que é
Este servidor conecta seu agente ao seu cofre do Obsidian pelo plugin Local REST API. O agente pode ler e pesquisar notas, criá-las ou editá-las, alterar um título, bloco ou campo do frontmatter no lugar, e gerenciar tags. Você pode limitar quais pastas ele pode ler ou escrever.
O que ele consegue fazer
obsidian_get_note: ler uma notaobsidian_search_notes: pesquisar por texto, JSONLogic ou Omnisearchobsidian_write_note: criar ou substituir uma nota ou uma seçãoobsidian_append_to_noteeobsidian_patch_note: adicionar conteúdo a um título ou campoobsidian_replace_in_note: pesquisar e substituir dentro de uma notaobsidian_manage_frontmattereobsidian_manage_tags: editar frontmatter e tagsobsidian_list_noteseobsidian_list_tags: navegar pelo cofre
Quando usar
- ›Quando você quer que um agente acrescente notas de reunião no título certo.
- ›Quando você quer marcar ou pesquisar muitas notas de uma vez.
- ›Quando você quer atualizar uma nota diária ou periódica.
O que você precisa
Skills que combinam
MCP ou skill?
O MCP dá ao agente as mãos. A skill ensina o jeito certo de usar. Juntos, o resultado sai melhor e gasta menos tokens.
obsidianAjuda seu agente a ler, pesquisar, criar e editar notas no seu cofre do Obsidian, inclusive adicionando links entre as notas.cli-anything-obsidianPermite que seu agente leia, crie, atualize, pesquise e acrescente notas no seu cofre do Obsidian pelo plugin Local REST API.obsidianAjuda seu agente a ler, pesquisar, criar, editar e organizar notas no seu cofre do Obsidian, incluindo tarefas, links e propriedades.Perguntas frequentes
É gratuito e de código aberto?
Tem um arquivo de licença no repositório e nenhum preço informado.
Qual plugin ele precisa?
O plugin Obsidian Local REST API.
Posso limitar o que ele pode acessar?
Sim. OBSIDIAN_READ_PATHS, OBSIDIAN_WRITE_PATHS, OBSIDIAN_DENY_PATHS e OBSIDIAN_READ_ONLY definem os limites.
Ele pode excluir notas?
Sim, e por padrão sem confirmação. Defina OBSIDIAN_DELETE_ELICITATION=true para exigir a sua confirmação.
Ele pode executar comandos do Obsidian?
Só se você ativar OBSIDIAN_ENABLE_COMMANDS.
Quais transportes ele suporta?
STDIO ou Streamable HTTP.
Se não funcionar
- ›Confira se o Obsidian está aberto e se o plugin Local REST API está ativado.
- ›Confira se OBSIDIAN_API_KEY é igual à chave que está nas configurações do plugin.
- ›Leia o recurso obsidian://status para verificar se o plugin responde e se a autenticação está correta.
5 skills novas por semana. 1 minuto de leitura.