Labsco
kpetrovsky logo

Ripgrep Search

โ˜… 6

from kpetrovsky

Efficiently search Obsidian vaults using the ripgrep tool.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Obsidian Vault Search for Claude

This MCP server enables Claude to search file content using ripgrep - with extra features for Obsidian. It understands Obsidian-specific elements like wiki links, frontmatter properties, and provides intelligent context about where matches are found.

Available Tools

rg_search_notes

Search for text content within your notes with flexible scope options.

  • Search all content, only frontmatter, or only note content
  • Get smart context showing which frontmatter property or heading contains each match
  • Filter by folder and control result limits

Find and analyze links throughout your vault.

  • Discover wiki links ([[Note Title]]), markdown links, and external URLs
  • Filter links by URL patterns or title patterns
  • Useful for finding broken links or analyzing your knowledge graph connections

Find all notes that link to a specific target note.

  • Identify which notes reference a particular topic or note
  • Understand the context around each backlink reference
  • Discover how ideas connect across your vault

rg_search_recent_notes

Find notes modified within specific date ranges.

  • Search by modification date using YYYY-MM-DD format
  • Useful for reviewing recent work or finding notes from specific time periods
  • Combine with other searches to find recent notes about specific topics

rg_search_orphaned_notes

Identify notes that have no incoming or outgoing links.

  • Find isolated notes that might need better integration
  • Discover forgotten content that could be connected to your knowledge graph
  • Useful for vault maintenance and organization

Obsidian-Specific Capabilities

Smart Context Detection

When matches are found, Claude receives intelligent context:

  • Frontmatter matches: Shows the property name (e.g., tags, project, status)
  • Content matches: Shows the nearest heading (e.g., ## Project Ideas, ### Meeting Notes)
  • Nested properties: Handles complex YAML structures in frontmatter
  • Wiki Links: [[Note Title]] and [[Note Title|Display Text]]
  • Markdown Links: [Display Text](https://github.com/kpetrovsky/kp-ripgrep-mcp/blob/HEAD/note-file.md) and external URLs
  • Frontmatter Links: Links within YAML properties and lists

File Organization

  • Folder Filtering: Limit searches to specific directories
  • Date-Based Discovery: Find files by modification time
  • Vault Structure: Understands Obsidian's file organization patterns

Additional Parameters

Most search tools support these common parameters:

Search Behavior

  • case_sensitive: true or false (default: false)
  • folder: Limit search to specific folder (e.g., "Daily Notes", "Projects/Active")
  • max_results: Number of results to return (1-100, default: 15, automatically capped)
  • smart_context: Include context detection (default: true, set to false for faster searches)

Search Scope (for rg_search_notes)

  • search_scope:
    • "all" - Search everything (default)
    • "content_only" - Skip frontmatter, search only note content
    • "frontmatter_only" - Search only YAML frontmatter properties

Date Filtering (for rg_search_recent_notes)

  • start_date: Start date in YYYY-MM-DD format (e.g., "2024-01-15")
  • end_date: End date in YYYY-MM-DD format (e.g., "2024-01-31")
  • link_type: "all", "wiki_links", "markdown_links", or "external_urls"
  • url_pattern: Regex pattern to filter URLs
  • title_pattern: Regex pattern to filter link titles