Skip to main content
Glama

Obsidian MCP REST Server

get-metadata.ts800 B
import { ToolResponse } from '../types'; import { BaseTool } from './base-tool'; import { ObsidianAPI } from '../obsidian-api'; export class GetMetadataTool extends BaseTool { constructor(api: ObsidianAPI) { super( api, 'getMetadata', 'Get metadata for a specific note', { type: 'object', required: ['path'], properties: { path: { type: 'string', description: 'Path to the note to get metadata from' } } } ); } async execute(args: { path: string }): Promise<ToolResponse> { const metadata = await this.api.getMetadata(args.path); return { content: [ { type: 'text', text: JSON.stringify(metadata, null, 2) } ] }; } }

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/PublikPrinciple/obsidian-mcp-rest'

If you have feedback or need assistance with the MCP directory API, please join our Discord server