AO

aserranoni/org-roam-mcp

Developer tools

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

15 stars 11 forks 品質 58 トレンド 21

AIエージェントでロームの知識ベースを管理し、検索

概要

Claude Code や他の MCP クライアントが org-roam ナレッジベースとやり取りできるモデルコンテキストプロトコル (MCP) サーバー。 - : org-roam ノードを検索して、バックリンクと関係を探します。 : 新しいメモを作成し、既存のコンテンツを更新し、ノード間でリンクを追加します。 : org-roam のファイル構造、UUID システム、および慣行を調べます。 : 自動的に org-roam データベースとディレクトリを見つけます。 : org-roam の SQLite の SQLite データベースの効率的なクエリー - : 包括的な入力バリデーションと記述エラーメッセージ - : 引用/unquoted ノードを自動更新した後、自動的に更新します。 - : org-roamデータベースから引用されたファイルパスを持つ再解決された問題 - : 引用符と未引用のノードIDフォーマットの両方をシームレスに処理します。 : データベースは、作成/更新操作後に自動的に更新されます - : 明確なエラーメッセージで包括的な入力検証を追加 - : 引用符付きのファイルパスの自動正規化...

概要(AI 翻訳)

Claude Code や他の MCP クライアントが org-roam ナレッジベースとやり取りできるモデルコンテキストプロトコル (MCP) サーバー。

##特徴

  • オペレーションを読む: org-roamノードを検索し、バックリンクと関係を探索
  • ライト操作: 新しいメモを作成し、既存のコンテンツを更新し、ノード間でリンクを追加します。
  • 完全な統合: org-roamのファイル構造、UUIDシステム、および慣習を尊重します
  • 自動検出: org-roamデータベースとディレクトリを自動的に検索
  • 高速検索:効率的なクエリのためのorg-roamのSQLiteデータベースを活用 -ロバストエラー処理: 包括的な入力検証と記述的なエラーメッセージ
  • パス正規化: 引用/非引用されたファイルパスとノード ID を一貫して扱う
  • データベース同期: 即時更新のためのファイル操作後の自動更新

最近の改善

##v0.2.0 - 信頼性の向上(最新)

-****** ファイルパスの処理を修正**: org-roamデータベースから引用されたファイルパスで解決された問題 -注記ノードIDサポート:引用符と未引用のノードIDフォーマットの両方をシームレスに処理します

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

README

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

Org-roam MCP Server

A Model Context Protocol (MCP) server that enables Claude Code and other MCP clients to interact with your org-roam knowledge base.

Features

  • Read Operations: Search and retrieve org-roam nodes, explore backlinks and relationships
  • Write Operations: Create new notes, update existing content, add links between nodes
  • Full Integration: Respects org-roam’s file structure, UUID system, and conventions
  • Auto-Detection: Automatically finds your org-roam database and directory
  • Fast Search: Leverages org-roam’s SQLite database for efficient queries
  • Robust Error Handling: Comprehensive input validation and descriptive error messages
  • Path Normalization: Handles quoted/unquoted file paths and node IDs consistently
  • Database Synchronization: Automatic refresh after file operations for immediate updates

Recent Improvements

v0.2.0 - Enhanced Reliability (Latest)

  • 🔧 Fixed File Path Handling: Resolved issues with quoted file paths from the org-roam database
  • 🆔 Improved Node ID Support: Now handles both quoted and unquoted node ID formats seamlessly
  • 🔄 Enhanced Search Synchronization: Database automatically refreshes after create/update operations
  • ✅ Better Error Handling: Added comprehensive input validation with clear error messages
  • 🧹 Path Cleaning: Automatic normalization of file paths with quote removal
  • 📝 Improved Logging: Better error reporting and debugging information

Installation

# Using uvx (recommended)
uvx org-roam-mcp

# Or with pip in a virtual environment
pip install org-roam-mcp

Configuration

Auto-Detection

The server automatically detects your org-roam setup by looking for:

Database locations:

  • ~/.emacs.d/org-roam.db
  • ~/org-roam.db
  • ~/.config/emacs/org-roam.db
  • ~/Documents/org-roam/org-roam.db

Directory locations:

  • ~/org-roam/
  • ~/Documents/org-roam/
  • ~/Dropbox/org-roam/
  • ~/Notes/

Manual Configuration

Override auto-detection with environment variables:

export ORG_ROAM_DB_PATH="/path/to/your/org-roam.db"
export ORG_ROAM_DIR="/path/to/your/org-roam-directory"
export ORG_ROAM_MAX_SEARCH_RESULTS=100  # Default: 50

Usage with Claude Code

Add to your Claude Code MCP configuration (~/.claude_code/mcp.json):

{
  "mcpServers": {
    "org-roam": {
      "command": "uvx",
      "args": ["org-roam-mcp"]
    }
  }
}

Or for local development:

{
  "mcpServers": {
    "org-roam": {
      "command": "python",
      "args": ["-m", "org_roam_mcp.server"],
      "env": {
        "ORG_ROAM_DB_PATH": "/path/to/your/org-roam.db",
        "ORG_ROAM_DIR": "/path/to/your/org-roam"
      }
    }
  }
}

Available Tools

Search and Discovery

  • search_nodes: Search for nodes by title, tags, or aliases
  • get_node: Get detailed information about a specific node
  • get_backlinks: Find all nodes that link to a specific node
GitHub で README 全文を見る

インストール

uvx org-roam-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "org-roam": { "command": "uvx", "args": ["org-roam-mcp"] } } }