English

MCP servers focused on fetching and presenting information from Obsidian vaults

The existing MCP server has the following drawbacks:

  • It supports many commands, which can cause slow prompt loading when computational resources are limited.
  • When reading a note labeled “Sample Note”, it is necessary to search for its path first before loading it, but the LLM may not always follow this procedure.
  • Some tools include unnecessary options, leading the LLM to sometimes fail to invoke them correctly.

These issues become particularly noticeable when running an LLM on a local GPU.
To address this, we developed a new MCP server that simply retrieves and loads lists of notes.

The new server also provides the following additional features:

  • When the LLM attempts to retrieve link information by searching with brackets like [[link name]], the server automatically removes any characters that cannot be used in links.
  • In addition to loading the note contents, it also displays backlinks—notes that link to the currently opened note.
    • This allows the LLM to load and understand the connections between related notes via backlinks.

Installation

gem install obsidian_fetch

Usage

obsidian_fetch /path/to/your/vault

Japanese

ObsidianのVaultからノートの内容を読み込むことに特化したMCPサーバーです。

既存のMCPサーバーでは、以下の欠点があります。

  • コマンドが多く、計算資源が乏しい場合にはプロンプトの読み込みに時間がかかってしまう。
  • 「Sample Note」というノートを読み込む際には、先にパスを検索してから読み込む必要があり、LLMがこの手順に従わない場合がある。
  • ツールに余計なオプションがあり、LLMが正しくツールを呼び出せないことがある。

これらの問題は、特にローカルのGPUでLLMを動かすときに顕在化します。この問題を解決するため、ノートのリストを取得し、読み込むだけのMCPサーバーを新たに作りました。

また、以下の追加機能を持ちます。

  • LLMがリンクの情報を取得しようとして[[link name]]のように[, ]付きで検索した場合に備え、リンクに使えない文字を除去する機能
  • ノートの文章に加えてバックリンクを表示する機能
    • バックリンクによる記事の繋がりをLLMに読み込ませることが出来ます。

インストール

gem install obsidian_fetch

起動方法

obsidian_fetch /path/to/your/vault