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 to track recent changes and access updated content quickly.

Instructions

Get recently modified notes, ordered by modification time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of recent notes to return

Implementation Reference

  • The core implementation of the get_recent_notes tool. This method in ObsidianApiClient makes a GET request to the Obsidian REST API endpoint `/vault/notes/recent` with the optional limit parameter to retrieve recently modified notes.
    async getRecentNotes(limit: number = 5) { const params = new URLSearchParams({ limit: limit.toString() }); return this.request(`/vault/notes/recent?${params}`); }
  • src/index.ts:350-359 (registration)
    Registration of the get_recent_notes tool in the list of available tools returned by ListToolsRequestHandler. Includes name, description, and input schema.
    { 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 }, }, }, },
  • MCP tool dispatcher case that handles calls to get_recent_notes by invoking the client method with the provided arguments.
    case "get_recent_notes": result = await this.client.getRecentNotes(args?.limit as number); break;
  • Input schema definition for the get_recent_notes tool, specifying the optional limit parameter.
    inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of recent notes to return", default: 5 }, }, },

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