Skip to main content
Glama

Obsidian MCP Server

by pmmvr

search_vault

Search your Obsidian vault for notes using text or regex, filtered by title, tag, creation/modification dates, and specific folders. Retrieve full content or contextual snippets with pagination and match limits.

Instructions

Search Obsidian vault for notes matching criteria. Args: query: Text or regex pattern to search for query_type: "text" or "regex" search_in_path: Limit search to specific folder title_contains: Filter by title (string or array) title_match_mode: "any" or "all" for multiple title terms tag: Filter by tag (string, array, or JSON string like title_contains) tag_match_mode: "any" or "all" for multiple tag terms context_length: Characters of context around matches include_content: Return full note content modified_since/until: Filter by modification date (YYYY-MM-DD) created_since/until: Filter by creation date (YYYY-MM-DD) page_size/page: Pagination controls max_matches_per_file: Limit matches per file

Input Schema

NameRequiredDescriptionDefault
context_lengthNo
created_sinceNo
created_untilNo
include_contentNo
max_matches_per_fileNo
modified_sinceNo
modified_untilNo
pageNo
page_sizeNo
queryNo
query_typeNotext
search_in_pathNo
tagNo
tag_match_modeNoany
title_containsNo
title_match_modeNoany

Input Schema (JSON Schema)

{ "properties": { "context_length": { "default": 100, "title": "Context Length", "type": "integer" }, "created_since": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Created Since" }, "created_until": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Created Until" }, "include_content": { "default": false, "title": "Include Content", "type": "boolean" }, "max_matches_per_file": { "default": 5, "title": "Max Matches Per File", "type": "integer" }, "modified_since": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Modified Since" }, "modified_until": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Modified Until" }, "page": { "default": 1, "title": "Page", "type": "integer" }, "page_size": { "default": 50, "title": "Page Size", "type": "integer" }, "query": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Query" }, "query_type": { "default": "text", "title": "Query Type", "type": "string" }, "search_in_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Search In Path" }, "tag": { "anyOf": [ {}, { "type": "null" } ], "default": null, "title": "Tag" }, "tag_match_mode": { "default": "any", "title": "Tag Match Mode", "type": "string" }, "title_contains": { "anyOf": [ {}, { "type": "null" } ], "default": null, "title": "Title Contains" }, "title_match_mode": { "default": "any", "title": "Title Match Mode", "type": "string" } }, "title": "search_vaultArguments", "type": "object" }

Other Tools from Obsidian MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/pmmvr/obsidian-api-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server