productivity

Obsidian Semantic

aaronsb

by aaronsb

Obsidian Semantic delivers smart Obsidian vault management with intelligent file access, editing, and adaptive indexing

Provides intelligent access to Obsidian vaults through file management with fragment retrieval, smart editing with auto-buffering, content navigation, contextual workflow suggestions, and adaptive indexing strategies that automatically optimize based on query characteristics for efficient knowledge management workflows.

github stars

33

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

20 tools consolidated into 5 operationsRequires Local REST API pluginSuccessor plugin available with native integration

best for

  • / Knowledge workers managing large Obsidian vaults
  • / Researchers needing AI-assisted note navigation
  • / Writers organizing interconnected content

capabilities

  • / Retrieve specific fragments from vault files
  • / Edit notes with automatic buffering
  • / Navigate vault content semantically
  • / Get contextual workflow suggestions
  • / Index and optimize queries adaptively

what it does

Provides AI-optimized access to Obsidian vaults with intelligent file management, smart editing, and contextual workflow suggestions. Consolidates 20 tools into 5 semantic operations for knowledge management.

about

Obsidian Semantic is a community-built MCP server published by aaronsb that provides AI assistants with tools and capabilities via the Model Context Protocol. Obsidian Semantic delivers smart Obsidian vault management with intelligent file access, editing, and adaptive indexing It is categorized under productivity.

how to install

You can install Obsidian Semantic in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Obsidian Semantic is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Obsidian Semantic MCP Server

🎉 Exciting News! We've taken everything we learned from this project and created something even better! Check out the new Obsidian MCP Plugin - a native Obsidian plugin that runs directly inside your vault with improved performance, simplified setup, and enhanced features. We encourage you to try it out!

npm version

A semantic, AI-optimized MCP server for Obsidian that consolidates 20 tools into 5 intelligent operations with contextual workflow hints.


🚀 Try Our New Native Plugin!

This MCP server taught us valuable lessons about AI integration with Obsidian. We've applied these insights to create the Obsidian MCP Plugin, which offers:

  • Native Integration: Runs directly inside Obsidian (no external dependencies!)
  • Better Performance: Direct vault access without REST API overhead
  • Easier Setup: Install like any Obsidian plugin - no API keys or external servers
  • Enhanced Features: Full access to Obsidian's internal APIs and search capabilities
  • Improved Reliability: No more connection issues or timeouts

👉 Get the Obsidian MCP Plugin


<a href="https://glama.ai/mcp/servers/@aaronsb/obsidian-semantic-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@aaronsb/obsidian-semantic-mcp/badge" alt="Obsidian Semantic Server MCP server" /> </a>

Prerequisites

Installation

npm install -g obsidian-semantic-mcp

Or use directly with npx (recommended):

npx obsidian-semantic-mcp

View on npm: https://www.npmjs.com/package/obsidian-semantic-mcp

Quick Start

  1. Install the Obsidian Plugin:

    • Open Obsidian Settings → Community Plugins
    • Browse and search for "Local REST API"
    • Install the Local REST API plugin by Adam Coddington
    • Enable the plugin
    • In the plugin settings, copy your API key (you'll need this for configuration)
  2. Configure Claude Desktop:

    The npx command is automatically used in the Claude Desktop configuration. Add this to your Claude Desktop config (usually found at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

    {
      "mcpServers": {
        "obsidian": {
          "command": "npx",
          "args": ["-y", "obsidian-semantic-mcp"],
          "env": {
            "OBSIDIAN_API_KEY": "your-api-key-here",
            "OBSIDIAN_API_URL": "https://127.0.0.1:27124",
            "OBSIDIAN_VAULT_NAME": "your-vault-name"
          }
        }
      }
    }
    

Features

This server consolidates traditional MCP tools into an AI-optimized semantic interface that makes it easier for AI agents to understand and use Obsidian operations effectively.

Key Benefits

  • Simplified Interface: 5 semantic operations instead of 21+ individual tools
  • Contextual Workflows: Intelligent hints guide AI agents to the next logical action
  • State Tracking: Token-based system prevents invalid operations
  • Error Recovery: Smart recovery hints when operations fail
  • Fuzzy Matching: Resilient text editing that handles minor variations
  • Fragment Retrieval: Automatically returns relevant sections from large files to conserve tokens

Why Semantic Operations?

Traditional MCP servers expose many granular tools (20+), which can overwhelm AI agents and lead to inefficient tool selection. Our semantic approach:

  • Consolidates 20 tools into 5 semantic operations based on intent
  • Provides contextual workflow hints to guide next actions
  • Tracks state with tokens (inspired by Petri nets) to prevent nonsensical suggestions
  • Offers recovery hints when operations fail

The 5 Semantic Operations

  1. vault - File and folder operations

    • Actions: list, read, create, update, delete, search, fragments
  2. edit - Smart content editing

    • Actions: window (fuzzy match), append, patch, at_line, from_buffer
  3. view - Content viewing and navigation

    • Actions: window (with context), open_in_obsidian
  4. workflow - Get guided suggestions

    • Actions: suggest
  5. system - System operations

    • Actions: info, commands, fetch_web
    • Note: fetch_web fetches and converts web content to markdown (uses only url parameter)

Example Usage

Instead of choosing between get_vault_file, get_active_file, read_file_content, etc., you simply use:

{
  "operation": "vault",
  "action": "read",
  "params": {
    "path": "daily-notes/2024-01-15.md"
  }
}

The response includes intelligent workflow hints:

{
  "result": { /* file content */ },
  "workflow": {
    "message": "Read file: daily-notes/2024-01-15.md",
    "suggested_next": [
      {
        "description": "Edit this file",
        "command": "edit(action='window', path='daily-notes/2024-01-15.md', ...)",
        "reason": "Make changes to content"
      },
      {
        "description": "Follow linked notes",
        "command": "vault(action='read', path='{linked_file}')",
        "reason": "Explore connected knowledge"
      }
    ]
  }
}

State-Aware Suggestions

The system tracks context tokens to provide relevant suggestions:

  • After reading a file with [[links]], it suggests following them
  • After a failed edit, it offers buffer recovery options
  • After searching, it suggests refining or reading results

Advanced Features

Content Buffering

The window edit action automatically buffers your new content before attempting the edit. If the edit fails or you want to refine it, you can retrieve from buffer:

{
  "operation": "edit",
  "action": "from_buffer",
  "params": {
    "path": "notes/meeting.md"
  }
}

Fuzzy Window Editing

The semantic editor uses fuzzy matching to find and replace content:

{
  "operation": "edit",
  "action": "window",
  "params": {
    "path": "daily/2024-01-15.md",
    "oldText": "meting notes",  // typo will be fuzzy matched
    "newText": "meeting notes",
    "fuzzyThreshold": 0.8
  }
}

Smart PATCH Operations

Target specific document structures:

{
  "operation": "edit",
  "action": "patch",
  "params": {
    "path": "projects/todo.md",
    "operation": "append",
    "targetType": "heading",
    "target": "## In Progress",
    "content": "- [ ] New task"
  }
}

Fragment Retrieval for Large Documents

The system automatically uses intelligent fragment retrieval when reading files, significantly reducing token consumption while maintaining relevance:

{
  "operation": "vault",
  "action": "read",
  "params": {
    "path": "large-document.md"
  }
}

Returns relevant fragments instead of the entire file:

{
  "result": {
    "content": [
      {
        "id": "file:large-document.md:frag0",
        "content": "Most relevant section...",
        "score": 0.95,
        "lineStart": 145,
        "lineEnd": 167
      }
    ],
    "fragmentMetadata": {
      "totalFragments": 5,
      "strategy": "adaptive",
      "originalContentLength": 135662
    }
  }
}

Fragment Search Strategies:

  • adaptive - TF-IDF keyword matching (default for short queries)
  • proximity - Finds fragments where query terms appear close together
  • semantic - Chunks documents into meaningful sections

You can explicitly search for fragments across your vault:

{
  "operation": "vault",
  "action": "fragments",
  "params": {
    "query": "project roadmap timeline",
    "maxFragments": 10,
    "strategy": "proximity"
  }
}

To retrieve the full file (when needed), use:

{
  "operation": "vault",
  "action": "read",
  "params": {
    "path": "document.md",
    "returnFullFile": true
  }
}

Workflow Examples

Daily Note Workflow

  1. Create today's note → 2. Add template → 3. Link yesterday's note

Research Workflow

  1. Search topic → 2. Read results → 3. Create synthesis note → 4. Link sources

Refactoring Workflow

  1. Find all mentions → 2. Update links → 3. Rename/merge notes

Configuration

The semantic workflow hints are defined in src/config/workflows.json and can be customized for your workflow preferences.

Fragment Retrieval Configuration

The fragment retrieval system automatically activates when reading files to conserve tokens. You can control this behavior:

  • Default behavior: Returns up to 5 relevant fragments when reading files
  • Full file access: Use returnFullFile: true parameter to get complete content
  • Strategy selection: The system auto-selects based on query length, or you can specify:
    • adaptive for keyword matching (1-2 word queries)
    • proximity for finding related terms together (3-5 word queries)
    • semantic for conceptual chunking (longer queries)

Error Recovery

When operations fail, the semantic interface provides intelligent recovery hints:

{
  "error": {
    "code": "FILE_NOT_FOUND",
    "message": "File not found: daily/2024-01-15.md",
    "recovery_hints": [
      {
        "description": "Create this file",
        "command": "vault(action='create', path='daily/2024-01-15.md')"
      },
      {
        "description": "Search for similar files",
        "command": "vault(action='search', query='2024-01-15')"
      }
    ]
  }
}

Environment Variables

The server automatically loads environment variables from a .env file if present. Variables can be set in ord


FAQ

What is the Obsidian Semantic MCP server?
Obsidian Semantic is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Obsidian Semantic?
This profile displays 74 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.6 out of 5—verify behavior in your own environment before production use.

Use Cases

Extended AI Capabilities

Add new capabilities to Claude beyond text generation

Example

Access external data sources, execute code, interact with tools and services

Transform Claude from chatbot to action-taking agent

Context Enhancement

Provide Claude with access to relevant context and data

Example

Load project documentation, access knowledge bases, query databases

Get more accurate, context-aware responses

Workflow Automation

Automate multi-step workflows combining AI and external tools

Example

Research → Summarize → Create document → Send notification

Complete complex tasks end-to-end without manual steps

Implementation Guide

Prerequisites

  • Claude Desktop 0.7.0+ or Cursor IDE with MCP support
  • Basic understanding of MCP architecture and capabilities
  • Access credentials for integrated services (if required)
  • Willingness to experiment and iterate on configuration

Time Estimate

15-60 minutes depending on server complexity

Installation Steps

  1. 1.Install MCP server: npm install -g [package-name] or via GitHub
  2. 2.Add server configuration to ~/.claude/mcp.json
  3. 3.Provide required credentials and configuration
  4. 4.Restart Claude Desktop to load new server
  5. 5.Test basic functionality with simple prompts
  6. 6.Explore capabilities and experiment with use cases
  7. 7.Document successful patterns for reuse

Troubleshooting

  • MCP server not loading: Check config syntax, verify installation
  • Connection errors: Check network, firewall, credentials
  • Feature not working: Read server docs, check required parameters
  • Performance issues: Monitor resource usage, check for network latency
  • Conflicts with other servers: Check port assignments, namespace collisions

Best Practices

✓ Do

  • +Read server documentation thoroughly before setup
  • +Start with simple use cases to validate functionality
  • +Test in non-production environment first
  • +Monitor resource usage and performance
  • +Keep servers updated for bug fixes and new features
  • +Document configuration for team members
  • +Use environment variables for sensitive configuration

✗ Don't

  • Don't grant overly permissive access to MCP servers
  • Don't skip reading security considerations in docs
  • Don't expose sensitive data without proper controls
  • Don't run untrusted MCP servers without code review
  • Don't ignore error messages—investigate root cause

💡 Pro Tips

  • Combine multiple MCP servers for powerful workflows
  • Create custom MCP servers for your specific needs
  • Share successful configurations with team
  • Use MCP inspector for debugging
  • Join MCP community for tips and troubleshooting

Technical Details

Architecture

Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.

Protocols

  • Model Context Protocol (MCP)
  • JSON-RPC 2.0
  • stdio or HTTP transport

Compatibility

  • Claude Desktop
  • Cursor IDE
  • Custom MCP clients

When to Use This

✓ Use When

Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.

✗ Avoid When

Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.

Integration

  • Tool composition: Chain multiple MCP tools in workflows
  • Context augmentation: Provide AI with relevant external data
  • Action delegation: Let AI execute tasks on external systems
  • Bidirectional sync: Keep AI context and external systems in sync

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.

List & Promote Your MCP Server

Share your MCP server with the developer community

GET_STARTED →
MCP server reviews

Ratings

4.674 reviews
  • Tariq Kapoor· Dec 28, 2024

    We wired Obsidian Semantic into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Fatima Jain· Dec 20, 2024

    Obsidian Semantic is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Ganesh Mohane· Dec 16, 2024

    We wired Obsidian Semantic into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Michael Chen· Dec 16, 2024

    Obsidian Semantic reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Michael Yang· Dec 12, 2024

    Obsidian Semantic has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Aarav Bansal· Dec 12, 2024

    Obsidian Semantic is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Tariq Gupta· Dec 8, 2024

    Useful MCP listing: Obsidian Semantic is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Evelyn Ghosh· Nov 19, 2024

    Obsidian Semantic reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ira Wang· Nov 11, 2024

    We evaluated Obsidian Semantic against two servers with overlapping tools; this profile had the clearer scope statement.

  • Rahul Santra· Nov 7, 2024

    Obsidian Semantic reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

showing 1-10 of 74

1 / 8