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 via a local REST API.

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 handler function in ObsidianApiClient that implements the core logic of fetching the daily note by making an API request to `/vault/notes/daily` endpoint with the specified date.
    async getDailyNote(date: string = "today") { const params = new URLSearchParams({ date }); return this.request(`/vault/notes/daily?${params}`); }
  • Input schema definition for the get_daily_note tool, specifying an optional 'date' parameter.
    inputSchema: { type: "object", properties: { date: { type: "string", description: "Date (today, yesterday, tomorrow, or YYYY-MM-DD)", default: "today" }, }, },
  • src/index.ts:484-486 (registration)
    Tool execution dispatcher in the CallToolRequestSchema handler that routes calls to the getDailyNote method.
    case "get_daily_note": result = await this.client.getDailyNote(args?.date as string); break;
  • src/index.ts:340-349 (registration)
    Tool registration in the ListToolsRequestSchema response, defining name, description, and schema.
    { 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" }, }, }, },

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