Efficiently search Obsidian vaults using the ripgrep tool.
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.
rg_search_notes
Search for text content within your notes with flexible scope options.
rg_search_links
Find and analyze links throughout your vault.
[[Note Title]]
), markdown links, and external URLsrg_search_backlinks
Find all notes that link to a specific target note.
rg_search_recent_notes
Find notes modified within specific date ranges.
rg_search_orphaned_notes
Identify notes that have no incoming or outgoing links.
When matches are found, Claude receives intelligent context:
tags
, project
, status
)## Project Ideas
, ### Meeting Notes
)[[Note Title]]
and [[Note Title|Display Text]]
[Display Text](note-file.md)
and external URLsMost search tools support these common parameters:
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)rg_search_notes
)search_scope
:
"all"
- Search everything (default)"content_only"
- Skip frontmatter, search only note content"frontmatter_only"
- Search only YAML frontmatter propertiesrg_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")rg_search_links
)link_type
: "all"
, "wiki_links"
, "markdown_links"
, or "external_urls"
url_pattern
: Regex pattern to filter URLstitle_pattern
: Regex pattern to filter link titlesWindows:
# Using winget (recommended)
winget install BurntSushi.ripgrep.MSVC
# Using chocolatey
choco install ripgrep
# Using scoop
scoop install ripgrep
macOS:
brew install ripgrep
Linux (Ubuntu/Debian):
sudo apt install ripgrep
# Clone the repository
git clone https://github.com/kpetrovsky/kp-ripgrep-mcp.git
cd kp-ripgrep-mcp
# Install the package
pip install -e .
Add this configuration to Claude Desktop:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"obsidian-search": {
"command": "python",
"args": ["-m", "rgrep_mcp.server"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
}
}
}
}
Replace /path/to/your/obsidian/vault
with your actual vault path.
Environment Variable (all platforms):
export OBSIDIAN_VAULT_PATH="/path/to/your/obsidian/vault"
Configuration File:
Create ~/.rgrep-mcp.json
:
{
"vault_path": "/path/to/your/obsidian/vault",
"default_case_sensitive": false,
"default_result_limit": 15
}
Verify ripgrep installation:
rg --version
If this command fails, reinstall ripgrep using the instructions above.
OBSIDIAN_VAULT_PATH
environment variable is set correctly"C:/Users/Name/Vault"
or "C:\\Users\\Name\\Vault"
"search_scope": "all"
first, then narrow downfolder
parameter, ensure it contains the expected notes"smart_context": false
for faster searches when context isn't neededUse YYYY-MM-DD format for dates:
Ask Claude:
MIT License - see LICENSE file for details.
Search and book from over 2 million hotels with shopping and booking capabilities.
Interact & query with Meilisearch (Full-text & semantic search API)
Provides weather data using the US National Weather Service (NWS) API. Built with pure JavaScript ES Modules.
Search and get up-to-date information about NPM, Cargo, PyPi, and NuGet packages.
Integrates Google Maps for route planning, traffic analysis, and cost estimation.
Access Australian Pharmaceutical Benefits Scheme data for medicine information, pricing, and availability. Built with Python and FastAPI.
A zero-configuration job aggregation service that fetches job listings from major recruitment websites.
Best people search engine that reduces the time spent on talent discovery.
An enhanced MCP server for SearXNG web searching, utilizing a category-aware web-search, web-scraping, and includes a date/time retrieval tool.
Lightning-Fast, High-Accuracy Deep Research Agent 👉 8–10x faster 👉 Greater depth & accuracy 👉 Unlimited parallel runs