A production-grade Model Context Protocol (MCP) server that connects to your local vault. Gives Claude full CRUD access to your notes, full-text fuzzy search, backlink resolution, frontmatter parsing, and daily note creation — all over the secure stdio transport.
An open-source MCP server that connects Claude.ai to your Obsidian vault — full CRUD, full-text search, backlinks, daily notes & frontmatter parsing. Built with TypeScript + MCP SDK. Contributions welcome!
A typical search → read → write pattern for AI-augmented note-taking:
User: "Summarize all my notes tagged 'meeting' from this week and create a summary note."
Claude:
1. search_notes({ query: "meeting", tag: "meeting", limit: 20 })
→ finds 5 recent meeting notes
2. read_note({ path: "Meetings/2024-03-13.md" })
read_note({ path: "Meetings/2024-03-14.md" })
read_note({ path: "Meetings/2024-03-15.md" })
→ reads each note's content
3. write_note({
path: "Summaries/Week-2024-03-11.md",
content: "# Week Summary\n\n...",
frontmatter: { tags: ["summary", "weekly"] }
})
→ creates the summary note
Security
Path Traversal Protection
Every file path provided to the server is validated against the vault root:
The path is resolved with path.resolve() against the vault root.
The resolved absolute path is checked to ensure it starts with the vault root directory.
Any path that escapes the vault (e.g., ../../etc/passwd, /absolute/paths) throws a VaultSecurityError and is rejected before any I/O occurs.
Atomic Writes
All write operations use a write-to-temp-then-rename pattern:
Content is written to a .tmp.PID.TIMESTAMP file.
The temp file is atomically renamed to the final path.
On failure, the temp file is cleaned up.
This prevents partial writes from corrupting your notes.
Trash Instead of Delete
delete_note moves notes to .trash/ inside the vault rather than permanently deleting them. Notes can be recovered manually from that folder.
Development
# Run in dev mode with hot reload
npm run dev
# Type check
npm run typecheck
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Lint
npm run lint
# Build for production
npm run build
Contributing
Fork the repository
Create a feature branch: git checkout -b feat/my-feature
Make your changes with tests
Ensure all tests pass: npm test
Ensure no type errors: npm run typecheck
Submit a pull request
Please follow the existing code style and ensure exactOptionalPropertyTypes strict mode is maintained.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
O
Obsidian
shivamsharmxa·14 スター·
An open-source MCP server that connects Claude.ai to your Obsidian vault — full CRUD, full-text search, backlinks, daily notes & frontmatter parsing. Built with TypeScript + MCP SDK. Contributions w
An open-source MCP server that connects Claude.ai to your Obsidian vault — full CRUD, full-text search, backlinks, daily notes & frontmatter parsing. Built with TypeScript + MCP SDK. Contributions welcome!
最終チェックは 2026-10-27 です。 An open-source MCP server that connects Claude.ai to your Obsidian vault — full CRUD, full-text search, backlinks, daily notes & frontmatter parsing. Built with TypeScript + MCP SDK. Contributions welcome!