
publikprinciple/obsidian-mcp-rest
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
publikprinciple/obsidian-mcp-restは[https://github.com/publikprinciple/obsidian-mcp-rest.からインポートされたMCPサーバー候補です
概要
publikprinciple/obsidian-mcp-restは[https://github.com/publikprinciple/obsidian-mcp-rest.からインポートされたMCPサーバー候補です
概要(AI 翻訳)
MCP (Model Context Protocol) サーバの実装で、ローカル REST API を介して Obsidian vault へのアクセスを提供します。 このサーバーは、AIアシスタントが従順なインターフェイスを通じて、Obsidian のノートとやり取りし、保管することを可能にします。
##特徴
- MCP による Obsidian vault コンテンツへのアクセス
- メモを読み書き
- リストの欠陥の内容
- 機能検索
- ローカルREST APIの統合をセキュアに
- Claudeデスクトップおよび他のAIの助手と互換性がある
前提条件
- Node.js 16以上
- ローカル REST API プラグインがインストールおよび設定された Obsidian
- ローカル REST API が有効な Obsidian の金庫
インストール
パッケージをグローバルにインストールします。
または特定のバージョン/ブランチを使用する場合:
設定
- まず、Obsidian Local REST API プラグインを設定します。
- Obsidian にローカル REST API プラグインをインストールする
- API ポートの設定 (デフォルト: 27123)
- APIキーの生成と保存
- 設定ファイルを作成する [
config.json]:
使用法
- サーバーを始めて下さい:
2。 サーバは、stdin/stdout を介して MCP リクエストの開始とリスニングを行います。
##Claudeデスクトップでの使用
1。 このMCPサーバーを使用するClaudeデスクトップの設定:
- Claudeデスクトップの設定を開く
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Obsidian MCP REST Server
An MCP (Model Context Protocol) server implementation that provides access to Obsidian vaults through a local REST API. This server allows AI assistants to interact with Obsidian notes and manage vault content through a standardized interface.
Features
- Access Obsidian vault contents through MCP
- Read and write notes
- List vault contents
- Search functionality
- Secure local REST API integration
- Compatible with Claude Desktop and other AI assistants
Prerequisites
- Node.js 16 or higher
- Obsidian with Local REST API plugin installed and configured
- An Obsidian vault with Local REST API enabled
Installation
Install the package globally:
npm install -g PublikPrinciple/obsidian-mcp-rest
Or if you prefer using a specific version/branch:
npm install -g PublikPrinciple/obsidian-mcp-rest#main
Configuration
-
First, configure Obsidian Local REST API plugin:
- Install the Local REST API plugin in Obsidian
- Configure the API port (default: 27123)
- Generate and save an API key
-
Create a configuration file
config.json:
{
"obsidian": {
"apiKey": "your-api-key-here",
"port": 27123,
"host": "localhost"
},
"server": {
"name": "obsidian-mcp",
"version": "1.0.0"
}
}
Usage
- Start the server:
obsidian-mcp-rest --config path/to/config.json
- The server will start and listen for MCP requests via stdin/stdout.
Using with Claude Desktop
-
Configure Claude Desktop to use this MCP server:
- Open Claude Desktop settings
- Navigate to the MCP section
- Add new server configuration:
{ "name": "obsidian-mcp", "command": "obsidian-mcp-rest", "args": ["--config", "path/to/config.json"] }
-
Claude can now access your Obsidian vault through commands like:
Read note "Projects/MyProject.md" List all notes in "Projects" folder Search for notes containing "typescript"
Available Tools
listNotes: List all notes in the vault or a specific folderreadNote: Read the contents of a specific notewriteNote: Create or update a notesearchNotes: Search for notes using a query stringgetMetadata: Get metadata for a specific note
Security
- The server only runs locally and communicates through stdin/stdout
- All requests to Obsidian REST API are authenticated with your API key
- No external network access is required
- Data remains local to your machine
Development
- Clone the repository:
git clone https://github.com/PublikPrinciple/obsidian-mcp-rest.git
cd obsidian-mcp-rest
- Install dependencies:
npm install
- Build the project:
npm run build
- Run tests:
npm test
Troubleshooting
Installation Issues
If you encounter any installation issues, try these alternatives:
- Clone and install locally:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →