Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

get_metadata_keys

Retrieve all frontmatter metadata keys from your Obsidian notes to understand available data fields and structure your note organization.

Instructions

Get all available frontmatter keys from notes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'get_metadata_keys' tool in the ObsidianApiClient class. It makes an HTTP request to the '/metadata/keys' endpoint to retrieve available frontmatter keys.
    async getMetadataKeys() { return this.request("/metadata/keys"); }
  • Tool schema definition including name, description, and empty input schema (no parameters required). This is part of the tools list returned by ListToolsRequest.
    name: "get_metadata_keys", description: "Get all available frontmatter keys from notes", inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:522-524 (registration)
    Registration of the tool handler in the central switch statement within the CallToolRequestSchema handler. Delegates execution to the client.getMetadataKeys() method.
    case "get_metadata_keys": result = await this.client.getMetadataKeys(); 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