MCP Hub
Back to servers

Enhanced Obsidian MCP Server

A comprehensive MCP server that integrates AI models with Obsidian vaults, offering 25 tools for advanced note management, AI content analysis, and knowledge graph generation.

Stars
18
Forks
3
Tools
25
Updated
Aug 24, 2025
Validated
Jan 21, 2026

Enhanced Obsidian MCP Server - 25 Advanced AI Tools

npm version License: MIT Node.js Version

English | 中文

🚀 Overview

The Enhanced Obsidian MCP Server is a powerful Model Context Protocol (MCP) server designed for seamless integration between AI models and Obsidian knowledge bases. Provides 25 powerful tools for intelligent knowledge management, automated content analysis, and smart linking capabilities.

✨ Core Features

  • 🔗 Seamless Obsidian Integration: Direct access to Obsidian knowledge base through MCP protocol
  • 📝 Complete Note Management: Read, create, update, and delete notes with advanced text replacement features
  • 📁 Folder Operations: Create, rename, move, and delete folders with full hierarchy support
  • 🔍 Intelligent Search: Full-text search across all file types with smart scoring
  • 🤖 AI Analysis: Revolutionary strategic insights using TF-IDF framework
  • 🔗 Auto Backlink Generation: Revolutionary intelligent detection of note names and conversion to wikilinks
  • Precise Editing: Advanced PATCH operations with heading and block-level positioning
  • 🚀 Dual API Strategy: Obsidian REST API combined with file system fallback for maximum reliability
  • 🎯 Context Optimization: Intelligent content summarization for LLM context length management
  • 📊 Batch Processing: Efficient bulk operations with progress tracking

✨ New Features

  • 🧠 15 New AI-Enhanced Tools for intelligent content analysis
  • 🔗 Smart Auto-Linking with advanced pattern recognition
  • 📊 Knowledge Graph Generation for visualizing note relationships
  • 🏷️ Advanced Tag Management with intelligent suggestions
  • 📝 Template System for consistent note creation
  • 🔍 Content Similarity Analysis using TF-IDF and cosine similarity
  • 📈 Relationship Analysis for discovering hidden connections

🛠️ Complete Tool Suite (25 Tools)

📚 Core Note Management (10 Tools)

📄 Note Operations

ToolDescriptionDetailed Functionality
list_notesList all notes in vault with optional folder filteringBrowse vault contents, filter by specific folders, get note metadata (size, dates, paths)
read_noteRead individual note contentRetrieve complete note content with metadata, file statistics, and modification history
read_multiple_notesBatch read multiple notes simultaneouslyEfficiently load multiple notes at once, perfect for content analysis or bulk operations
create_noteCreate new notes with contentGenerate new markdown files with specified content, automatic directory creation
update_noteAdvanced content editing with precise positioningEdit notes with surgical precision - replace text, insert at specific positions, delete sections
delete_noteRemove notes from vaultSafely delete notes with confirmation, maintains vault integrity
move_noteRename or relocate notesMove notes between folders, rename files, automatic link updates

📁 Folder & Organization

ToolDescriptionDetailed Functionality
manage_folderFull folder operations (create/rename/move/delete)Complete folder management - create nested structures, reorganize vault hierarchy
search_vaultFull-text search across all contentPowerful search with regex support, context snippets, relevance scoring
auto_backlink_vaultIntelligent auto-linking with pattern recognitionScan entire vault, detect note names in content, convert to [[wikilinks]] automatically

🏷️ Tag Management System (3 Tools)

ToolDescriptionDetailed Functionality
add_tagsAdd multiple tags to notesInsert hashtags into note frontmatter or content, support for nested tags (e.g., #project/web)
list_tagsList all tags with usage statisticsComprehensive tag inventory with usage counts, sorting options, tag hierarchy analysis
search_by_tagsAdvanced tag-based search with AND/OR operatorsComplex tag queries - find notes with specific tag combinations, Boolean logic support

📝 Template System (4 Tools)

ToolDescriptionDetailed Functionality
create_templateCreate reusable note templates with variablesDesign dynamic templates with {{variables}}, support for dates, titles, custom placeholders
list_templatesBrowse available templatesView all saved templates with metadata, usage statistics, and variable information
apply_templateApply templates with variable substitutionGenerate new notes from templates, automatic variable replacement, custom value injection
delete_templateRemove unused templatesClean up template library, maintain template organization

🧠 AI Content Analysis (4 Tools)

ToolDescriptionDetailed Functionality
extract_keywordsExtract key terms using TF-IDF algorithmIdentify important keywords and phrases, statistical relevance scoring, configurable result count
generate_summaryCreate intelligent content summariesAutomatic text summarization, extractive summary generation, customizable length
suggest_tagsAI-powered tag recommendationsAnalyze content and suggest relevant tags, learn from existing tagging patterns
find_similar_notesDiscover similar content using cosine similarityContent-based similarity matching, semantic analysis, threshold-based filtering

📊 Knowledge Graph & Analytics (4 Tools)

ToolDescriptionDetailed Functionality
analyze_note_relationshipsComprehensive relationship mappingMap connections between notes, analyze link patterns, identify knowledge clusters
generate_knowledge_graphExport graph data for visualization toolsGenerate network data in JSON/Cytoscape formats, node/edge definitions, ready for D3.js/Gephi
find_orphan_notesIdentify isolated contentDetect notes without links, find disconnected content, vault completeness analysis
suggest_connectionsAI-powered connection recommendationsRecommend potential links based on content similarity, discover hidden relationships

🚀 Quick Start

Option 1: NPM Installation (Recommended)

Install globally:

npm install -g @jianruidutong/obsidian-mcp

Or use npx (no installation required):

npx @jianruidutong/obsidian-mcp

Option 2: From Source

Clone and build:

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

Option 3: Docker Installation

Quick start with Docker:

git clone https://github.com/jianruidutong/obsidian-mcp.git
cd obsidian-mcp
cp .env.example .env
# Edit .env with your vault settings
docker-compose up -d

📚 For detailed installation instructions, see Installation Guide

⚙️ Configuration

MCP Client Configuration

Option 1: NPM Installation Configuration

{
  "mcpServers": {
    "obsidian-mcp": {
      "command": "npx",
      "args": ["-y", "@jianruidutong/obsidian-mcp"],
      "env": {
        "OBSIDIAN_VAULT_PATH": "/path/to/your/vault",
        "OBSIDIAN_API_TOKEN": "your_api_token",
        "OBSIDIAN_API_PORT": "27123"
      }
    }
  }
}

Option 2: Source Installation Configuration

{
  "mcpServers": {
    "obsidian-mcp": {
      "command": "node",
      "args": ["/path/to/obsidian-mcp/build/index.js"],
      "env": {
        "OBSIDIAN_VAULT_PATH": "/path/to/your/vault",
        "OBSIDIAN_API_TOKEN": "your_api_token",
        "OBSIDIAN_API_PORT": "27123"
      }
    }
  }
}

Option 3: Docker Installation Configuration

{
  "mcpServers": {
    "obsidian-mcp": {
      "command": "docker",
      "args": [
        "exec",
        "-i", 
        "obsidian-mcp-server",
        "npm",
        "start"
      ],
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}

Note: For Docker, environment variables are configured in .env file or docker-compose.yml.

Environment Variables

VariableDescriptionRequiredDefault
OBSIDIAN_VAULT_PATHPath to your Obsidian vault✅ Yes-
OBSIDIAN_API_TOKENLocal REST API token✅ Yes-
OBSIDIAN_API_PORTAPI port number🔧 Recommended27123

🔧 For all configuration options, see Configuration Reference

📋 Prerequisites

  1. Node.js (v16 or higher)
  2. Obsidian Desktop Application
  3. Local REST API Plugin installed in Obsidian

Setting Up Obsidian Local REST API

  1. Install the "Local REST API" plugin in Obsidian
  2. Generate an API token in the plugin settings
  3. Note the port number (default: 27123)
  4. Ensure the plugin is enabled

📚 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

git clone https://github.com/jianruidutong/obsidian-mcp.git
cd obsidian-mcp
npm install
npm run dev

🐛 Troubleshooting

Common Issues

Connection refused error:

  • Ensure Obsidian Local REST API plugin is installed and enabled
  • Verify the API token and port number
  • Check that Obsidian is running

Permission denied:

  • Verify vault path permissions
  • Ensure the API token has proper access rights

Environment variables not working:

  • Use the OBSIDIAN_ prefix for all environment variables
  • Restart your MCP client after configuration changes

🔍 For detailed troubleshooting, see Configuration Reference

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support


Star this repository if you find it useful!

Reviews

No reviews yet

Sign in to write a review