Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

get_metadata_keys

Retrieve all frontmatter keys from notes in an Obsidian vault via the Local REST API MCP Server, enabling structured metadata access and organization.

Instructions

Get all available frontmatter keys from notes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function in ObsidianApiClient that implements the get_metadata_keys tool logic by fetching from the /metadata/keys API endpoint.
    async getMetadataKeys() { return this.request("/metadata/keys"); }
  • Input schema for the get_metadata_keys tool, defining an empty object (no required parameters).
    inputSchema: { type: "object", properties: {}, },
  • src/index.ts:420-427 (registration)
    Tool registration in the ListTools response, including name, description, and schema.
    { name: "get_metadata_keys", description: "Get all available frontmatter keys from notes", inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:522-524 (registration)
    Tool call handler registration in the switch statement of CallToolRequestSchema handler.
    case "get_metadata_keys": result = await this.client.getMetadataKeys(); break;

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