Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

get_note

Retrieve a specific note's content and metadata from your Obsidian vault using its file path. This tool enables access to stored information for reading or processing within the MCP server environment.

Instructions

Get a specific note with its content and metadata (legacy)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the note

Implementation Reference

  • Core handler function in ObsidianApiClient that executes the tool logic by making an HTTP GET request to the Obsidian REST API's /notes/{path} endpoint to retrieve the note content and metadata.
    async getNote(path: string) { return this.request(`/notes/${encodeURIComponent(path)}`); }
  • src/index.ts:399-409 (registration)
    Registration of the 'get_note' tool in the ListToolsRequestHandler response, including name, description, and input schema.
    { name: "get_note", description: "Get a specific note with its content and metadata (legacy)", inputSchema: { type: "object", properties: { path: { type: "string", description: "Path to the note" }, }, required: ["path"], }, },
  • Input schema definition for the 'get_note' tool, specifying the required 'path' parameter.
    inputSchema: { type: "object", properties: { path: { type: "string", description: "Path to the note" }, }, required: ["path"], },
  • Dispatch routing in the CallToolRequestHandler switch statement that invokes the getNote handler for 'get_note' tool calls.
    case "get_note": result = await this.client.getNote(args?.path 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