Skip to main content
Glama
Another bloated Obsidian MCP Server

Another bloated Obsidian MCP Server

by diegorv

Another bloated Obsidian MCP Server

CAUTION

🔴🔴🔴 EXPERIMENTAL PROJECT - DO NOT USE IN PRODUCTION 🔴🔴🔴

This is an experimental project created primarily through AI-assisted development using Claude Code, with minimal human intervention. It is intended solely for testing and learning purposes.

This project should NOT be used for:

  • Production environments

  • Critical data or important vaults

  • Any scenario where data integrity is essential

Use at your own risk. The code may contain bugs, security vulnerabilities, or unexpected behaviors.

Support notice: This project will likely not receive attention for bugs or issues reported by third parties. If you're interested in contributing or reporting issues, you may not get a response as this project may not be maintained long-term. However, this could change after the experimentation phase.


A Model Context Protocol (MCP) server that provides AI assistants with secure access to Obsidian vaults. Enables reading, writing, searching, and managing notes without requiring Obsidian to be running.

Features

  • Direct filesystem access - Works without Obsidian running

  • Multi-vault support - Manage multiple vaults simultaneously

  • Configurable tool groups - Enable only the features you need

  • Full CRUD operations - Create, read, update, delete notes

  • YAML frontmatter - Parse and manipulate note metadata

  • Tag management - Add, remove, and search by tags

  • Link analysis - Backlinks, outlinks, orphans, broken links, link graph

  • Daily notes - Create and manage daily journal entries

  • Templates - Apply templates with variable substitution

  • Obsidian Bases - Query dynamic note views based on filters

  • Batch operations - Process multiple notes efficiently

  • Attachment tracking - List and find unused attachments

  • Backup system - Create and restore note backups

  • Security-first - Path traversal protection, symlink escape prevention

Related MCP server: Obsidian MCP

Requirements

  • Node.js 18+

  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/yourusername/obsidian-mcp-server.git
cd obsidian-mcp-server

# Install dependencies
npm install
# or
yarn install

# Build (optional - can run directly with tsx)
npm run build

Quick Start

# Start the server with a vault
npm start /path/to/your/vault

# With specific tool groups
npm start /path/to/your/vault --tools=vault,notes,search

# With a custom vault name
npm start /path/to/your/vault my-vault

Configuration

# Add the MCP server
claude mcp add obsidian \
  --transport stdio \
  --scope user \
  -- npx tsx /path/to/obsidian-mcp-server/src/index.ts /path/to/vault

# With specific tool groups
claude mcp add obsidian \
  --transport stdio \
  --scope user \
  -- npx tsx /path/to/obsidian-mcp-server/src/index.ts /path/to/vault --tools=vault,notes,search

Scope options:

  • user - Available in all projects (saved in ~/.claude.json)

  • local - Current project only

  • project - Shared with team (saved in .mcp.json)

Useful commands:

claude mcp list          # List configured servers
claude mcp get obsidian  # View server details
claude mcp remove obsidian  # Remove server

Option 2: Manual Configuration

Edit ~/.claude.json:

{
  "mcpServers": {
    "obsidian": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "tsx",
        "/path/to/obsidian-mcp-server/src/index.ts",
        "/path/to/your/vault",
        "--tools=vault,notes,search"
      ]
    }
  }
}

Option 3: Claude Desktop App

Edit the config file at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": [
        "tsx",
        "/path/to/obsidian-mcp-server/src/index.ts",
        "/path/to/your/vault",
        "--tools=vault,notes,search"
      ]
    }
  }
}

Tool Groups

Group

Tools

Description

vault

list_vaults, set_active_vault, register_vault

Vault management

notes

list_notes, read_note, create_note, update_note, delete_note, rename_note, move_note

Note CRUD operations

search

search_vault

Full-text search

frontmatter

get_frontmatter, update_frontmatter, remove_frontmatter_field, add_to_array_field, remove_from_array_field

YAML metadata

tags

list_tags, add_tag, remove_tag, search_by_tag

Tag management

links

get_outlinks, get_backlinks, find_orphans, find_broken_links, get_link_graph

Link analysis

daily

get_daily_note, create_daily_note, list_daily_notes, append_to_daily

Daily notes

templates

list_templates, get_template, apply_template, create_from_template

Template system

bases

list_bases, get_base, query_base

Obsidian Bases

batch

batch_move, batch_delete, batch_update_frontmatter, batch_add_tag, batch_remove_tag, batch_read_notes

Batch operations

attachments

list_attachments, get_attachment_info, find_unused_attachments, get_attachments_in_note

Attachment management

backup

create_note_backup, list_backups, restore_backup, delete_old_backups

Backup system

Special values:

  • all - Enable all tool groups (default)

  • none - Disable all tools (for testing)

Configuration Examples

Read-Only Access

--tools=vault,notes,search

Safe for exploration without modifying notes.

Daily Productivity

--tools=vault,notes,search,daily,tags

Quick capture, daily notes, and tag organization.

Knowledge Analysis

--tools=vault,notes,search,links,tags

Explore connections, find orphans, analyze the knowledge graph.

Content Creation

--tools=vault,notes,search,templates,frontmatter

Create notes from templates, manage metadata.

Full Access

--tools=all

All features enabled.

Multi-Vault Setup

Create ~/.obsidian-mcp/config.json:

{
  "vaults": {
    "personal": "/Users/you/Obsidian/Personal",
    "work": "/Users/you/Obsidian/Work",
    "research": "/Users/you/Obsidian/Research"
  },
  "defaultVault": "personal"
}

Switch between vaults using set_active_vault tool.

Environment Variables

Variable

Description

OBSIDIAN_MCP_TOOLS

Comma-separated list of tool groups

LOG_LEVEL

Logging level: debug, info, warn, error

CLI Reference

# Show help
npm start -- --help

# Start with vault
npm start /path/to/vault [vault-name] [--tools=groups]

# Examples
npm start /path/to/vault                    # All tools
npm start /path/to/vault my-vault           # With custom name
npm start /path/to/vault --tools=vault,notes  # Specific groups

Troubleshooting

Server doesn't connect

  1. Verify the vault path exists and is absolute

  2. Check Node.js version: node --version (requires 18+)

  3. Test manually: npm start /path/to/vault

  4. For Claude Code: use /mcp to check status and errors

  5. For Claude Desktop: check logs in ~/Library/Logs/Claude/mcp*.log

"Tool X is not enabled" error

The tool you're trying to use is not in your enabled groups. Check your --tools configuration and add the required group.

Permission errors

Ensure the user running the MCP server has read/write access to the vault directory.

Path not found

  • Use absolute paths, not relative

  • Ensure the vault contains a .obsidian folder

  • Check for typos in the path

Development

# Development mode (auto-reload)
npm run dev

# Build
npm run build

# Type check
npx tsc --noEmit

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

Documentation

Security

This server implements multiple security measures:

  • Path validation - Prevents path traversal attacks

  • Symlink protection - Blocks symlink escape attempts

  • Input validation - All inputs validated with Zod schemas

  • Reserved name blocking - Prevents system file conflicts

See SECURITY.md for details.

Inspiration

This project is inspired by mcp-obsidian.

License

MIT

Available Tools

50 tools
add_tagA

Add a tag to a note's frontmatter. Creates the tags array if it doesn't exist.

Inputs: tag (required), path (required).

add_to_array_fieldA

Add values to an array field in frontmatter (e.g., tags, aliases). Creates the field if it does not exist.

Inputs: path (required), field (required), values (required), createIfMissing.

append_to_dailyA

Append content to today's daily note (or a specific date). Creates the note if needed.

Inputs: content (required), date.

apply_templateA

Apply a template with variables and return the processed content without creating a file. Supports {{title}}, {{date}}, {{date:FORMAT}}, {{time}}, and custom {{variable}} placeholders.

Inputs: name (required), title, variables.

batch_add_tagA

Add tags to multiple notes at once. Adds to frontmatter tags array.

Inputs: tags (required), paths (required).

batch_deleteA

Delete multiple notes at once. Requires confirmation. Returns per-note success/failure results.

Inputs: paths (required), confirm (required).

batch_moveA

Move multiple notes to a destination folder at once. Returns per-note success/failure results.

Inputs: paths (required), destinationFolder (required), updateLinks.

batch_read_notesA

Read multiple notes at once (max 10). Returns content and frontmatter for each note.

Inputs: paths (required), includeContent, includeFrontmatter.

batch_remove_tagA

Remove tags from multiple notes at once. Removes from frontmatter tags array.

Inputs: tags (required), paths (required).

batch_update_frontmatterA

Update frontmatter of multiple notes at once. Can merge or replace frontmatter.

Inputs: paths (required), updates (required), replace.

create_daily_noteA

Create a daily note for a specific date if it does not exist

Inputs: date.

create_from_templateA

Create a new note from a template with variable substitution

Inputs: path (required), template (required), title, variables.

create_noteA

Create a new markdown note in the vault. Parent directories will be created if needed. Optionally include YAML frontmatter.

Inputs: path (required), content (required), frontmatter.

create_note_backupA

Create a backup copy of a note. Stores in .backups folder with timestamp.

Inputs: path (required), backupFolder.

delete_noteA

Permanently delete a note from the vault. This action cannot be undone.

Inputs: path (required).

delete_old_backupsB

Delete old backups, keeping only the most recent ones per note.

Inputs: dryRun, keepLast, backupFolder.

find_orphansA

Find all orphan notes (notes with no incoming or outgoing links)

Inputs: no named parameters.

find_unused_attachmentsA

Find attachments that are not referenced by any note. Useful for cleaning up unused files.

Inputs: folder.

get_attachment_infoA

Get detailed information about an attachment, including embed/link syntax.

Inputs: path (required).

get_attachments_in_noteA

Get all attachment references (embeds and links) in a specific note.

Inputs: path (required).

get_baseA

Get the full content of an Obsidian Base including schema and all rows

Inputs: path (required).

get_daily_noteA

Get the daily note for a specific date. Creates the note if it does not exist. Uses the vault's daily notes configuration for folder and format.

Inputs: date.

get_frontmatterA

Get the YAML frontmatter of a note as a JSON object

Inputs: path (required).

get_templateB

Get the raw content of a template file

Inputs: name (required).

list_attachmentsA

List all non-markdown files (images, PDFs, etc.) in the vault. Can filter by folder and type.

Inputs: type, folder.

list_backupsA

List available backups. Can filter by specific note.

Inputs: notePath, backupFolder.

list_basesA

List all Obsidian Bases (database files) in the vault

Inputs: no named parameters.

list_daily_notesB

List daily notes, optionally filtered by date range

Inputs: limit, endDate, startDate.

list_notesA

List markdown notes in the vault with sorting, filtering, and pagination. Returns paths, names, dates, and sizes.

Inputs: limit, folder, offset, sortBy, +3 more.

list_tagsA

List all unique tags used in the vault with their occurrence count

Inputs: folder.

list_templatesA

List all available templates in the vault's templates folder

Inputs: no named parameters.

list_vaultsA

List all configured Obsidian vaults and show which one is currently active

Inputs: no named parameters.

move_noteA

Move a note to a different folder. Keeps the same filename but changes location. Optionally updates all wikilinks.

Inputs: path (required), destinationFolder (required), updateLinks.

query_baseB

Query an Obsidian Base with optional filtering, sorting, and limiting. Filter by providing column-value pairs.

Inputs: path (required), limit, filter, sortOrder, +1 more.

read_noteA

Read the content and frontmatter of a specific note. Returns the markdown content and parsed YAML frontmatter if present.

Inputs: path (required).

register_vaultA

Register a new Obsidian vault with a name and path

Inputs: name (required), path (required).

remove_from_array_fieldB

Remove values from an array field in frontmatter (e.g., tags, aliases).

Inputs: path (required), field (required), values (required).

remove_frontmatter_fieldB

Remove a specific field from the frontmatter of a note.

Inputs: path (required), field (required).

remove_tagA

Remove a tag from a note's frontmatter

Inputs: tag (required), path (required).

rename_noteA

Rename a note and optionally update all wikilinks that reference it. Returns the count of notes with updated links.

Inputs: newPath (required), oldPath (required), updateLinks.

restore_backupA

Restore a note from a backup. Optionally creates a backup of current content first.

Inputs: backupPath (required), targetPath, createBackupFirst.

search_by_tagA

Find all notes that have a specific tag (in frontmatter or inline)

Inputs: tag (required), folder.

search_vaultA

Search for text across all notes in the vault. Supports regex patterns and context lines around matches.

Inputs: query (required), folder, useRegex, maxResults, +2 more.

set_active_vaultA

Set the active vault for subsequent operations

Inputs: vault (required).

update_frontmatterA

Update the YAML frontmatter of a note. By default merges with existing frontmatter. Set replace=true to replace all frontmatter. Set a value to null to remove a field.

Inputs: path (required), updates (required), replace.

update_noteA

Update an existing note. Modes: overwrite (replace all), append (add to end), prepend (add to start), replace (find and replace specific text). Prepend mode will error if content starts with "---" to prevent frontmatter conflicts.

Inputs: path (required), content (required), mode, search, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 50 tools

    Disambiguation3/5

    Most tools have clear, distinct purposes, but there are overlapping pairs such as get_daily_note and create_daily_note (both create if missing), and add_tag vs add_to_array_field for managing tag arrays. The descriptions help, but with 50 tools, some ambiguity remains.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern in snake_case (e.g., list_vaults, read_note, batch_move). Prefixed batch operations and specific verbs like get/list/find/query are used predictably, making the naming highly uniform.

    Tool Count2/5

    With 50 tools, the server is excessively large for most use cases. The name itself suggests bloat, and while the domain is broad, many tools are redundant or could be combined (e.g., batch operations, frontmatter fields). This crosses the 25+ threshold for 'too many'.

    Completeness4/5

    The toolset covers a comprehensive range of Obsidian vault operations: note CRUD, frontmatter, tags, links, daily notes, templates, bases, attachments, and backups. Minor gaps exist (e.g., no explicit folder listing, but folders are implicit in paths), and some redundancies, but no critical dead ends.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      This project implements a Model Context Protocol (MCP) server for connecting AI models with Obsidian knowledge bases. Through this server, AI models can directly access and manipulate Obsidian notes, including reading, creating, updating, and deleting notes, as well as managing folder structures.
      11
      74 npm
      310
      MIT
    • A
      license
      B
      quality
      F
      maintenance
      A Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.
      5
      3,512 npm
      4
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      A local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.
      2
      MIT