Obsidian MCP Server
आपका AI एजेंट आपके Obsidian vault में नोट्स, tags और frontmatter पढ़, लिख, खोज और संपादित कर सकता है।
702 GitHub स्टारद्वारा cyanheadsलाइसेंस Apache-2.0अपडेट 23 दिन पहले
कैसे इंस्टॉल करें
यह MCP लोकल है: आपके कंप्यूटर पर चलता है।
यह PC पर लगे ऐप्स में काम करता है (Claude Desktop, Claude Code, Cursor, VS Code…)। अपना ऐप चुनें:
टर्मिनल में पेस्ट करें:
claude mcp add obsidian -e OBSIDIAN_API_KEY="<आपका मान>" -- npx -y obsidian-mcp-server
क्या भरना है
| नाम | यह क्या है | ज़रूरी |
|---|---|---|
OBSIDIAN_API_KEY | Bearer token for the Obsidian Local REST API plugin (Settings → Community Plugins → Local REST API). | हाँ |
OBSIDIAN_BASE_URL | Base URL of the Obsidian Local REST API. Default: http://127.0.0.1:27123 (enable "Non-encrypted (HTTP) Server" in plugin settings). Use https://127.0.0.1:27124 for the always-on HTTPS port (self-signed cert; pair with OBSIDIAN_VERIFY_SSL=false). | नहीं |
OBSIDIAN_VERIFY_SSL | Whether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert. | नहीं |
OBSIDIAN_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds. | नहीं |
OBSIDIAN_ENABLE_COMMANDS | Opt-in flag for the command-palette pair (obsidian_list_commands + obsidian_execute_command). Off by default — Obsidian commands are opaque and can be destructive. | नहीं |
OBSIDIAN_READ_PATHS | Optional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; backslashes read as slashes, repeated and trailing slashes and '.' segments dropped, and names normalized to Unicode NFC; an entry naming the vault root ('.') is rejected at startup. Unset = full vault. Write paths are implicitly readable. Example: 'public/,projects/'. | नहीं |
OBSIDIAN_WRITE_PATHS | Optional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault, or the read scope when reads are restricted; paths in OBSIDIAN_DENY_PATHS stay denied. Example: 'projects/,scratch/'. | नहीं |
OBSIDIAN_DENY_PATHS | Optional comma-separated vault-relative paths withheld from reads and writes. Same syntax as OBSIDIAN_READ_PATHS. Wins over both allowlists; denied paths are left out of listings, search results, and tag counts. Unset = nothing denied. Example: 'private/,journal/therapy/'. | नहीं |
OBSIDIAN_READ_ONLY | Global read-only kill switch. When true, every write is denied regardless of OBSIDIAN_WRITE_PATHS, and the command-palette pair is suppressed (commands can mutate). Useful for shared or public-facing deployments. | नहीं |
OBSIDIAN_DELETE_ELICITATION | Opt-in delete confirmation. When true, obsidian_delete_note asks the user to confirm each delete through an elicitation round (the client must support elicitation), and HTTP startup requires a stateful session unless OBSIDIAN_READ_ONLY=true disables the tool. Off by default — the delete runs on the first call, bounded by OBSIDIAN_WRITE_PATHS and OBSIDIAN_READ_ONLY. | नहीं |
OBSIDIAN_OMNISEARCH_URL | Override URL for the Omnisearch plugin HTTP server. Unset derives from OBSIDIAN_BASE_URL host with port 51361. Required only if the Omnisearch plugin is not on the default port. | नहीं |
MCP_LOG_LEVEL | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). | नहीं |
तैयार! अब टेस्ट करें
ऐप दोबारा खोलें और इनमें से कोई एक अनुरोध चैट में पेस्ट करें:
आज के action items मेरे daily नोट के Tasks heading के नीचे जोड़ो।
मेरे सबसे ज़्यादा इस्तेमाल होने वाले tags की सूची दो।
यह क्या है
यह सर्वर Obsidian Local REST API प्लगिन के ज़रिए आपके Obsidian vault से एजेंट को जोड़ता है। एजेंट नोट्स पढ़ और खोज सकता है, बना या संपादित कर सकता है, और किसी heading, block या frontmatter फ़ील्ड को उसी जगह बदल सकता है। यह tags भी संभालता है। आप सीमित कर सकते हैं कि वह कौन से फ़ोल्डर पढ़े या लिखे।
यह क्या कर सकता है
obsidian_get_note: नोट पढ़ेंobsidian_search_notes: टेक्स्ट, JSONLogic या Omnisearch से खोजेंobsidian_write_note: नोट या एक सेक्शन बनाएँ या बदलेंobsidian_append_to_noteऔरobsidian_patch_note: किसी heading या फ़ील्ड में सामग्री जोड़ेंobsidian_replace_in_note: नोट के अंदर खोजें और बदलेंobsidian_manage_frontmatterऔरobsidian_manage_tags: frontmatter और tags संपादित करेंobsidian_list_notesऔरobsidian_list_tags: vault ब्राउज़ करें
कब इस्तेमाल करें
- ›जब आप चाहते हैं कि एजेंट मीटिंग नोट्स सही heading के नीचे जोड़े।
- ›जब आप कई नोट्स को एक साथ tag या खोजना चाहते हैं।
- ›जब आप daily या periodic नोट अपडेट करवाना चाहते हैं।
आपको क्या चाहिए
साथ में जमने वाली skills
MCP या skill?
MCP एजेंट को हाथ देता है। Skill सिखाती है कि उन्हें सही तरह कैसे इस्तेमाल करें। साथ में नतीजा बेहतर आता है और टोकन कम लगते हैं।
obsidianआपके एजेंट को आपके Obsidian vault में नोट्स पढ़ने, खोजने, बनाने और बदलने देती है, जिसमें नोट्स के बीच लिंक जोड़ना भी शामिल है।cli-anything-obsidianयह आपके एजेंट को Local REST API प्लगइन के ज़रिए आपके Obsidian vault में नोट्स पढ़ने, बनाने, अपडेट करने, खोजने और जोड़ने देती है।obsidianयह आपके एजेंट को आपके Obsidian vault में नोट्स पढ़ने, खोजने, बनाने, बदलने और व्यवस्थित करने में मदद करती है, tasks, links और properties सहित।अक्सर पूछे जाने वाले सवाल
क्या यह मुफ़्त और open source है?
रिपॉज़िटरी में लाइसेंस फ़ाइल है और कोई कीमत नहीं लिखी गई है।
इसे कौन सा प्लगिन चाहिए?
Obsidian Local REST API प्लगिन।
क्या मैं सीमित कर सकता हूँ कि यह क्या छू सकता है?
हाँ। OBSIDIAN_READ_PATHS, OBSIDIAN_WRITE_PATHS, OBSIDIAN_DENY_PATHS और OBSIDIAN_READ_ONLY सीमाएँ तय करते हैं।
क्या यह नोट हटा सकता है?
हाँ, और डिफ़ॉल्ट रूप से बिना पुष्टि के। आपकी पुष्टि ज़रूरी करने के लिए OBSIDIAN_DELETE_ELICITATION=true सेट करें।
क्या यह Obsidian कमांड चला सकता है?
केवल तब जब आप OBSIDIAN_ENABLE_COMMANDS चालू करें।
कौन से transports समर्थित हैं?
STDIO या Streamable HTTP।
अगर काम न करे
- ›जाँचें कि Obsidian खुला है और Local REST API प्लगिन चालू है।
- ›जाँचें कि OBSIDIAN_API_KEY प्लगिन सेटिंग की key से मेल खाता है।
- ›प्लगिन की पहुँच और authentication जाँचने के लिए obsidian://status संसाधन पढ़ें।
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।