Obsidian MCP Server
An MCP server for Obsidian vaults that lets an AI client read, search, manage, and analyze notes, canvases, metadata, templates, and periodic notes directly from local or remote vaults.
Read, search, create, update, and delete Markdown notes, including frontmatter.
Get vault statistics, tags, folders, note metadata, and unique metadata-field values.
Build/analyze knowledge graphs, find related notes, and suggest links.
Read/create canvas files and add canvas nodes and edges.
Run Dataview-style queries with filters, sorting, grouping, field selection, and limits.
List/render templates and create notes from templates.
Create and inspect daily, weekly, monthly, and yearly periodic notes; list periodic notes by date range.
Work with multiple local/remote vaults (read-only supported) via a
vaultargument; notes are also exposed as MCP resources.
Supports accessing Obsidian vaults stored in Dropbox through local file system integration
Supports accessing Obsidian vaults stored in iCloud through local file system integration
Provides comprehensive vault access, knowledge graph analysis, note operations, canvas manipulation, dataview queries, template rendering, and periodic notes management for Obsidian knowledge bases
Click on "Deploy 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 Server find notes related to project planning from my knowledge graph"
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.
mcp-server-obsidian
A Model Context Protocol (MCP) server for Obsidian vaults: notes, search, knowledge graph analysis, canvas, Dataview-style queries, templates and periodic notes. It reads the vault folder directly, so it needs no plugin and works whether or not Obsidian is running.
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "mcp-server-obsidian"],
"env": { "OBSIDIAN_VAULT_PATH": "/path/to/your/vault" }
}
}
}This is an independent community project. It is not affiliated with or endorsed by Obsidian. It was called obsidian-mcp-server before version 2.0.0; links to the old repository name redirect here.
š Documentation
Quick Start Guide - Get up and running in 5 minutes
Claude Desktop Setup - Connect to Claude Desktop
Vault Types Explained - Understanding local/remote/API configurations
Testing Guide - Running tests and contributing
API Documentation - Complete tool reference
Changelog - What changed in each release
Security Policy - Reporting a vulnerability
Related MCP server: Obsidian MCP Server
Features
šļø Multi-Vault Support
Local Vaults: Direct file system access; changes made in Obsidian or by a sync tool are picked up automatically
Remote Vaults: HTTP/REST API integration with a self-hosted server, with periodic sync
Seamless switching between multiple vaults, each optionally read-only
š Knowledge Graph
Build and analyze complete knowledge graphs from your notes
Find related notes based on links, tags, and content similarity
Analyze graph structure (hubs, orphan notes, clusters)
Suggest potential links between related notes
Path finding between notes
š Advanced Search
Full-text search across all notes
Filter by tags (including nested tags) and folders
Server-side search for remote vaults that offer it, client-side otherwise
š Note Operations
Read, create, update, and delete notes
Parse Obsidian-flavored markdown with frontmatter
Extract and track internal links, embeds, and tags
Automatic backlink generation, resolving links the way Obsidian does (
[[Plan]]findsProjects/Plan.md)Creating a note never silently replaces an existing one; updating a note keeps its frontmatter
š Analytics
Vault statistics (note count, word count, link count)
Tag usage analysis
Folder structure insights
šÆ Obsidian Integration
Optional integration with community "Local REST API" plugin
Open notes directly in Obsidian app
Execute Obsidian commands
See which note is currently open
Access to Obsidian URI protocol
Note: Requires plugin installation and app running locally. Everything else works without the Obsidian app.
šØ Canvas Support
Read and manipulate Obsidian Canvas files
Create and edit canvas nodes (file, text, link, group)
Manage canvas edges and connections
Safe under concurrent edits: several tool calls against one canvas do not overwrite each other
Programmatic canvas generation
š Dataview Queries
SQL-like querying over your notes
Filter by frontmatter metadata and inline fields
Sort and group results
Field selection
Multiple WHERE conditions, with numbers and dates compared as numbers and dates
Extract metadata from notes (frontmatter + inline fields)
š Template System
Dynamic template rendering with variable substitution
Built-in date/time variables (
{{date}},{{time}},{{weekday}}, etc.)Custom variable support
Default values (
{{variable|default}})Date formatting (
{{date:YYYY-MM-DD}})Frontmatter merging
Create notes from templates programmatically
š Periodic Notes
Daily, weekly, monthly, and yearly notes
Automatic date-based naming and organization
Custom templates for each note type
Date range calculations
List and query periodic notes
Configurable folder structure and formats; daily notes follow Obsidian's own Daily notes settings when nothing is configured
Architecture
The server is built with a clean, modular architecture:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Server Layer ā
ā (Tools, Resources, Protocol Handling) ā
āāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Service Layer ā
ā ⢠Knowledge Graph Service ā
ā ⢠Canvas Service ā
ā ⢠Dataview Service ā
ā ⢠Template Service ā
ā ⢠Periodic Notes Service ā
ā ⢠Configuration Management ā
āāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Connector Layer (Adapters) ā
ā ⢠Local Vault Connector (File System) ā
ā ⢠Remote Vault Connector (HTTP API) ā
āāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Integration Layer ā
ā ⢠Obsidian API Client ā
ā ⢠Markdown Parser ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāKey Design Patterns
Adapter Pattern: Abstract
BaseConnectorinterface allows seamless switching between local and remote vaultsService Layer: Separates business logic (knowledge graph) from data access
Configuration Management: Flexible config from files, environment, or defaults
Always current: Local vaults are re-checked against the folder (file size and modification time) before answering; remote vaults sync periodically
Installation
Requires Node.js 22.13 or newer. There is nothing to install by hand: an MCP client starts the server with npx, which downloads it on first use.
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "mcp-server-obsidian"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/vault"
}
}
}
}With Claude Code:
claude mcp add obsidian -e OBSIDIAN_VAULT_PATH=/path/to/your/vault -- npx -y mcp-server-obsidianSee Claude Desktop Setup for a walk-through. To install the mcp-server-obsidian command instead of using npx:
npm install -g mcp-server-obsidianFrom source
git clone https://github.com/bazylhorsey/mcp-server-obsidian.git
cd mcp-server-obsidian
npm install
npm run build
node dist/index.js --helpConfiguration
One local vault needs no file: set OBSIDIAN_VAULT_PATH as shown above. For several vaults or any other option, create an obsidian-mcp.json configuration file, for example at ~/.obsidian-mcp.json:
{
"vaults": [
{
"name": "my-local-vault",
"type": "local",
"path": "/path/to/obsidian/vault"
},
{
"name": "my-cloud-vault",
"type": "remote",
"url": "https://your-sync-server.com/api",
"apiKey": "your-api-key",
"syncInterval": 60000
}
],
"obsidianApi": {
"restApiUrl": "http://127.0.0.1:27123",
"apiKey": "your-api-key",
"vaultName": "my-local-vault"
}
}Where the configuration is read from
The first of these that exists is used:
the file given with
--config <file>the file named by the
OBSIDIAN_MCP_CONFIGenvironment variableobsidian-mcp.jsonin the current working directoryobsidian-mcp.jsonnext to the server (the folder that containsdist/; useful when running from source)~/.obsidian-mcp.jsonthe environment variables below
MCP clients such as Claude Desktop start the server from a working directory of their own, so option 1, 2 or 5 is the reliable choice there (option 4 too when running from source).
A configuration file that exists but is invalid stops the server with an explanation; it is never skipped in favour of the next location.
Vault options
Option | Vaults | Meaning |
| all | Name used in the |
| all |
|
| local | Vault folder. |
| remote | Base URL of the sync server and its bearer token. |
| remote | Milliseconds between re-reads of the remote vault. |
| all |
|
| local |
|
| local | Minimum time between checks of the folder for outside changes. Default |
| local | Per-vault versions of the top-level sections of the same name. |
Vault Types Explained
Local Vault (type: "local")
Direct filesystem access to your Obsidian vault folder
Fastest performance, always reflects what is on disk
Use this for vaults stored on your computer or mounted network drives
Does not need Obsidian: any folder of Markdown files works, including Foam workspaces
Remote Vault (type: "remote")
Connects to a self-hosted sync server via HTTP/REST API
For vaults hosted on your own cloud infrastructure (not Obsidian's sync service)
Requires a server that implements the small REST contract described in Vault Types Explained
Obsidian API (Optional)
Only needed if you want to control the Obsidian desktop app
Requires the "Local REST API" community plugin in Obsidian
Enables: Opening notes in app, executing commands, reading the active note
NOT used for reading/writing vault content (use local/remote vaults for that)
Configuration via Environment Variables
Alternatively, use environment variables:
# Local vault
export OBSIDIAN_VAULT_PATH="/path/to/vault"
export OBSIDIAN_VAULT_NAME="my-vault"
export OBSIDIAN_READ_ONLY="true" # optional
# Remote vault
export OBSIDIAN_REMOTE_URL="https://your-sync-server.com/api"
export OBSIDIAN_REMOTE_NAME="cloud"
export OBSIDIAN_REMOTE_API_KEY="your-key"
export OBSIDIAN_SYNC_INTERVAL="60000"
# Obsidian API (optional)
export OBSIDIAN_API_URL="http://127.0.0.1:27123"
export OBSIDIAN_API_KEY="your-key"Common Configuration Scenarios
Scenario 1: Just a local vault (most common)
{
"vaults": [
{
"name": "personal",
"type": "local",
"path": "/home/user/Documents/ObsidianVault"
}
]
}Scenario 2: Local vault + iCloud/Dropbox (also use local type)
{
"vaults": [
{
"name": "synced",
"type": "local",
"path": "/home/user/iCloud/ObsidianVault"
}
]
}Note: iCloud/Dropbox sync is handled by the cloud service itself - just point to the synced folder.
Scenario 3: Multiple local vaults
{
"vaults": [
{
"name": "personal",
"type": "local",
"path": "/home/user/Documents/PersonalVault"
},
{
"name": "work",
"type": "local",
"path": "/home/user/Documents/WorkVault",
"readOnly": true
}
]
}Scenario 4: Self-hosted remote server (advanced)
{
"vaults": [
{
"name": "cloud",
"type": "remote",
"url": "https://your-server.com/obsidian-api",
"apiKey": "your-api-key",
"syncInterval": 60000
}
]
}Note: Requires you to implement or deploy a compatible REST API server.
Usage
Start the Server
An MCP client normally starts the server for you. To run it by hand:
OBSIDIAN_VAULT_PATH=/path/to/your/vault npx -y mcp-server-obsidian
npx -y mcp-server-obsidian --config /path/to/obsidian-mcp.jsonFrom source, npm start or node dist/index.js does the same.
npx -y mcp-server-obsidian --help lists the options. The server speaks MCP on stdin/stdout and logs to stderr; it exits when the client disconnects.
Available MCP Tools
The server exposes the following tools through the MCP protocol. Every tool takes a vault argument; it may be omitted when only one vault is configured.
Note Operations
get_note- Retrieve a note by pathsearch_notes- Search notes with filterscreate_note- Create a new note (fails if it exists, unlessoverwriteis set)update_note- Replace the content of an existing note, keeping its frontmatter unless a new one is givendelete_note- Delete a note permanently
Note paths are relative to the vault and may omit .md.
Vault Information
list_vaults- List the configured vaults and their statusget_vault_stats- Get vault statisticslist_tags- List all tagslist_folders- List all folders
Knowledge Graph
get_knowledge_graph- Get complete graph structureget_related_notes- Find related notesanalyze_graph- Analyze graph structuresuggest_links- Suggest potential linksfind_path- Find the shortest chain of links between two notes
Canvas Operations
get_canvas- Read a canvas filecreate_canvas- Create a new empty canvaslist_canvas_files- List all canvas files in vaultadd_canvas_node- Add a node (file, text, link, or group)add_canvas_edge- Add an edge/connection between nodesdelete_canvas_node- Delete a node from canvasdelete_canvas_edge- Delete an edge from canvas
Dataview Queries
dataview_query- Execute Dataview-style queries on notesget_note_metadata- Get metadata for a specific noteget_unique_values- Get all unique values for a field
Template System
list_templates- List all available templatesrender_template- Render a template with variablescreate_from_template- Create a new note from a template
Periodic Notes
create_daily_note- Create or get daily notecreate_weekly_note- Create or get weekly notecreate_monthly_note- Create or get monthly notecreate_yearly_note- Create or get yearly noteget_periodic_note_info- Get info about a periodic notelist_periodic_notes- List periodic notes in a date range
Obsidian App (only when obsidianApi is configured)
open_in_obsidian- Open a note in the Obsidian appget_active_note- Get the note currently open in Obsidianlist_obsidian_commands- List command palette commandsexecute_obsidian_command- Run a command palette command
Canvas, template and periodic-note tools work on files and need a local vault.
A tool that fails reports an MCP tool error (isError) with {"error": "..."}; a tool that succeeds returns its result as JSON.
MCP Resources
All notes are exposed as resources with URIs:
obsidian://{vault-name}/{note-path}Vault names and paths are percent-encoded, so My Vault/Daily Notes/2024-01-15.md is obsidian://My%20Vault/Daily%20Notes/2024-01-15.md.
Development
Project Structure
src/
āāā index.ts # Command-line entry point
āāā server.ts # MCP server: tools and resources
āāā types/ # TypeScript type definitions
ā āāā index.ts # Core types
ā āāā canvas.ts # Canvas types
ā āāā dataview.ts # Dataview types
ā āāā template.ts # Template types
ā āāā periodic.ts # Periodic notes types
āāā connectors/ # Vault connectors (adapters)
ā āāā BaseConnector.ts
ā āāā LocalConnector.ts
ā āāā RemoteConnector.ts
āāā services/ # Business logic services
ā āāā KnowledgeGraph.ts # Knowledge graph analysis
ā āāā CanvasService.ts # Canvas file operations
ā āāā DataviewService.ts # Dataview query processing
ā āāā TemplateService.ts # Template rendering
ā āāā PeriodicNotesService.ts # Periodic notes management
āāā api/ # External API integrations
ā āāā ObsidianAPI.ts
āāā utils/ # Utilities
āāā config.ts # Configuration loading and validation
āāā paths.ts # Vault path safety
āāā frontmatter.ts # YAML frontmatter
āāā markdown.ts # Links, tags, note parsing
āāā links.ts # Link resolution and backlinks
āāā date.ts # Calendar dates and formats
āāā fs.ts # Vault walking, file locks
āāā http.ts # HTTP client
āāā errors.tsBuild
npm run buildWatch Mode
npm run watchChecks
npm run lint # ESLint
npm run typecheck # TypeScript, sources and tests
npm test # Jest
npm run check # all of the above, with coverage, plus a buildReleasing
Set the version in
package.json(npm version X.Y.Z --no-git-tag-version) and inserver.json, and add a## [X.Y.Z] - YYYY-MM-DDsection toCHANGELOG.md.Commit.
Run
npm run release(orscripts/release.sh). It runs the checks, pushes the branch, publishes the package to npm, tags the version and creates the GitHub release with the notes fromCHANGELOG.md.
scripts/release.sh --help lists its options; --dry-run shows what it would do without changing anything. It needs gh and npm to be logged in (gh auth login, npm login), and it can be run again after a failure: steps that already happened are skipped.
To list a release in the MCP Registry once it is on npm, publish server.json with the registry's own tool: mcp-publisher login github, then mcp-publisher publish.
Integration with Obsidian
For advanced features, install the Obsidian Local REST API plugin:
Install the plugin from Obsidian Community Plugins
Enable the plugin and note the API key
Either turn on the plugin's plain HTTP server (port 27123) and use
http://127.0.0.1:27123, or usehttps://127.0.0.1:27124and make Node.js trust the plugin's certificate by settingNODE_EXTRA_CA_CERTSto the certificate file downloaded from the plugin settingsConfigure the
obsidianApisection in your config
With only vaultName set (no restApiUrl), open_in_obsidian returns an obsidian:// link instead of opening the note itself.
Use Cases
For AI Assistants
Access and navigate your Obsidian knowledge base
Create and update notes based on conversations
Find related information across notes
Suggest connections between ideas
For Automation
Automated note creation and organization
Batch processing of notes
Knowledge graph analysis and visualization
Link maintenance and suggestions
For Integrations
Connect Obsidian with other tools via MCP
Build custom workflows
Create dashboards and reports
Sync with external systems
Advanced Features
Canvas Support
Obsidian Canvas is a powerful visual workspace. This server provides full programmatic access to create and manipulate canvas files:
Example: Create a visual mind map
// Create a new canvas
await mcp.callTool('create_canvas', { path: 'diagrams/mindmap.canvas' });
// Add nodes; each call returns the new node, including its id
const idea = await mcp.callTool('add_canvas_node', {
canvasPath: 'diagrams/mindmap.canvas',
nodeType: 'file',
file: 'notes/central-idea.md',
x: 0, y: 0, width: 400, height: 200
});
const concept = await mcp.callTool('add_canvas_node', {
canvasPath: 'diagrams/mindmap.canvas',
nodeType: 'text',
text: '# Key Concept',
x: 500, y: 0, width: 300, height: 150,
color: '1' // Red; "#rrggbb" also works
});
// Connect nodes with edges, using the ids returned above
await mcp.callTool('add_canvas_edge', {
canvasPath: 'diagrams/mindmap.canvas',
fromNode: '<id of the first node>',
toNode: '<id of the second node>',
label: 'relates to'
});Dataview Queries
Query your notes like a database with SQL-like syntax:
Example: Find recent project notes
await mcp.callTool('dataview_query', {
from: '#project',
where: [
{ field: 'status', operator: 'eq', value: 'active' },
{ field: 'modified', operator: 'gte', value: '2024-01-01' }
],
sort: [{ field: 'modified', direction: 'desc' }],
limit: 10
});Example: Group notes by status
await mcp.callTool('dataview_query', {
from: 'projects/',
groupBy: 'status',
select: ['modified', 'tags']
});Each result row is the note's path and title plus its metadata fields. Besides frontmatter and inline fields, every note has path, title, tags, aliases, created and modified.
A date in a filter is a calendar day in the server's time zone. Compared with a time of day it stands for the whole day: modified eq 2024-01-15 matches every note changed on 15 January, and lte includes that day. Give a time (2024-01-15T14:30) to compare to the minute.
Example: Get metadata from inline fields
// Note content: "Status:: In Progress\nPriority:: High"
const metadata = await mcp.callTool('get_note_metadata', {
path: 'projects/my-project.md'
});
// Returns: { Status: 'In Progress', Priority: 'High', ... }Template System
Create reusable templates with variable substitution and automatic date handling:
Example: Create a meeting note template
---
tags: [meeting]
templateVariables:
- name: attendees
type: string
description: Meeting attendees
---
# Meeting: {{title}}
**Date:** {{date}}
**Time:** {{time}}
**Attendees:** {{attendees|TBD}}
## Agenda
-
## Notes
## Action Items
- [ ]Example: Use the template
await mcp.callTool('create_from_template', {
templatePath: 'Templates/meeting.md',
targetPath: 'Meetings/2024-01-15-team-sync.md',
variables: {
attendees: 'Alice, Bob, Charlie'
},
frontmatter: {
project: 'Q1 Planning'
}
});Built-in Variables:
{{date}}- Current date (YYYY-MM-DD){{time}}- Current time (HH:mm){{datetime}}- Current datetime{{year}},{{month}},{{day}}- Date components{{weekday}}- Day of week (Monday, Tuesday, etc.){{week}}- Week number (01-53){{title}},{{filename}},{{folder}}- File context
Formats use Moment.js tokens, as in Obsidian: {{date:dddd, MMMM Do}}, {{time:HH:mm:ss}}. Text in [square brackets] is literal.
The templates folder and the default formats of {{date}} and {{time}} are taken from the vault's own Templates plugin settings, or from a templates section in the config:
{
"templates": {
"folder": "Templates",
"dateFormat": "YYYY-MM-DD",
"timeFormat": "HH:mm"
}
}Periodic Notes
Automatically create and organize daily, weekly, monthly, and yearly notes:
Example: Create today's daily note
await mcp.callTool('create_daily_note', {
vault: 'my-vault'
});
// Creates: Daily Notes/2024-01-15.mdExample: Create this week's note
await mcp.callTool('create_weekly_note', {
vault: 'my-vault',
variables: {
goals: 'Complete project proposal'
}
});
// Creates: Weekly Notes/2024-W03.mdExample: List all monthly notes
await mcp.callTool('list_periodic_notes', {
vault: 'my-vault',
type: 'monthly',
startDate: '2024-01-01',
endDate: '2024-12-31'
});Dates are calendar days in the server's time zone: 2024-01-15 is 15 January wherever the server runs.
Configuration: Periodic notes can be configured with custom folders, formats, and templates, for all vaults at the top level of the config or per vault inside a vault entry:
{
"periodicNotes": {
"daily": {
"folder": "Journal/Daily",
"format": "YYYY-MM-DD",
"template": "Templates/daily-note.md"
},
"weekly": {
"folder": "Journal/Weekly",
"format": "GGGG-[W]WW"
}
}
}Defaults: Daily Notes/YYYY-MM-DD, Weekly Notes/GGGG-[W]WW, Monthly Notes/YYYY-MM, Yearly Notes/YYYY. When daily notes are not configured here and the vault has Obsidian's Daily notes plugin set up, its folder, format and template are used. Week numbers follow ISO 8601; GGGG is the year the week belongs to, so the week of 29 December 2025 is 2026-W01. The locale-dependent tokens ww and gggg (the default of the Periodic Notes plugin) are treated as WW and GGGG, so weeks always start on Monday.
Technical Highlights
Markdown Parsing
Full support for Obsidian-flavored markdown
Frontmatter extraction (YAML, parsed as data only)
Internal link parsing (
[[link]],[[link|alias]],[[link#heading]], relative[text](note.md))Embed detection (
![[embed]])Tag extraction (
#tag,#nested/tag), ignoring code blocks, headings in links and URL fragmentsInline field parsing (
key:: valuepattern)
Canvas Operations
Complete Canvas file format support (JSON-based)
All node types: file, text, link, group
Edge/connection management with customization
Color and styling support
Programmatic canvas generation
Dataview Integration
SQL-like query language for notes
Multiple filter operators (eq, neq, gt, gte, lt, lte, contains, startsWith, endsWith, exists)
Sorting and grouping capabilities
Field selection and projection
Support for frontmatter and inline fields
Nested field access with dot notation
Template System
Variable substitution with
{{variable}}syntaxBuilt-in date/time variables with formatting
Default values:
{{variable|default}}Date formatting:
{{date:YYYY-MM-DD}}Frontmatter merging and manipulation
Template discovery and listing
Periodic Notes
Automatic date-based note generation
Configurable folder structure and naming
Template integration for custom layouts
Date range calculations (daily, weekly, monthly, yearly)
ISO week number support
Flexible date format patterns
Link Resolution
Smart link resolution (file name, path and title based)
Automatic backlink generation
Bidirectional link tracking
Performance
Notes are indexed in memory; only files whose size or modification time changed are read again
Folder checks are spaced out (
rescanIntervalMs)
Security Considerations
Vault boundary: every path a tool receives is resolved inside the selected vault. Absolute paths,
..segments and symbolic links that lead out of the vault are refused (the latter unless the vault setsallowSymlinksOutsideVault).File types: note tools only touch
.mdfiles and canvas tools only.canvasfiles, whatever path they are given.Read-only mode:
"readOnly": trueon a vault disables every tool that changes it.Frontmatter is data: YAML is parsed with a data-only schema; nothing in a note is ever executed.
No silent overwrites: creating a note, a canvas or a note from a template fails if the target exists.
delete_noteis permanent: the file is removed, not moved to a trash folder.Obsidian app tools:
execute_obsidian_commandcan do anything the command palette can. It exists only whenobsidianApiis configured.Remote vaults: Use HTTPS and secure API keys
API keys: Never commit to version control
To report a vulnerability, see the Security Policy.
Requirements
Node.js 22.13 or higher
Access to Obsidian vault(s)
License
MIT. Obsidian is a trademark of its respective owner; this project is independent and not endorsed by it.
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
Related Projects
Obsidian - The knowledge base application
Obsidian Local REST API - REST API plugin
Model Context Protocol - MCP specification
Support
For issues and questions:
GitHub Issues: Create an issue
Documentation: See this README
Built with ā¤ļø for the Obsidian and MCP communities
Available Tools
37 toolsadd_canvas_edgeAdd canvas edgeA
Add an edge between two existing nodes in canvas
Inputs: toNode (required), fromNode (required), canvasPath (required), color, +4 more.
add_canvas_nodeAdd canvas nodeC
Add a node to canvas (file, text, link, or group)
Inputs: x (required), y (required), width (required), height (required), +9 more.
analyze_graphAnalyze knowledge graphBRead-only
Analyze the knowledge graph structure: hubs, orphan notes and clusters
Inputs: vault.
create_canvasCreate canvasA
Create a new empty canvas file. Fails if the canvas already exists.
Inputs: path (required), vault.
create_daily_noteCreate daily noteA
Create a daily note for a specific date, or return the existing one
Inputs: date, vault, variables.
create_from_templateCreate note from templateB
Create a new note from a template. Fails if the target note already exists.
Inputs: targetPath (required), templatePath (required), vault, variables, +1 more.
create_monthly_noteCreate monthly noteA
Create a monthly note for a specific date, or return the existing one
Inputs: date, vault, variables.
create_noteCreate noteB
Create a new note. Fails if a note already exists at the path unless overwrite is true.
Inputs: path (required), content (required), vault, overwrite, +1 more.
create_weekly_noteCreate weekly noteA
Create a weekly note for a specific date, or return the existing one
Inputs: date, vault, variables.
create_yearly_noteCreate yearly noteB
Create a yearly note for a specific date, or return the existing one
Inputs: date, vault, variables.
dataview_queryDataview queryBRead-only
Execute a Dataview-style query on notes: filter, sort, group and select by frontmatter, inline fields (key:: value) and file properties (path, title, tags, created, modified)
Inputs: from, sort, limit, vault, +3 more.
delete_canvas_edgeDelete canvas edgeCDestructive
Delete an edge from canvas
Inputs: edgeId (required), canvasPath (required), vault.
delete_canvas_nodeDelete canvas nodeADestructive
Delete a node from canvas, together with the edges attached to it
Inputs: nodeId (required), canvasPath (required), vault.
delete_noteDelete noteCDestructive
Permanently delete a note
Inputs: path (required), vault.
execute_obsidian_commandExecute Obsidian commandADestructive
Run a command in the Obsidian app, as if chosen from the command palette. Use list_obsidian_commands for the ids.
Inputs: commandId (required).
find_pathFind path between notesBRead-only
Find the shortest chain of links leading from one note to another
Inputs: to (required), from (required), vault, followBacklinks.
get_active_noteGet active noteARead-only
Get the note that is currently open in the Obsidian app
Inputs: no named parameters.
get_canvasGet canvasCRead-only
Get canvas file contents
Inputs: path (required), vault.
get_knowledge_graphGet knowledge graphBRead-only
Get the complete knowledge graph for a vault
Inputs: vault.
get_noteGet noteCRead-only
Get a note by its path
Inputs: path (required), vault.
get_note_metadataGet note metadataARead-only
Get metadata for a specific note: frontmatter, inline fields and file properties
Inputs: path (required), vault.
get_periodic_note_infoGet periodic note infoBRead-only
Get info about a periodic note: its path and whether it exists
Inputs: type (required), date, vault.
get_unique_valuesGet unique valuesBRead-only
Get all unique values for a metadata field
Inputs: field (required), vault.
get_vault_statsGet vault statisticsCRead-only
Get statistics about a vault
Inputs: vault.
list_canvas_filesList canvas filesCRead-only
List all canvas files in vault
Inputs: vault.
list_foldersList foldersCRead-only
List all folders in a vault
Inputs: vault.
list_obsidian_commandsList Obsidian commandsBRead-only
List the commands available in the Obsidian command palette
Inputs: no named parameters.
list_periodic_notesList periodic notesBRead-only
List periodic notes of a specific type, newest first
Inputs: type (required), vault, endDate, startDate.
list_tagsList tagsBRead-only
List all tags in a vault
Inputs: vault.
list_templatesList templatesCRead-only
List all available templates
Inputs: vault.
list_vaultsList vaultsBRead-only
List the configured vaults and whether each one is available
Inputs: no named parameters.
open_in_obsidianOpen note in ObsidianA
Open a note in the running Obsidian app. Without the Local REST API this returns an obsidian:// link to open instead.
Inputs: path (required), newLeaf.
render_templateRender templateARead-only
Render a template with variables, without creating a note
Inputs: templatePath (required), vault, variables, targetPath, +1 more.
search_notesSearch notesCRead-only
Search for notes in a vault by title, path and content
Inputs: query (required), tags, limit, vault, +1 more.
suggest_linksSuggest linksCRead-only
Suggest related notes for linking
Inputs: path (required), limit, vault.
update_noteUpdate noteADestructive
Replace the content of an existing note. The note keeps its frontmatter unless "frontmatter" is given, which then replaces it.
Inputs: path (required), content (required), vault, frontmatter.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 37 tools
Most tools target distinct resources and actions, and descriptions clarify boundaries between similar areas like graph analysis, periodic notes, and canvas editing. A few graph-related tools (get_related_notes, analyze_graph, suggest_links, find_path, get_knowledge_graph) could be confused at a glance, but descriptions reduce ambiguity.
The tool set overwhelmingly uses snake_case and predictable verb_noun or noun-based names (list_vaults, create_note, add_canvas_node). Minor deviations like dataview_query and open_in_obsidian are still readable, but they slightly break the otherwise consistent verb-first pattern.
37 tools is well above the typical well-scoped range and makes the server feel overloaded even though it covers several Obsidian subdomains. The breadth is real, but many operations could likely be consolidated or exposed through fewer parameterized tools.
Core note CRUD, templates, periodic notes, canvas manipulation, graph analysis, commands, and Dataview queries are covered. There are notable gaps such as listing all notes directly, moving/renaming notes, and managing folders beyond listing, but most workflows can be worked around via search or direct note updates.
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Remote MCP gateway for 20-folder Obsidian vaults in TOON format (-36.7% to -45% LLM tokens).
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with Obsidian vaults through MCP, supporting note creation from templates, link management, backlink analysis, tag operations, and automatic Map of Contents generation.111MIT
- AlicenseAqualityDmaintenanceEnables MCP clients to interact with Obsidian vaults via filesystem operations and optional REST API integration for advanced UI commands. It features multi-vault auto-discovery, concurrent-safe file handling, and comprehensive tools for searching, reading, and managing vault content.12MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to remotely access and interact with Obsidian vaults via MCP, supporting note operations, tag management, graph queries, and command execution.6GPL 3.0
- AlicenseNot gradedqualityFmaintenanceEnables MCP-based operations on an Obsidian vault, including reading, editing, and custom script tools.BSD Zero Clause