
iansinnott/obsidian-claude-code-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Claudeコードやその他のAIツールをモデルコンテキストプロトコル(MCP)を使ってObsidianノートに接続してください
概要
ObsidianのObsidianプラグインで、Claude CodeとObsidianのボールトとの統合を可能にするMCP(Model Context Protocol)サーバーを実装しています。 このプラグインは、Claude Codeや他のMCPクライアント(Claude Desktopなど)がObsidian Vaultとやり取りできるようにし、AIを活用したノートやファイルへの直接アクセスをサポートします。 - : WebSocket(Claude Code用)とHTTP/SSE(Claude Desktop用)の両方をサポートしています - : Claude Codeは自動的にあなたのボールトを検索し接続します - : MCPプロトコルを通じてVault ファイルの読み書きを - : 現在のアクティブなファイルとVault構造をClaudeに提供 - : Claude CodeとClaude Desktopの両方を同時に接続 - : 複数のボールトを実行時の競合回避 このプラグインは、さまざまなClaudeクライアントが接続できるMCPサーバーとして機能します。異なるクライアントの設定方法は以下の通りです: Claude Desktopは、HTTPトランスポートを直接サポートしていないため、Obsidian MCPサーバーに接続するために特別な設定が必要です。
概要(AI 翻訳)
ObsidianのObsidianプラグインで、Claude CodeとObsidianのボールトとの統合を可能にするMCP(Model Context Protocol)サーバーを実装しています。
このプラグインは、Claude Codeや他のMCPクライアント(Claude Desktopなど)がObsidian Vaultとやり取りできるようにし、AIを活用したノートやファイルへの直接アクセスをサポートします。
特徴
- デュアルトランスポートMCPサーバー:WebSocket(Claude Code用)およびHTTP/SSE(Claude Desktop用)の両方をサポートしています
- 自動発見:クロードコードが自動的にあなたのボールトを見つけて接続します
- ファイル操作:MCPプロトコルを使ったボールトファイルの読み書き
- Workspace コンテキスト:現在のアクティブなファイルおよびボールト構造をClaudeに提供します
- 複数のクライアントサポート:Claude CodeとClaude Desktopの両方を同時に接続
- 設定可能なポート:複数のボールトを運用する際の競合回避
MCPクライアント構成
このプラグインは、さまざまなClaudeクライアントが接続できるMCPサーバーとして機能します。異なるクライアントの設定方法は以下の通りです:
Claude デスクトップ(2025-06-09現在)
Claude Desktopは、HTTPトランスポートを直接サポートしていないため、Obsidian MCPサーバーに接続するために特別な設定が必要です。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
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:
-
Install and enable this plugin in Obsidian.
-
Make sure you have Node.js installed, as
npx(which comes with Node.js) is used to run the bridge tool. -
Locate your Claude Desktop config file:
- macOS:
$HOME/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the Obsidian MCP server to your config using the
mcp-remotecommand.npxwill automatically download and run it for you.{ "mcpServers": { "obsidian": { "command": "npx", "args": ["mcp-remote", "http://localhost:22360/sse"], "env": {} } } } -
Restart Claude Desktop after making the configuration change.
-
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:
{
"mcpServers": {
"obsidian": {
"url": "http://localhost:22360/sse",
"env": {}
}
}
}
Claude Code CLI
Claude Code automatically discovers and connects to Obsidian vaults through WebSocket.
Usage Steps:
- Install and enable this plugin in Obsidian
- Run Claude Code in your terminal:
claude - Select your vault using the
/idecommand - Choose “Obsidian” from the IDE list
- Claude Code will automatically connect via WebSocket
Port Configuration
インストール
npx mcp-remote http://localhost:22360/sse設定
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:22360/sse"],
"env": {}
}
}
}