Skip to main content
Glama
Markdown Vault MCP Server

Markdown Vault MCP Server

by bluee

Markdown Vault MCP Server

An MCP (Model Context Protocol) server that gives AI assistants full read/write access to a folder of markdown files. Works with Obsidian vaults, any PKM tool, or plain markdown folders.

Query notes by frontmatter, find backlinks, search with regex, batch-update metadata, and manage tags — all through a standard MCP interface that works with Claude Desktop, claude.ai, or any MCP client.

Please backup your files before use. This server has read and write access. Git or any other backup method is recommended.

Features

  • Read, create, edit, move, and delete markdown notes

  • Search with full-text, regex, and tag queries

  • Query frontmatter — filter notes by YAML fields (status:open, priority:high, date>2024-01-01)

  • Find backlinks — discover which notes reference a target (wikilinks, markdown links, and plain text)

  • Batch update frontmatter across multiple matching notes with dry-run preview

  • Vault statistics — tag frequency, folder distribution, frontmatter key analysis

  • Tag management — add, remove, rename tags with file locking

  • Partial reads — get just frontmatter (as JSON) or content without frontmatter

  • In-memory vault index with file watching for fast repeated queries

  • Multi-vault support — up to 10 folders simultaneously

  • HTTP mode — Streamable HTTP transport with session management

  • No Obsidian dependency — works with any folder of .md files

Related MCP server: Obsidian MCP Local

Requirements

  • Node.js 20+

  • A folder containing markdown files

Install

Claude Desktop

Add to your config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
    "mcpServers": {
        "markdown-vault": {
            "command": "npx",
            "args": ["-y", "obsidian-mcp", "/path/to/your/folder"]
        }
    }
}

Multiple folders are supported — just add more paths to the args array.

Restart Claude Desktop after saving. The hammer icon should appear, indicating the server is connected.

HTTP Server

For web-based integrations or remote access, use the --http flag. See HTTP-SERVER.md for full details.

node build/main.js --http /path/to/your/folder

Docker

docker build -t markdown-vault-mcp .
docker run -p 3000:3000 -v /path/to/folder:/vault markdown-vault-mcp /vault

Available Tools

Tool

Description

read-note

Read a note (full, frontmatter-only, or content-only)

create-note

Create a new note

edit-note

Edit an existing note (with file locking)

delete-note

Delete a note

move-note

Move a note to a different location

create-directory

Create a new directory

search-vault

Search notes (text, regex, tags) with frontmatter filtering

query-frontmatter

Filter notes by YAML frontmatter fields

find-backlinks

Find all notes referencing a target (links and plain text)

vault-stats

Analytics: note counts, tag frequency, key distribution

batch-update

Bulk update frontmatter across matching notes

add-tags

Add tags to a note (with file locking)

remove-tags

Remove tags from a note (with file locking)

manage-tags

Add or remove tags with advanced options

rename-tag

Rename a tag across all notes (with file locking)

list-available-vaults

List all configured vaults

Development

git clone https://github.com/bluee/obsidian-mcp
cd obsidian-mcp
npm install
npm run build

Then point Claude Desktop at your local build:

{
    "mcpServers": {
        "markdown-vault": {
            "command": "node",
            "args": ["<absolute-path>/build/main.js", "/path/to/your/folder"]
        }
    }
}

Run tests:

bun test

Troubleshooting

Issue

Fix

Server not showing in Claude Desktop

Check config syntax, ensure path is absolute, restart Claude Desktop

Permission errors

Ensure the folder path is readable/writable

Tool execution failures

Check logs: ~/Library/Logs/Claude/mcp*.log (macOS) or %APPDATA%\Claude\logs\mcp*.log (Windows)

Acknowledgements

Originally inspired by StevenStavrakis/obsidian-mcp.

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with local Obsidian vaults through direct filesystem access for reading, creating, and managing notes. It features high-performance SQLite indexing for fast searches, regex support, and tools for organizing tags and links without requiring additional plugins.
      27
      1
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      Enables AI assistants to search, read, create, and modify Markdown notes in local Obsidian vaults directly through filesystem operations. Supports tag-based discovery and frontmatter parsing without requiring Obsidian to be open, facilitating integration with VS Code Copilot via stdio transport.
      5
      11 npm
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search, read, link, query, create, edit, and safely rename notes in an Obsidian-style markdown vault, including BM25 search, backlinks, frontmatter queries, and dry-run link updates.
      10
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Obsidian vaults by creating, reading, editing, deleting, searching, and organizing notes, tags, and folders across multiple vaults.
      16
      MIT