Obsidian MCP Server
Allows reading, writing, searching, and managing an Obsidian vault as a native tool.
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 Serverread the note 'Project Plan'"
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
An MCP server that lets Claude (and other MCP clients) read, write, search, and manage an Obsidian vault as a native tool. Local filesystem access only, no cloud sync.
Tools
Tool | Description | Read-only |
| Read a note's full markdown content | yes |
| Create or overwrite a note (refuses overwrite unless asked) | no |
| Append markdown to a note, creating it if missing | no |
| List notes in the vault or a folder | yes |
| Case-insensitive full-text search with line context | yes |
| Parse a note's YAML frontmatter as structured data | yes |
| Extract and resolve | yes |
All paths are relative to the vault root. The .md extension is optional.
Paths are validated to stay inside the vault (no directory traversal).
Related MCP server: Obsidian MCP Server
Setup
npm install
npm run buildThe vault location is set with the OBSIDIAN_VAULT_PATH environment variable.
If unset, it defaults to ~/Obsidian.
Configure in an MCP client
Add to your client's MCP config (example for a stdio client):
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/path/to/obsidian-mcp-server/dist/index.js"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/vault"
}
}
}
}Develop
npm run dev # run from source with tsx
npm run typecheck # type-check without emitting
npm run inspect # launch the MCP Inspector against the serverRoadmap
Semantic/vector search (embed notes, query by meaning)
Dataview query passthrough
Template-aware note creation
Backlink graph traversal
License
MIT
Available Tools
7 toolsobsidian_append_to_noteAppend to Obsidian NoteA
Append markdown to the end of a note, creating it if it does not exist. A newline is inserted before appended content when the note already has content.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path for the note | |
| content | Yes | Markdown to append |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations indicate write operation (readOnlyHint=false) and non-destructive (destructiveHint=false), but description adds key details: creation on missing note and newline insertion before appended content if note exists.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences, front-loaded with verb and resource. No redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (2 params, no output schema), the description covers key behaviors. No output schema exists, but the return is implicit (success/error). Additional detail on return format is not strictly necessary.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with descriptions for both parameters. The description adds no further parameter-level detail, though behavioral note about newline insertion is relevant but not parameter-specific.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Append markdown'), the resource ('to a note'), and the behavior ('creating it if it does not exist'). It distinguishes from siblings like obsidian_write_note (which would overwrite) by specifying append behavior.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use when you want to add content to the end of a note, possibly creating it. However, it does not explicitly compare to alternatives or provide when-not-to-use guidance relative to siblings like obsidian_write_note or obsidian_read_note.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
obsidian_list_notesList Obsidian NotesARead-onlyIdempotent
List markdown notes in the vault, optionally scoped to a folder. Hidden folders (.obsidian, .git) are skipped. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Vault-relative folder to list; empty for the whole vault | |
| recursive | No | Recurse into subfolders (default true) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already indicate read-only, idempotent, non-destructive behavior. The description adds value by specifying that hidden folders (.obsidian, .git) are skipped, which is a behavioral detail not captured by annotations. However, it does not describe the output format or pagination.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences with no unnecessary words. It is front-loaded with the main purpose and includes key behavioral details efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given low complexity and good annotations, the description provides a basic understanding. However, it does not specify what the output contains (e.g., note paths, titles) or any ordering/limit information. This leaves the agent with incomplete context for using the tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters. The description adds no extra meaning beyond what is in the schema (just mentions 'optionally scoped to a folder', which is already in the param description).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('List'), the resource ('markdown notes'), and the context ('in the vault, optionally scoped to a folder'). It also notes that hidden folders are skipped. This distinguishes it from siblings like obsidian_read_note or obsidian_search_vault which have different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool is for listing notes, but it does not explicitly state when to use it versus alternatives (e.g., when to use obsidian_search_vault instead). There is no mention of exclusions or comparisons with sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
obsidian_read_frontmatterRead Note FrontmatterARead-onlyIdempotent
Parse and return the YAML frontmatter of a note as structured data, plus a short body preview. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path for the note |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and destructiveHint. Description adds the behavioral detail of a 'short body preview' beyond the annotations, enhancing transparency. No contradictions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence, zero wasted words, front-loaded with action and result. Efficient and to the point.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Adequately describes the tool's function for a simple 1-param read operation with no output schema. Could mention behavior with missing frontmatter, but not critical.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% (path described). Description adds no extra meaning beyond what the schema provides, so baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states it parses YAML frontmatter and returns structured data plus a body preview. Differentiates from siblings like obsidian_read_note (full note) by specifying the subset of content.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Implies use for frontmatter extraction, but does not explicitly state when to use vs. obsidian_read_note or mention alternatives. No exclusion criteria or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
obsidian_read_noteRead Obsidian NoteARead-onlyIdempotent
Read the full markdown content of a note in the vault. Path is relative to the vault root; the .md extension is optional. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path, e.g. 'Projects/Obsidian-MCP-Server.md' |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already provide readOnlyHint=true and destructiveHint=false. The description adds value by specifying path handling (relative path, optional extension) and that it reads 'full markdown content'. It does not cover error behavior (e.g., missing note), but is otherwise transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded with the main action, no filler. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read tool, the description covers the essential aspects: what it does, path format, read-only nature. Given no output schema, it might be slightly incomplete regarding the return format, but for an agent it's sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% for the one parameter 'path'. The description adds the detail that '.md extension is optional', which is not in the schema's description. This provides extra meaning beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Read the full markdown content of a note in the vault', with specific verb and resource. It distinguishes from sibling tools like write, append, list, search, frontmatter, and wikilinks by its focus on reading full content.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context: reading full content, path relative to vault root, .md extension optional. However, it does not explicitly state when to use this tool vs. alternatives like obsidian_read_frontmatter or obsidian_search_vault, leaving the decision to the agent's understanding.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
obsidian_resolve_wikilinksResolve Note WikilinksARead-onlyIdempotent
Extract [[wikilinks]] from a note and resolve each to an actual vault file by basename. Handles [[Note|alias]] and [[Note#heading]]. Unresolved links return target=null. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path for the note |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses all key behaviors: extraction, resolution by basename, handling of alias and heading syntax, return of null for unresolved links, and read-only nature. This aligns with annotations (readOnlyHint, idempotentHint) and adds detail beyond them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with only two sentences, but it conveys all necessary information: the action, the input format, edge cases, and safety. No superfluous text.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with one parameter, no output schema, and clear annotations, the description is fully complete. It covers the full behavior including edge cases (unresolved links) and is sufficient for an AI agent to select and invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 100% description coverage for the single parameter 'path', already defining it as 'Vault-relative path for the note'. The description does not add further parameter semantics, which is acceptable given the high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool extracts and resolves [[wikilinks]] from a note, specifying handling of aliases and headings, and distinguishes it from sibling tools like read/write notes. The verb 'extract and resolve' combined with the resource 'wikilinks' makes the purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context for when to use the tool (to resolve wikilinks in a note). It does not explicitly exclude alternatives, but the narrow scope makes the usage obvious. Sibling tools have different purposes, so no confusion.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
obsidian_search_vaultSearch Obsidian VaultARead-onlyIdempotent
Case-insensitive full-text search across note bodies. Returns matching file path, line number, and the matching line. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matches to return (default 50) | |
| query | Yes | Text to search for | |
| folder | No | Limit search to this vault-relative folder; empty for all |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds 'Read-only,' 'Case-insensitive,' and details the return format (file path, line number, matching line), enhancing transparency beyond annotations. No contradiction.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences with no extraneous words. The first sentence states the core purpose and case-insensitivity; the second describes the output. Information is front-loaded and efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema, the description covers the return format. It does not mention behavior for empty results, edge cases, or performance, but for a straightforward search tool with clear annotations, this is sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
All three parameters have schema descriptions (100% coverage), so baseline is 3. The description adds value by specifying the return format (file path, line number, line), which is not in the schema, aiding the agent in understanding the output structure.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool performs 'case-insensitive full-text search across note bodies.' It specifies the verb 'search' and the resource 'note bodies,' and distinguishes from sibling tools like obsidian_read_note (reading a specific note) and obsidian_write_note (writing).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for full-text search, but does not explicitly list when to avoid or mention alternatives. However, given the sibling tool names, the context is fairly clear that this is for searching, not for reading or writing specific notes.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
obsidian_write_noteWrite Obsidian NoteADestructive
Create a new note or overwrite an existing one. Refuses to overwrite unless overwrite=true. Parent folders are created automatically.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path for the note | |
| content | Yes | Full markdown content to write | |
| overwrite | No | Allow replacing an existing note (default false) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already flag destructiveHint=true. Beyond that, the description adds critical behavioral details: the refusal to overwrite without explicit flag and automatic parent folder creation, which are not obvious from annotations alone.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise at two sentences, front-loading the core purpose. Every sentence adds value without unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the main behaviors (overwrite control, folder creation) but omits any mention of the return value or output, which could be useful for an agent. Despite this, it is largely complete for a simple write tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all parameters are documented. The description does not add new semantic information about parameters beyond what the schema provides, meriting a baseline score of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Create a new note or overwrite an existing one' with a specific verb and resource. It distinguishes from siblings like obsidian_read_note and obsidian_append_to_note by focusing on creation/overwriting.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains when overwrite is allowed ('Refuses to overwrite unless overwrite=true') and mentions automatic parent folder creation. However, it lacks explicit guidance on when to use this tool versus alternatives like append_to_note or read_note.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
7 tool updates
v0.1.0- First observed
obsidian_append_to_note - First observed
obsidian_list_notes - First observed
obsidian_read_frontmatter - First observed
obsidian_read_note - First observed
obsidian_resolve_wikilinks - First observed
obsidian_search_vault - First observed
obsidian_write_note
TDQS
Each tool has a clearly distinct purpose: reading, writing, appending, listing, searching, reading frontmatter, and resolving wikilinks. No overlap or ambiguity between tools.
All tools follow the consistent pattern 'obsidian_verb_noun' in snake_case, e.g., obsidian_read_note, obsidian_write_note. Naming is predictable and uniform.
7 tools is a reasonable count for a note-taking vault server. It covers essential operations, though a delete note tool is missing, which slightly reduces appropriateness.
The set covers reading, writing, appending, listing, searching, frontmatter parsing, and wikilink resolution. Missing delete note functionality is a minor gap but core workflows are achievable.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables interaction between LLMs and Obsidian vaults through the Model Context Protocol, supporting secure file operations, content management, and advanced search capabilities.5,784673Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Obsidian vaults through vector search, vault indexing, and file monitoring. It provides a standardized interface for searching and managing markdown-based personal knowledge management data within the Model Context Protocol.5,7841MIT
- FlicenseNot gradedqualityAmaintenanceEnables semantic search and note management for Obsidian vaults via the Model Context Protocol, allowing LLMs to search, read, and index notes, PDFs, and web pages locally.-
- AlicenseNot gradedqualityDmaintenanceEnables AI to manage Obsidian notes, including creation, reading, updating, deletion, full-text search, listing with filtering, sorting, and metadata extraction via the Model Context Protocol.18MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/justice8096/obsidian-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server