Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

list_notes

Retrieve notes from an Obsidian vault with optional search filtering to locate specific content.

Instructions

List all notes in the vault with optional search filter (legacy with search support)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoOptional search query to filter notes

Implementation Reference

  • The core handler function `listNotes()` in the `ObsidianApiClient` class that makes a GET request to the "/notes" endpoint to list all notes.
    async listNotes() { return this.request("/notes"); }
  • The input schema definition for the "list_notes" tool, which accepts an optional "search" string parameter.
    { name: "list_notes", description: "List all notes in the vault with optional search filter (legacy with search support)", inputSchema: { type: "object", properties: { search: { type: "string", description: "Optional search query to filter notes" }, }, }, },
  • src/index.ts:508-516 (registration)
    The dispatch logic in the `CallToolRequestSchema` handler's switch statement that routes "list_notes" calls to either `searchVault` (if search provided) or `listNotes()`.
    case "list_notes": const searchQuery = args?.search as string; if (searchQuery) { // Use the enhanced search functionality result = await this.client.searchVault(searchQuery, ["content", "filename", "tags"]); } else { result = await this.client.listNotes(); } break;

Latest Blog Posts

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/j-shelfwood/obsidian-local-rest-api-mcp'

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