Skip to main content
Glama

Obsidian MCP Server

Obsidian統合のためのモデルコンテキストプロトコルサーバー

これはTypeScriptベースのMCPサーバーで、Obsidianとの統合を実装しています。以下の機能を提供することで、MCPのコアコンセプトを実証しています。

  • Obsidian Vault の内容を表すリソース
  • 金庫データにアクセスするためのツール
  • ObsidianとのAPI統合

プロジェクト統計

  • コードの総行数: 345
  • メインファイル:
    • src/tool-handlers.ts (76行)
    • src/resource-handlers.ts (45行)
    • src/server.ts (32行)
    • src/api-client.ts (25行)

ディレクトリ構造

obsidian-mcp/ ├── .codegpt/ │ └── head ├── src/ │ ├── api-client.ts │ ├── index.ts │ ├── resource-handlers.ts │ ├── server.ts │ └── tool-handlers.ts ├── .SourceSageignore ├── package.json ├── README.md └── tsconfig.json

特徴

リソース

  • obsidian://server-info URI 経由で Obsidian サーバー情報にアクセスします。
  • メタデータを含む保管庫の内容を取得する
  • 簡単に統合できるJSON形式

ツール

  • get_vault_contents - Obsidian vault の内容を取得する
    • オプションパラメータとしてパスを受け取ります(デフォルト: ルートディレクトリ)
    • 構造化されたJSONレスポンスを返す

API統合

  • Obsidian API による安全な HTTPS 接続
  • エラー処理機能を備えたカスタム axios クライアント
  • Windows パス正規化のサポート

発達

前提条件

  • Node.js v18+
  • TypeScript 5.3以上
  • Obsidian API キー (OBSIDIAN_API_KEY 環境変数として設定)

設定

# Install dependencies npm install # Build the server npm run build # Start development server with auto-rebuild npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "obsidian-mcp": { "command": "/path/to/obsidian-mcp/build/index.js", "env": { "OBSIDIAN_API_KEY": "your-api-key-here" } } } }

デバッグ

MCP Inspector の使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

依存関係

ランタイム

  • @modelcontextprotocol/sdk: MCP サーバーの実装
  • axios: API通信用のHTTPクライアント

発達

  • @types/node: Node.js 用の TypeScript 定義
  • typescript: TypeScriptコンパイラ

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

この TypeScript ベースの MCP サーバーを使用すると、ユーザーはテキスト ノートを管理および要約することができ、ノート作成および要約プロンプト用のツールが提供されます。

  1. ディレクトリ構造
    1. 特徴
      1. リソース
      2. ツール
      3. API統合
    2. 発達
      1. 前提条件
      2. 設定
    3. インストール
      1. デバッグ
        1. 依存関係
          1. ランタイム
          2. 発達

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          This TypeScript-based MCP server enables users to manage a simple notes system with capabilities to create and summarize notes through structured prompts and resources.
          Last updated -
          5
          0
          TypeScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          This TypeScript-based server implements a simple notes system using MCP concepts, enabling users to create, list, and summarize text notes through natural language prompts.
          Last updated -
          5
          198
          193
          JavaScript
          MIT License
          • Apple
        • A
          security
          F
          license
          A
          quality
          A TypeScript-based MCP server that implements a simple notes system, enabling users to manage text notes with creation and summarization functionalities through structured prompts.
          Last updated -
          1
          289
          JavaScript
          • Apple
        • A
          security
          F
          license
          A
          quality
          A TypeScript-based MCP server that implements a simple notes system, allowing users to create, access, and generate summaries of text notes.
          Last updated -
          12
          1
          TypeScript
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sunwood-ai-labs/obsidian-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server