Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

get_recent_notes

Retrieve recently modified notes from your Obsidian vault, sorted by modification time, and specify the number of notes to fetch for efficient note management.

Instructions

Get recently modified notes, ordered by modification time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of recent notes to return

Implementation Reference

  • The core handler function in ObsidianApiClient that fetches recent notes by making an HTTP request to the Obsidian REST API endpoint `/vault/notes/recent` with the specified limit.
    async getRecentNotes(limit: number = 5) { const params = new URLSearchParams({ limit: limit.toString() }); return this.request(`/vault/notes/recent?${params}`); }
  • Defines the input schema, name, and description for the `get_recent_notes` tool in the list of available tools.
    name: "get_recent_notes", description: "Get recently modified notes, ordered by modification time", inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of recent notes to return", default: 5 }, }, }, },
  • src/index.ts:488-490 (registration)
    Registers the tool call handling by routing `get_recent_notes` calls to the client handler method.
    case "get_recent_notes": result = await this.client.getRecentNotes(args?.limit as number); break;

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