Back to Home
halbares icon

mcp-obsidian

Verified Safe

by halbares

Overview

Enables AI agents to directly interact (read, search, write) with an Obsidian knowledge vault.

Installation

Run Command
uv --directory /path/to/mcp-obsidian run src/server.py

Environment Variables

  • OBSIDIAN_VAULT_PATH

Security Notes

The `_safe_path` method is implemented to prevent directory traversal attacks by resolving paths and ensuring they remain within the vault. `subprocess` is used to execute `ripgrep` for search functionality; this is a controlled call to an external, well-defined CLI tool, with `--json` output for safer parsing and arguments passed directly (not via shell), mitigating injection risks. No `eval`, hardcoded sensitive secrets, or obvious network risks beyond local file system access are present. A hardcoded fallback path for `OBSIDIAN_VAULT_PATH` is present in `server.py`, but it's a configuration detail, not a security flaw.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2026-01-16

Tags

ObsidianKnowledge ManagementAI IntegrationFile SystemText Search