Skip to main content
Glama

Obsidian MCP REST Server

list-notes.ts758 B
import { BaseTool, ToolResponse } from './base-tool'; import { ObsidianAPI } from '../obsidian-api'; export class ListNotesTool extends BaseTool { constructor(api: ObsidianAPI) { super( api, 'listNotes', 'List all notes in the vault or a specific folder', { type: 'object', properties: { folder: { type: 'string', description: 'Optional folder path to list notes from' } } } ); } async execute(args: { folder?: string }): Promise<ToolResponse> { const notes = await this.api.listNotes(args.folder); return { content: [ { type: 'text', text: JSON.stringify(notes, 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