MO

marcelmarais/obsidian-mcp-server

Developer tools

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

33 stars 9 forks 品質 63 トレンド 16

Cursor & ClaudeのようなAIアシスタントがObsidian vaultに読み書きできるように、軽量モデルコンテキストプロトコル(MCP)サーバー.

概要

Cursor & ClaudeのようなAIアシスタントがObsidian vaultに読み書きできるように、軽量モデルコンテキストプロトコル(MCP)サーバー。 - 「今日行ったコード変更を記述する、明日のスタンドアップのための新しいメモを作成」(Gitも使用) - 「プロジェクトのアイデアに関するメモをチェック」 - 「私は再ファクターに関連したTodosをチェック」 - Obsidian vault のすべてのファイル名のリストを取得する - どのファイルが利用可能であるかを発見するのに便利です。 2. - Obsidian vault から指定されたファイルの内容を取得する - 正確なファイル名、部分的なファイル名、またはケースインセンティブマッチをサポート - 各ファイルのコンテンツは '# ファイル: filename' をクリア識別 3 でプレフィックスします。 - Obsidian vault のマークダウンファイルから TODO のすべての項目を取り出します - チェックボックスのチェックボックスのチェックを外す ( '- [ ] ' を含む) - ファイルの場所でそれらを返します 1.

概要(AI 翻訳)

Cursor & ClaudeのようなAIアシスタントがObsidian vaultに読み書きできるように、軽量モデルコンテキストプロトコル(MCP)サーバー。

サンプルインタラクション例

  • 「今日作ったコード変更を記述する、明日のスタンドアップのための新しいメモを作成」(Gitも使用)
  • 「プロジェクトアイデアに関するメモをチェック」
  • 「再ファクタリングに関連したTodosを確認する」

ツール

参照

1。 getAllFilenames

  • Obsidianボルトのすべてのファイル名のリストを取得します

  • どのファイルが利用できるかを発見するのに有用 2。 readMultipleFiles

  • Obsidian vault から指定されたファイルの内容を取得します。

  • 正確なファイル名、部分的なファイル名、またはケースインセンティブマッチをサポート

  • 各ファイルの内容は「#ファイル:ファイル名」と明確に識別するためのプレフィックスされます 3。

  • Obsidian vault のマークダウンファイルから TODO のすべての項目を取得します。

  • チェックボックス項目のチェックを外す ('- [ ] ’ を含む行)

  • ファイルの場所でそれらを返す

書き込み

1.更新ファイルコンテンツ

  • 新しいマークダウンコンテンツで指定されたファイルのコンテンツを更新します。
  • ファイルが存在しない場合、それは作成されます

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

README

Obsidian MCP Server

A lightweight Model Context Protocol (MCP) server that enables AI assistants like Cursor & Claude to read from and write to your Obsidian vault.

Example Interactions

  • “Create a new note for standup tomorrow describing the code changes I’ve made today” (should also use Git)
  • “Check my notes about project ideas”
  • “Check what todos I have related to refactoring”

Tools

Read

  1. getAllFilenames

    • Gets a list of all filenames in the Obsidian vault
    • Useful for discovering what files are available
  2. readMultipleFiles

    • Retrieves the contents of specified files from the Obsidian vault
    • Supports exact filenames, partial filenames, or case-insensitive matches
    • Each file’s content is prefixed with ‘# File: filename’ for clear identification
  3. getOpenTodos

    • Retrieves all open TODO items from markdown files in the Obsidian vault
    • Finds unchecked checkbox items (lines containing '- [ ] ')
    • Returns them with their file locations

Write

  1. updateFileContent
    • Updates the content of a specified file in the Obsidian vault with new markdown content
    • If the file doesn’t exist, it will be created
    • Automatically creates any necessary directories

Install & build

npm install obsidian-mcp-server
npm run build

Integrating with Claude Desktop and Cursor

To use your MCP server with Claude Desktop add it to your Claude configuration:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": [
        "obsidian-mcp-server/build/index.js",
        "/path/to/your/vault"
      ]
    }
  }
}

For Cursor go to the MCP tab Cursor Settings (command + shift + J). Add a server with this command:

node obsidian-mcp-server/build/index.js /path/to/your/vault

Comparison with Other Solutions

While this implementation is intentionally lightweight, other solutions like jacksteamdev/obsidian-mcp-tools offer a more feature-rich approach as an Obsidian plugin.

This standalone server has the advantage of direct filesystem access without requiring the Obsidian application to be running.

Resources

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "obsidian": { "command": "node", "args": [ "obsidian-mcp-server/build/index.js", "/path/to/your/vault" ] } } }