Obsidian MCP Local

Obsidian MCP Local

Enables AI assistants to search, read, create, and modify Markdown notes in local Obsidian vaults directly through filesystem operations. Supports tag-based discovery and frontmatter parsing without requiring Obsidian to be open, facilitating integration with VS Code Copilot via stdio transport.

Category
Visit Server

README

Obsidian MCP Local

MCP local em Node.js + TypeScript para expor seu vault do Obsidian ao VS Code + GitHub Copilot.

Ele foi pensado para uso local via stdio, com foco em ler e escrever notas Markdown dentro do seu vault.

Features

Tools disponíveis

  • search_notes(query)

    • busca por texto no path, frontmatter e conteúdo das notas
    • retorna resultados ranqueados com pequeno excerpt
  • get_note(path)

    • abre uma nota do vault
    • retorna path, frontmatter e content
  • create_note(path, content, overwrite?)

    • cria uma nota nova
    • opcionalmente sobrescreve uma nota existente
  • append_to_note(path, content)

    • adiciona conteúdo no final de uma nota existente
  • find_by_tag(tag)

    • encontra notas por tag
    • suporta tags no frontmatter e tags inline no conteúdo

Regras implementadas

  • só acessa arquivos dentro do vault configurado
  • ignora diretórios como:
    • .obsidian
    • .git
    • node_modules
  • trabalha apenas com arquivos .md
  • normaliza paths para evitar acesso fora do diretório base

Estrutura do projeto

obsidian-mcp-local/
  package.json
  tsconfig.json
  README.md
  .vscode/
    mcp.example.json
  src/
    index.ts

Pré-requisitos

  • Node.js 20+
  • npm
  • VS Code com GitHub Copilot
  • um vault do Obsidian local

Instalação

No diretório do projeto:

npm install
npm run build

Para desenvolvimento:

npm run dev

Para rodar a versão compilada:

npm start

Como usar no VS Code

1. Compile o projeto

npm install
npm run build

2. Ajuste o arquivo MCP do VS Code

Copie o conteúdo de .vscode/mcp.example.json para o seu .vscode/mcp.json no workspace onde você vai usar o Copilot.

Exemplo:

{
  "servers": {
    "obsidian-local-vault": {
      "type": "stdio",
      "command": "node",
      "args": ["C:/caminho/para/obsidian-mcp-local/dist/index.js"],
      "env": {
        "OBSIDIAN_VAULT_PATH": "D:/Obsidian/Vault"
      }
    }
  }
}

3. Atualize os caminhos

Substitua:

  • C:/caminho/para/obsidian-mcp-local/dist/index.js
  • D:/Obsidian/Vault

pelos caminhos reais da sua máquina.

4. Reinicie/recarrregue o VS Code

Depois disso, o Copilot deve descobrir o servidor MCP.

Exemplos de uso no Copilot Chat

  • “Procure no meu vault notas sobre .NET”
  • “Abra a nota knowledge/backend/dotnet.md
  • “Crie uma nota em inbox/ideias-mcp.md com um resumo do que discutimos”
  • “Adicione no final da nota daily/2026-04-06.md o texto - testar MCP local
  • “Encontre notas com a tag #arquitetura

Possíveis melhorias futuras

  • append_under_heading
  • parsing de [[wikilinks]]
  • get_backlinks(note)
  • índice em SQLite para busca rápida
  • whitelist de pastas para escrita (inbox/, daily/, scratch/)
  • bloqueio configurável de escrita em determinadas pastas

Observações importantes

  • Este projeto não depende do Obsidian aberto.
  • Ele opera diretamente sobre os arquivos do vault.
  • Se você habilitar escrita tanto no Obsidian quanto no VS Code, o controle de concorrência fica por sua conta.
  • O projeto hoje assume que o vault é uma pasta Markdown local.

Arquivo principal

A implementação está em:

  • src/index.ts

Licença

Uso pessoal / base inicial para customização.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured