Provides comprehensive tools for managing Obsidian vaults, including note creation and editing, canvas manipulation, dataview queries, graph analysis, task management, metadata operations, attachment handling, and vault maintenance. Supports 121+ tools for automating note-taking, building knowledge bases, and organizing information.
Obsidian MCP Server
Connect your Obsidian vault to Amp and supercharge your note-taking with AI
Use Amp (Sourcegraph's AI coding assistant) to automatically create, update, and manage notes in your Obsidian vault. Perfect for documentation, learning logs, code snippets, and building a knowledge base as you code.
🚀 Now with 121 comprehensive tools for complete Obsidian automation!
✨ Features
🎯 What's New in v4.0
🎨 Canvas Integration - Create and manipulate Obsidian Canvas boards programmatically
📊 Dataview Queries - Execute database-like queries on your vault
🌐 Graph Analysis - Analyze knowledge networks, find clusters, calculate centrality
🔗 Advanced URI Generation - Create deep links to Obsidian (obsidian:// URIs)
📎 Enhanced Attachments - Better media file management
🔍 Advanced Search & Replace - Regex search, frontmatter search, vault-wide refactoring
🏷️ Enhanced Metadata - Advanced frontmatter manipulation and batch updates
📚 Structured Templates - Pre-formatted note types (books, people, meetings, projects)
✅ Enhanced Task Management - Filter by criteria, add metadata, generate reports
📐 Advanced Formatting - Callouts, tables, TOC, Mermaid diagrams, LaTeX math
🔧 Vault Maintenance - Health analysis, find duplicates, cleanup automation
🔄 Cross-Note Analysis - Compare, merge, split notes intelligently
Core Capabilities
🤖 AI-Powered Note Creation - Let Amp create structured notes for you
📝 Code Snippet Library - Automatically save code with syntax highlighting
🧠 Knowledge Graphs - Build interconnected notes with automatic linking
📊 Thread Summaries - Save your Amp conversations for future reference
🔍 Vault Search - Search notes by content, tags, metadata, regex
🏷️ Smart Tagging - Automatic categorization and organization
🔗 Cross-Referencing - Link related notes automatically
📈 Analytics - Vault statistics, health reports, insights
💾 Export Everything - PDF, HTML, JSON, CSV, Markdown bundles
🚀 Quick Start
Prerequisites
Installation
Clone the repository:
git clone https://github.com/Kynlos/Obsidian-MCP.git cd Obsidian-MCPInstall dependencies:
npm installRun the setup wizard:
npm run setupThe setup wizard will:
Prompt you for your Obsidian vault path
Create a
.envconfiguration fileConfigure Amp automatically for your platform (Windows/macOS/Linux)
Restart Amp
Test it:
npm testOr in Amp:
You: "Create a note in Obsidian called 'Test' with content 'Hello from Amp!'"
⚙️ Configuration
Workspace-Relative Vaults (New!)
By default, vaults are created in your current workspace directory - no hardcoded paths needed!
Automatic Setup (Recommended)
Run the setup wizard to configure everything automatically:
Manual Setup
Copy
.env.exampleto.env:cp .env.example .envConfigure Amp by editing the config file:
Windows:
%APPDATA%\Amp\mcp-config.jsonmacOS/Linux:
~/.config/amp/mcp-config.json
Add this configuration:
{ "mcpServers": { "obsidian": { "command": "node", "args": ["/absolute/path/to/Obsidian-MCP/index.js"] } } }Restart Amp
🛠️ Available Tools
The Obsidian MCP provides 121 powerful tools organized into 14 categories:
🎨 Canvas Integration (6 tools)
Create and manipulate Obsidian Canvas files (JSON-based visual boards).
Tool | Description |
| Create new canvas JSON files |
| Add text/note/media cards to canvas |
| Connect cards with lines/arrows |
| Group cards together |
| Parse and read canvas structure |
| Modify existing canvas cards |
📊 Dataview Query Execution (3 tools)
Execute database-like queries on your vault (simplified implementation).
Tool | Description |
| Run Dataview DQL queries and return results |
| Insert dataview query blocks into notes |
| Check if query syntax is valid |
🌐 Graph Analysis (5 tools)
Analyze your knowledge network programmatically.
Tool | Description |
| Build graph structure from vault links (nodes/edges) |
| Identify groups of related notes |
| Find most connected/important notes |
| Find link path between two notes |
| Notes with few/no connections |
🔗 Advanced URI Generation (4 tools)
Create obsidian:// deep links for automation and external integrations.
Tool | Description |
| Create obsidian:// URIs for deep linking |
| Generate URI to open workspace |
| Generate URI to append text to note |
| Generate URI to search vault |
📎 Attachments & Media Management (5 tools)
Manage media files and attachments in your vault.
Tool | Description |
| List all media files in vault |
| Copy external file into vault attachments folder |
| Remove attachment files |
| Find unused media files |
| Find which notes use an attachment |
🔍 Advanced Search & Replace (4 tools)
Powerful search and refactoring tools.
Tool | Description |
| Find and replace with regex across vault |
| Search YAML frontmatter specifically |
| Find specific link patterns (wiki vs markdown) |
| Batch find/replace across multiple notes |
🏷️ Enhanced Metadata/Frontmatter (6 tools)
Advanced YAML frontmatter manipulation.
Tool | Description |
| Edit specific YAML field without rewriting note |
| Update property across multiple notes |
| Check frontmatter against schema |
| Get all unique property keys in vault |
| Rename property across all notes |
| List all values for a property |
📚 Structured Content Templates (5 tools)
Create common note types with pre-formatted structures.
Tool | Description |
| Template with variable substitution |
| Structured book/literature note |
| Person/contact note structure |
| Meeting notes with agenda/action items |
| Project planning note structure |
✅ Enhanced Task Management (5 tools)
Advanced task data management beyond basic TODO lists.
Tool | Description |
| Filter tasks by status, date, priority, tags |
| Relocate task to different note |
| Add due date, priority, tags to task |
| Generate task summary/report |
| Tasks waiting on dependencies |
📐 Advanced Markdown Formatting (6 tools)
Automate tedious formatting tasks.
Tool | Description |
| Wrap text in callout blocks |
| Generate tables programmatically |
| Generate TOC from headings |
| Generate Mermaid diagrams from data |
| Add LaTeX math blocks |
| Fix inconsistent markdown formatting |
🔧 Vault Maintenance (5 tools)
Keep your vault healthy and organized.
Tool | Description |
| Detect similar/duplicate content |
| List notes with no content |
| Notes exceeding size threshold |
| Overall vault statistics/issues |
| Remove/fix broken links |
🔄 Cross-Note Analysis (5 tools)
Compare, refactor, and reorganize notes.
Tool | Description |
| Diff two notes |
| Content similarity analysis |
| Compare note versions over time |
| Smart merge with options |
| Break large note into smaller ones |
📝 Core Note Creation (4 tools)
Tool | Description |
| Save code with syntax highlighting and metadata |
| Save AI conversation summaries with key insights |
| Create general knowledge notes with tags |
| Create daily notes with optional custom templates |
✏️ Core Note Management (5 tools)
Tool | Description |
| Read the full content of a note |
| Update note content (preserves metadata by default) |
| Delete a note from the vault |
| Append content to the end of an existing note |
| Rename a note file |
See complete tool documentation in AGENTS.md
💡 Usage Examples
Create a Canvas Board
Execute Dataview Query
Generate Obsidian URIs
Analyze Vault Structure
Create Structured Notes
Advanced Formatting
🔧 Available Commands
Command | Description |
| Install dependencies |
| Run interactive setup wizard |
| Test configuration |
| Start the MCP server (for debugging) |
🧪 Testing
Verify your setup is working correctly:
This will check:
.envfile exists and is validObsidian vault path is accessible
Amp configuration is correct
All dependencies are installed
Node.js version is compatible
📊 Version History
v4.0.0 (2025-11-13) - MAJOR UPDATE: Added 59 new tools (Canvas, Dataview, Graph Analysis, URIs, and much more!)
v3.1.0 - Export features (PDF, HTML, JSON, CSV)
v3.0.0 - Template system and advanced search
v2.0.0 - Task management and analytics
v1.0.0 - Initial release
🎯 Platform Support
This MCP works on:
✅ Windows (10, 11)
✅ macOS (10.15+)
✅ Linux (Ubuntu, Debian, Fedora, etc.)
Automatic configuration paths:
Windows:
%APPDATA%\Amp\mcp-config.jsonmacOS/Linux:
~/.config/amp/mcp-config.json
📚 Documentation
AGENTS.md - Complete tool reference for AI agents
SETUP.md - Detailed setup instructions
EXAMPLES.md - Real-world usage examples
CONTRIBUTING.md - How to contribute
CHANGELOG.md - Version history
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
Repository: https://github.com/Kynlos/Obsidian-MCP
Amp: https://ampcode.com/
Obsidian: https://obsidian.md/
MCP Specification: https://modelcontextprotocol.io/
🙏 Acknowledgments
Kynlo for creating the original Obsidian MCP Server
Sourcegraph for Amp
Obsidian team for the amazing note-taking app
Made with ❤️ for the Amp and Obsidian communities
⭐ Star this repo if you find it useful!