PO

pmmvr/obsidian-api-mcp-server

Developer tools

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

21 stars 3 forks 品質 65 トレンド 0MIT

MCP サーバーにより、AI エージェントは、Obsidian ボルトを横断して自然知識の発見と分析を実行できます

概要

MCP (Model Context Protocol) サーバは、AI エージェントがローカル REST API プラグインを介して、Obsidian のボルトを横断して高度な知識の発見と分析を実行できるようにします。 このサーバーは、Obsidian vaultをAIエージェントの強力な知識ベースに変換し、以下のような複雑なマルチステップのワークフローを可能にします。 サーバの高度なフィルタリング, regex サポート, フルコンテンツ検索機能により、エージェントは、手動で時間を取るであろうニュアンス知識作業を実行することができます. 1. Obsidian ローカル REST API プラグインを Obsidian vault 2 にインストールします。 Obsidian の設定でプラグインの設定と有効化 3. API URL (デフォルト: [https://localhost:27124)]]) と 1 つを設定した場合の API キー MCP クライアント構成 (例、Claude デスクトップ): Obsidian API の環境変数を設定します。 : OBSIDIAN API KEYをスクリプトに直接ハードコーディングしたり、バージョン管理にコミットしたりしないでください。 .envファイル(.envファイル)の使用を検討してください.

概要(AI 翻訳)

MCP (Model Context Protocol) サーバは、AI エージェントがローカル REST API プラグインを介して、Obsidian のボルトを横断して高度な知識の発見と分析を実行できるようにします。

なぜこのマター

このサーバーは、Obsidian vaultをAIエージェントの強力な知識ベースに変換し、以下のような複雑なマルチステップのワークフローを可能にします。

-4月1日以降に作成したタイトルの「ロードマップ」または「タイムライン」を含む「プロジェクト/プランニング」フォルダからメモを取得すると、ブロッカーや依存関係を分析し、ソースノートを参照して統合リスク評価を提示します

-**「過去1ヶ月から「研究」または「分析」でタグ付けされたすべてのメモを修正し、不完全なセクションのコンテンツをスキャンしたり、質問を開き、同僚が各ギャップに対処することができることを示唆する「チーム/専門家のメモ」とクロスリファレンスします****

-「バゲット」または「ヘッドカウント」を含む「リーダーシップ/クアルテリー」のミーティングノートの完全なコンテンツを入手し、自分の部署に割り当てられたアクションアイテムを分析し、ソースノートの参照でクロノロジーのタイムラインを作成します」

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

README

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

Obsidian MCP Server

An MCP (Model Context Protocol) server that enables AI agents to perform sophisticated knowledge discovery and analysis across your Obsidian vault through the Local REST API plugin.

Why This Matters

This server transforms your Obsidian vault into a powerful knowledge base for AI agents, enabling complex multi-step workflows like:

  • “Retrieve notes from my ‘Projects/Planning’ folder containing ‘roadmap’ or ‘timeline’ in titles, created after April 1st, then analyze them for any blockers or dependencies and present a consolidated risk assessment with references to the source notes”

  • “Find all notes tagged with ‘research’ or ‘analysis’ from the last month, scan their content for incomplete sections or open questions, then cross-reference with my ‘Team/Expertise’ notes to suggest which colleagues could help address each gap”

  • “Get the complete content of meeting notes from ‘Leadership/Quarterly’ containing ‘budget’ or ‘headcount’, analyze them for action items assigned to my department, and create a chronological timeline with source note references”

The server’s advanced filtering, regex support, and full content retrieval capabilities allow agents to perform nuanced knowledge work that would take hours manually.

Prerequisites

  1. Install the Obsidian Local REST API plugin in your Obsidian vault
  2. Configure and enable the plugin in Obsidian settings
  3. Note the API URL (default: https://localhost:27124) and API key if you’ve set one

Installation

# Install from PyPI
pip install obsidian-api-mcp-server

# Or with uv
uv pip install obsidian-api-mcp-server

Add to MCP Configuration

Add to your MCP client configuration (e.g., Claude Desktop):

{
  "mcpServers": {
    "obsidian-api-mcp-server": {
      "command": "uvx",
      "args": [
        "--from",
        "obsidian-api-mcp-server>=1.0.1",
        "obsidian-api-mcp"
      ],
      "env": {
        "OBSIDIAN_API_URL": "https://localhost:27124",
        "OBSIDIAN_API_KEY": "your-api-key-here"
      }
    }
  }
}

From Source (Development)

# Clone the repository
git clone https://github.com/pmmvr/obsidian-api-mcp-server
cd obsidian-api-mcp-server

# Install with uv
uv pip install -e .

# Or with pip
pip install -e .

Configuration

Set environment variables for the Obsidian API:

# Required: Obsidian API URL (HTTPS by default)
export OBSIDIAN_API_URL="https://localhost:27124"  # Default

# Optional: API key if you've configured authentication
export OBSIDIAN_API_KEY="your-api-key-here"
GitHub で README 全文を見る

インストール

uvx --from obsidian-api-mcp-server>=1.0.1 obsidian-api-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "obsidian-api-mcp-server": { "command": "uvx", "args": [ "--from", "obsidian-api-mcp-server>=1.0.1", "obsidian-api-mcp" ], "env": { "OBSIDIAN_API_URL": "https://localhost:27124", "OBSIDIAN_API_KEY": "your-api-key-here" } } } }