TM

tcsavage/mcp-obsidian-index

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

9 stars 5 forks 품질 51 트렌드 17

MCP server providing sementic search over Obsidian vaults

개요

An MCP server that provides a semantic search over an Obsidian vault and exposes recent notes as resources. The server exposes recently modified notes in your vaults as resources to MCP clients. - Notes are addressed by an obsidian:// / URL scheme - Notes have the text/markdown media type The server implements one tool: - search-notes: Performs semantic search over indexed notes - --vault: Path to the Obsidian vault (can be specified multiple times) - --database: Path to the local database file (will be created if it doesn't exist) - --reindex: Reindex all notes in the vault (you probably want this every time right now) - --watch: Watch for changes in the vault and update the index accordingly On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json Development/Unpublished Servers Configuration To prepare the package for distribution: 1. Sync dependencies and update lockfile:

README

원문 README의 일부입니다. 원문 보기.

Obsidian Index MCP server

An MCP server that provides a semantic search over an Obsidian vault and exposes recent notes as resources.

Components

Resources

The server exposes recently modified notes in your vaults as resources to MCP clients.

  • Notes are addressed by an obsidian:/// URL scheme
  • Notes have the text/markdown media type

Tools

The server implements one tool:

  • search-notes: Performs semantic search over indexed notes

Run the server

uv run obsidian-index mcp --vault  --database  --reindex --watch
  • --vault: Path to the Obsidian vault (can be specified multiple times)
  • --database: Path to the local database file (will be created if it doesn’t exist)
  • --reindex: Reindex all notes in the vault (you probably want this every time right now)
  • --watch: Watch for changes in the vault and update the index accordingly

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You’ll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory  run obsidian-index
GitHub에서 전체 README 보기

설치

uvx obsidian-index --database <PATH_TO_DATABASE> --vault <PATH_TO_VAULT> --reindex --watch
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →