Skip to main content
Glama
justice8096

Obsidian MCP Server

by justice8096

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

obsidian_read_note

Read a note's full markdown content

yes

obsidian_write_note

Create or overwrite a note (refuses overwrite unless asked)

no

obsidian_append_to_note

Append markdown to a note, creating it if missing

no

obsidian_list_notes

List notes in the vault or a folder

yes

obsidian_search_vault

Case-insensitive full-text search with line context

yes

obsidian_read_frontmatter

Parse a note's YAML frontmatter as structured data

yes

obsidian_resolve_wikilinks

Extract and resolve [[wikilinks]] to vault files

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 build

The 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 server

Roadmap

  • Semantic/vector search (embed notes, query by meaning)

  • Dataview query passthrough

  • Template-aware note creation

  • Backlink graph traversal

License

MIT

Available Tools

7 tools
obsidian_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesVault-relative path for the note
contentYesMarkdown to append

TDQS

A4/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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 NotesA
Read-onlyIdempotent

List markdown notes in the vault, optionally scoped to a folder. Hidden folders (.obsidian, .git) are skipped. Read-only.

ParametersJSON Schema
NameRequiredDescriptionDefault
folderNoVault-relative folder to list; empty for the whole vault
recursiveNoRecurse into subfolders (default true)

TDQS

A3.9/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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 FrontmatterA
Read-onlyIdempotent

Parse and return the YAML frontmatter of a note as structured data, plus a short body preview. Read-only.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesVault-relative path for the note

TDQS

A4/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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 NoteA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesVault-relative path, e.g. 'Projects/Obsidian-MCP-Server.md'

TDQS

A4.4/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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_search_vaultSearch Obsidian VaultA
Read-onlyIdempotent

Case-insensitive full-text search across note bodies. Returns matching file path, line number, and the matching line. Read-only.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of matches to return (default 50)
queryYesText to search for
folderNoLimit search to this vault-relative folder; empty for all

TDQS

A4.4/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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 NoteA
Destructive

Create a new note or overwrite an existing one. Refuses to overwrite unless overwrite=true. Parent folders are created automatically.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesVault-relative path for the note
contentYesFull markdown content to write
overwriteNoAllow replacing an existing note (default false)

TDQS

A4.4/5.0
Behavior5/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

  1. 7 tool updatesv0.1.0
    • First observedobsidian_append_to_note
    • First observedobsidian_list_notes
    • First observedobsidian_read_frontmatter
    • First observedobsidian_read_note
    • First observedobsidian_resolve_wikilinks
    • First observedobsidian_search_vault
    • First observedobsidian_write_note

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: reading, writing, appending, listing, searching, reading frontmatter, and resolving wikilinks. No overlap or ambiguity between tools.

Naming Consistency5/5

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.

Tool Count4/5

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.

Completeness4/5

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

ActivityStale
ResponsivenessSyncing

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables interaction between LLMs and Obsidian vaults through the Model Context Protocol, supporting secure file operations, content management, and advanced search capabilities.
    5,784
    673
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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,784
    1
    MIT
  • F
    license
    Not graded
    quality
    A
    maintenance
    Enables 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.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    18
    MIT

Latest Blog Posts

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