MCP Server Manifest Pluginのロゴ

MCP Server Manifest Plugin

コミュニティ
iansinnott

Connect Claude Code and other AI tools to your Obsidian notes using Model Context Protocol (MCP)

公開者iansinnott
リポジトリobsidian-claude-code-mcp
言語TypeScript
フォーク
55
スター
355
利用可能なツール
0
通信方式stdio, streamable-http
カテゴリ
ライセンス0BSD
リンク
  • ツールをAIワークフローに接続

    MCP Server Manifest Pluginは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには355件のスターと55件のフォークがあります。

Obsidian Claude Code

An Obsidian plugin that implements an MCP (Model Context Protocol) server to enable Claude Code integration with Obsidian vaults.

This plugin allows Claude Code and other MCP clients (like Claude Desktop) to interact with your Obsidian vault, providing AI-powered assistance with direct access to your notes and files.

Features

  • Dual Transport MCP Server: Supports both WebSocket (for Claude Code) and HTTP/SSE (for Claude Desktop)
  • Auto-Discovery: Claude Code automatically finds and connects to your vault
  • File Operations: Read and write vault files through MCP protocol
  • Workspace Context: Provides current active file and vault structure to Claude
  • Multiple Client Support: Connect both Claude Code and Claude Desktop simultaneously
  • Configurable Ports: Avoid conflicts when running multiple vaults

MCP Client Configuration

This plugin serves as an MCP server that various Claude clients can connect to. Here's how to configure different clients:

Claude Desktop (as of 2025-06-09)

Claude Desktop requires a special configuration to connect to the Obsidian MCP server because it does not directly support HTTP transports. We will use mcp-remote, a tool that creates a local stdio bridge to the server's HTTP endpoint.

Configuration Steps:

  1. Install and enable this plugin in Obsidian.

  2. Make sure you have Node.js installed, as npx (which comes with Node.js) is used to run the bridge tool.

  3. Locate your Claude Desktop config file:

    • macOS: $HOME/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  4. Add the Obsidian MCP server to your config using the mcp-remote command. npx will automatically download and run it for you.

    json
    {
    	"mcpServers": {
    		"obsidian": {
    			"command": "npx",
    			"args": ["mcp-remote", "http://localhost:22360/sse"],
    			"env": {}
    		}
    	}
    }
  5. Restart Claude Desktop after making the configuration change.

  6. Test the connection by asking Claude about your vault: "What files are in my Obsidian vault?"

Other MCP Clients (with direct HTTP support)

If you are using an MCP client that directly supports the legacy "HTTP with SSE" transport, you can use a simpler configuration without the mcp-remote bridge.

Example Configuration:

json
{
	"mcpServers": {
		"obsidian": {
			"url": "http://localhost:22360/sse",
			"env": {}
		}
	}
}

Claude Code CLI

Claude Code automatically discovers and connects to Obsidian vaults through WebSocket.

Usage Steps:

  1. Install and enable this plugin in Obsidian
  2. Run Claude Code in your terminal: claude
  3. Select your vault using the /ide command
  4. Choose "Obsidian" from the IDE list
  5. Claude Code will automatically connect via WebSocket

Port Configuration

Default Port: The plugin uses port 22360 by default to avoid conflicts with common development services.

Custom Port Setup:

  1. Go to Obsidian Settings → Community Plugins → Claude Code → Settings
  2. Change the "HTTP Server Port" in the MCP Server Configuration section
  3. Update your Claude Desktop config to use the new port:
    json
    {
    	"mcpServers": {
    		"obsidian": {
    			"url": "http://localhost:22360/mcp",
    			"env": {}
    		}
    	}
    }
    NOTE: You can change the port in the settings.
  4. Restart Claude Desktop to apply the changes

Multiple Vaults: If you run multiple Obsidian vaults with this plugin, each vault needs a unique port. The plugin will automatically detect port conflicts and guide you to configure different ports.

A Note on MCP Specification Version

As of 2025-06-09

[!IMPORTANT] This plugin intentionally uses an older MCP specification for HTTP transport. The latest "Streamable HTTP" protocol (2025-03-26) is not yet supported by most MCP clients, including Claude Code and Claude Desktop.

To ensure compatibility, we use the legacy "HTTP with SSE" protocol (2024-11-05). Adhering to the newest specification will lead to connection failures with current tools.

Troubleshooting

Claude Desktop not connecting:

  • Verify the config file path and JSON syntax
  • Ensure Obsidian is running with the plugin enabled
  • Check that the port (22360) isn't blocked by firewall
  • Restart Claude Desktop after config changes

Claude Code not finding vault:

  • Verify the plugin is enabled in Obsidian
  • Check for .lock files in Claude config directory:
    • $CLAUDE_CONFIG_DIR/ide/ if environment variable is set
    • ~/.config/claude/ide/ (default since Claude Code v1.0.30)
    • ~/.claude/ide/ (legacy location)
  • Restart Obsidian if the vault doesn't appear in /ide list

Port conflicts:

  • Configure a different port in plugin settings
  • Update client configurations to match the new port
  • Common alternative ports: 22361, 22362, 8080, 9090

Tool Architecture

This plugin implements a flexible tool system that allows different tools to be exposed to different MCP clients:

Tool Categories

  1. Shared Tools (available to both IDE and MCP clients):

    • File operations: view, str_replace, create, insert
    • Workspace operations: get_current_file, get_workspace_files
    • Obsidian API access: obsidian_api
  2. IDE-specific Tools (only available via Claude Code WebSocket):

    • getDiagnostics - System and vault diagnostics
    • openDiff - Diff view operations (stub for Obsidian)
    • close_tab - Tab management (stub for Obsidian)
    • closeAllDiffTabs - Bulk tab operations (stub for Obsidian)
  3. MCP-only Tools (only available via HTTP/SSE):

    • Currently none, but the architecture supports adding them

Adding New Tools

To add a new tool to the plugin:

For Shared Tools (available to both IDE and MCP):

  1. Add the tool definition to src/tools/general-tools.ts in the GENERAL_TOOL_DEFINITIONS array
  2. Add the implementation in the createImplementations() method of GeneralTools class
  3. The tool will automatically be available to both WebSocket and HTTP clients

For IDE-specific Tools:

  1. Add the tool definition to src/ide/ide-tools.ts in the IDE_TOOL_DEFINITIONS array
  2. Add the implementation in the createImplementations() method of IdeTools class
  3. The tool will only be available to Claude Code via WebSocket

For MCP-only Tools:

  1. Add the tool definition to src/tools/mcp-only-tools.ts in the MCP_ONLY_TOOL_DEFINITIONS array
  2. Create an implementation class similar to GeneralTools or IdeTools
  3. Update src/mcp/dual-server.ts to register the tools only to the HTTP registry

Tool Registration Flow

The plugin uses a dual registry system:

  • WebSocket Registry: Contains shared tools + IDE-specific tools
  • HTTP Registry: Contains shared tools + MCP-only tools

This separation ensures that:

  • Claude Code gets access to IDE-specific functionality
  • Standard MCP clients only see appropriate tools
  • Shared functionality is available to all clients

Development

This project uses TypeScript to provide type checking and documentation. The repo depends on the latest plugin API (obsidian.d.ts) in TypeScript Definition format, which contains TSDoc comments describing what it does.

Releasing new releases

  • Update your manifest.json with your new version number, such as 1.0.1, and the minimum Obsidian version required for your latest release.
  • Update your versions.json file with "new-plugin-version": "minimum-obsidian-version" so older versions of Obsidian can download an older version of your plugin that's compatible.
  • Create new GitHub release using your new version number as the "Tag version". Use the exact version number, don't include a prefix v. See here for an example: https://github.com/obsidianmd/obsidian-sample-plugin/releases
  • Upload the files manifest.json, main.js, styles.css as binary attachments. Note: The manifest.json file must be in two places, first the root path of your repository and also in the release.
  • Publish the release.

インストール

TypingMind
{
  "mcpServers": {
    "obsidian-claude-code-mcp": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:22360/sse"
      ]
    }
  }
}

MCP Server Manifest PluginのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度MCP Server Manifest Pluginに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

MCP Server Manifest Pluginをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. MCP Server Manifest PluginのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "obsidian-claude-code-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-claude-code-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMCP Server Manifest PluginのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. MCP Server Manifest PluginのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
MCP Server Manifest Pluginを使ってこのタスクを手伝ってもらえますか?
MCP Server Manifest Plugin
はい、読みました。
MCP Server Manifest Pluginで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

MCP Server Manifest Pluginがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にhttp://localhost:22360/sseを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にhttp://localhost:22360/sseを貼り付けてください。
  2. MCP Server Manifest Pluginの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. MCP Server Manifest Pluginの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でMCP Server Manifest Pluginのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でMCP Server Manifest Pluginのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
MCP Server Manifest Pluginを使ってこのタスクを手伝ってもらえますか?
MCP Server Manifest Plugin
はい、読みました。
MCP Server Manifest Pluginで調べた結果をお伝えします。

よくある質問

MCP Server Manifest Plugin MCPサーバーは何に使いますか?

MCP Server Manifest Pluginは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMCP Server Manifest Plugin MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMCP Server Manifest Pluginを利用できます。

TypingMindでMCP Server Manifest Plugin MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。MCP Server Manifest Pluginを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

MCP Server Manifest Plugin MCPをTypingMindに接続するにはどうすればよいですか?

MCP Server Manifest Pluginは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでMCP Server Manifest Plugin MCPのどのようなツールを利用できますか?

MCP Server Manifest PluginはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

MCP Server Manifest Plugin MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。MCP Server Manifest Pluginで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇