Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

get_daily_note

Retrieve a daily note from your Obsidian vault for a specific date, handling common naming conventions and file locations automatically.

Instructions

Get daily note for a specific date. Handles common daily note naming conventions and file locations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate (today, yesterday, tomorrow, or YYYY-MM-DD)today

Implementation Reference

  • The getDailyNote method in the ObsidianApiClient class. This is the core handler that executes the tool logic by making an HTTP request to the Obsidian REST API's daily notes endpoint.
    async getDailyNote(date: string = "today") { const params = new URLSearchParams({ date }); return this.request(`/vault/notes/daily?${params}`); }
  • The tool schema definition in the listTools response, including name, description, and inputSchema with date parameter.
    { name: "get_daily_note", description: "Get daily note for a specific date. Handles common daily note naming conventions and file locations.", inputSchema: { type: "object", properties: { date: { type: "string", description: "Date (today, yesterday, tomorrow, or YYYY-MM-DD)", default: "today" }, }, }, },
  • src/index.ts:484-486 (registration)
    Registration and dispatch in the CallToolRequestSchema handler switch statement that calls the handler method.
    case "get_daily_note": result = await this.client.getDailyNote(args?.date as string); 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