Skip to main content
Glama

Obsidian MCP REST Server

read-note.ts730 B
import { BaseTool, ToolResponse } from './base-tool'; import { ObsidianAPI } from '../obsidian-api'; export class ReadNoteTool extends BaseTool { constructor(api: ObsidianAPI) { super( api, 'readNote', 'Read the contents of a specific note', { type: 'object', required: ['path'], properties: { path: { type: 'string', description: 'Path to the note to read' } } } ); } async execute(args: { path: string }): Promise<ToolResponse> { const note = await this.api.readNote(args.path); return { content: [ { type: 'text', text: note.content } ] }; } }

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