Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

list_notes

Retrieve all notes from an Obsidian vault with an optional search filter to find specific content, enabling efficient note management and organization.

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

  • Tool dispatch handler for 'list_notes': conditionally calls searchVault if search parameter is provided, otherwise invokes the core listNotes method.
    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;
  • Core handler function in ObsidianApiClient that executes the API request to retrieve the list of notes from the '/notes' endpoint.
    async listNotes() { return this.request("/notes"); }
  • src/index.ts:410-419 (registration)
    Registration of the 'list_notes' tool in the MCP server's tool list, including name, description, and input schema.
    { 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" }, }, }, },
  • Input schema definition for the 'list_notes' tool, defining an optional 'search' string parameter.
    inputSchema: { type: "object", properties: { search: { type: "string", description: "Optional search query to filter notes" }, }, },

Other Tools

Related Tools

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