PM

piotr1215/mcp-obsidian

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

25 stars 10 forks 品質 67 トレンド 20

ローカル obsidian ノートと対話するためのシンプルな mcp サーバー

概要

Obsidian 用の MCP サーバーで、セキュアで直接ファイルシステムが保管されます。 ほとんどの既存の Obsidian MCP サーバーは、Obsidian REST API プラグインに依存しています。 以下が必要です。 - Obsidian をインストールする必要があります。 - Obsidian が稼働している - REST API プラグインを構成します。 このサーバーは、代わりに、ディスク上のObsidian vaultファイルと直接動作し、obsidianを使用してセットアップと互換性があります。 nvim - Obsidianアプリを要求せずにObsidianのような機能を提供するNeovimプラグイン。 - Obsidian vault へ - Obsidian アプリケーションは必要ありません - パストラバース防止と入力検証 - 実行時間追跡とリソース制限 - regex サポートとタグベースの検索を含む - フロントマッタとインラインタグ解析 - :新しい発見型ツールは、コンテンツのマップとその関係を発見することにより、あなたのボールトの知識構造の高レベルマップを提供します.

概要(AI 翻訳)

Obsidian 用の MCP サーバーで、セキュアで直接ファイルシステムが保管されます。

#このサーバーはなぜですか?

既存の Obsidian MCP サーバーは、Obsidian REST API プラグインに依存しています。

  • 肥満者を設置する
  • 従順者を走る
  • REST API プラグインの設定

このサーバーは、代わりに、ディスク上のObsidian vaultファイルと直接動作し、obsidianを使用してセットアップと互換性があります。 nvim - Obsidianアプリを要求せずにObsidianのような機能を提供するNeovimプラグイン。

Logseqとフォーム

マークダウンノートの任意のフォルダが機能するため、サーバーは、フォームワークスペースとファイルベースのLogseqグラフを読み込みます。 ワークスペースまたはグラフフォルダでポイントします。

| ツール | バージョン | ステータス | |------------------------------------| | フォーム | 対応 | 対応 | | Logseqファイルグラフ | 0.10.x 以上 | 対応 | | Logseq DB グラフ | 2.x | 未対応: マークダウンファイルではなく、データベースに住んでいるページ |

Logseq では、サーバーも読み込みます。

  • [[tags::]とページ上部の他のページプロパティ、タグとフロントマッターとして報告
  • [title::]のページタイトルとして、ファイル名に戻って[a___b.md]で読みますa/b]
  • マルチワード [[T4] タグ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Obsidian MCP Server

MCP server for Obsidian that provides secure, direct file system access to vault files.

Why This Server?

Most existing Obsidian MCP servers rely on the Obsidian REST API plugin, which requires:

  • Obsidian to be installed
  • Obsidian to be running
  • The REST API plugin to be configured

This server instead works directly with Obsidian vault files on disk, making it compatible with setups using obsidian.nvim - a Neovim plugin that provides Obsidian-like features without requiring the Obsidian app.

Logseq and Foam

Any folder of markdown notes works, so the server also reads Foam workspaces and file-based Logseq graphs. Point it at the workspace or graph folder.

Tool Version Status
Foam any Supported
Logseq file graphs 0.10.x and earlier Supported
Logseq DB graphs 2.x Not supported: pages live in a database, not in markdown files

For Logseq graphs the server also reads:

  • tags:: and other page properties at the top of a page, reported as tags and frontmatter
  • title:: as the page title, falling back to the file name, with a___b.md read as a/b
  • multi-word #[[tag name]] tags

It skips the copies Logseq keeps under logseq/bak/ and logseq/version-files/, as Logseq does.

Features

  • Direct file system access to Obsidian vaults - no Obsidian app required
  • Security-first design with path traversal prevention and input validation
  • High performance with execution time tracking and resource limits
  • Rich search capabilities including regex support and tag-based search
  • Metadata support with frontmatter and inline tag parsing

Recent Updates

🎉 New Features

  • 🗺️ MOC Discovery: New discover-mocs tool provides a high-level map of your vault’s knowledge structure by discovering Maps of Content and their relationships. Start here for 10x faster navigation!
  • Resource Links: Search results now include MCP resource links for direct note access
  • Context Snippets in Search Results: Search results now include surrounding lines for better context understanding
  • Match Highlighting: Search terms are highlighted with bold markers in results
  • Improved Search Result Structure: Results are now grouped by file with match counts and snippets

Installation

npm install

Usage

Testing with MCP Inspector

# Replace /home/decoder/dev/obsidian/decoder with your vault path
GitHub で README 全文を見る

インストール

npx @modelcontextprotocol/inspector node src/index.js /home/decoder/dev/obsidian/decoder
MCP 初心者?mcpskill.org のガイドから始めましょう →