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.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Obsidian MCP Servercreate a meeting note for today's design review with the team"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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!