AgentStack
MCP verified MIT Self-run

Notes Mcp

mcp-boazy-notes-mcp · by boazy

MCP server with ripgrep-powered search and note reading capabilities for Obsidian vaults

No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add mcp-boazy-notes-mcp

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Notes Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Notes MCP Server

An MCP (Model Context Protocol) server for interacting with Obsidian notes. This server provides tools to search through and read notes from your Obsidian vault, making your knowledge base accessible to AI assistants.

Features

  • Search Notes: Full-text search through your Obsidian vault using ripgrep
  • Read Notes: Parse and extract content, metadata, and tags from notes
  • Cross-platform: Works on Windows, macOS, and Linux
  • Frontmatter Support: Extracts YAML frontmatter as structured metadata
  • Tag Extraction: Automatically identifies and extracts Obsidian tags

Prerequisites

  • Deno runtime
  • ripgrep (rg command)
  • An Obsidian vault with markdown files

Setup

  1. Clone or download this project
  2. Set the OBSIDIAN_VAULT_PATH environment variable:

``bash export OBSIDIAN_VAULT_PATH="/path/to/your/obsidian/vault" ``

  1. Run the server:

```bash # Using Deno directly deno task start

# Using mise (if you have mise installed) mise run start ```

Development

For development with file watching:

# Using Deno
deno task dev

# Using mise
mise run dev

Testing

You can test the MCP server using the included query CLI tool:

# Search for notes containing a pattern (case-insensitive by default)
mise run query search "productivity"

# Case-sensitive search
mise run query search "TODO" --case-sensitive

# Search for whole words only
mise run query search "test" --whole-word

# Multiline search
mise run query search "pattern.*spans.*lines" --multiline

# Search with custom context lines (default: 5)
mise run query search "pattern" --context 10

# Read specific notes
mise run query read "daily-notes/2024-01-15"
mise run query read "note1" "folder/note2"

# Use verbose mode to see the request being sent
mise run query -v search "pattern"
mise run query --verbose read "note1"

The query tool connects to the MCP server and returns the raw JSON responses, making it useful for testing and debugging.

Tools

search_notes

Search through markdown files in your vault using ripgrep patterns.

Parameters:

  • pattern (string, required): Search pattern for ripgrep
  • flags (array, optional): Additional ripgrep flags

Returns: Array of search results with:

  • path: Relative note path (without .md extension)
  • matches: Array of matches with line numbers and context

read_notes

Read and parse one or more notes from your vault.

Parameters:

  • paths (array, required): Array of relative note paths (with or without .md extension)

Returns: Array of note objects with:

  • name: Note name (relative path without .md extension)
  • contents: Markdown content (without frontmatter and tags)
  • metadata: Parsed frontmatter as JSON object
  • tags: Array of extracted Obsidian tags

Example Usage

Once connected to an MCP client, you can:

// Search for notes containing "productivity"
await search_notes({
  pattern: "productivity",
  flags: ["-i"] // case-insensitive
});

// Read specific notes
await read_notes({
  paths: ["daily-notes/2024-01-15", "projects/my-project"]
});

Configuration

The server requires the OBSIDIAN_VAULT_PATH environment variable to be set to your Obsidian vault directory.

Claude Desktop Integration

To use this MCP server with Claude Desktop, add it to your Claude configuration file:

macOS/Linux: ~/.config/claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "notes": {
      "command": "deno",
      "args": [
        "run",
        "--allow-read=/path/to/your/obsidian/vault",
        "--allow-run=rg",
        "--allow-env=OBSIDIAN_VAULT_PATH",
        "src/index.ts"
      ],
      "cwd": "/path/to/notes-mcp",
      "env": {
        "OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
      }
    }
  }
}

Using mise (recommended if you have mise installed):

{
  "mcpServers": {
    "notes": {
      "command": "/path/to/notes-mcp/start-server.sh",
      "env": {
        "OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
      }
    }
  }
}

This uses the included start-server.sh script which handles changing to the project directory and running mise run start.

Replace the paths with:

  • /path/to/notes-mcp: The absolute path to this project directory
  • /path/to/your/obsidian/vault: The absolute path to your Obsidian vault

After updating the configuration, restart Claude Desktop. The server will appear as "notes" and provide the search_notes and read_notes tools.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.