Skip to main content
Glama
anpigon

Obsidian Omnisearch MCP Server

by anpigon

read_note

Retrieve the contents of an Obsidian note file by specifying its filepath using a REST API, enabling external applications to access and use note data programmatically.

Instructions

Read and return the contents of an Obsidian note file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filepathYes

Implementation Reference

  • The handler function for the 'read_note' tool, which reads the contents of the specified Obsidian note file and returns it as a string.
    def read_note(filepath: str): """Read and return the contents of an Obsidian note file.""" with open(filepath, "r", encoding="utf-8") as f: content = f.read() return content
  • Registration of the 'read_note' tool using the @mcp.tool() decorator on the FastMCP instance.
    @mcp.tool()
  • Input schema defined by the function signature (filepath: str) and docstring describing the tool's purpose.
    def read_note(filepath: str): """Read and return the contents of an Obsidian note file."""

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/anpigon/mcp-server-obsidian-omnisearch'

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