obsidian-mcp-server

rghsoftware/obsidian-mcp-server

3.1

If you are the rightful owner of obsidian-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Obsidian MCP Server integrates Claude Code with your local Obsidian vault, allowing for seamless note-taking and code snippet management.

Obsidian MCP Server

MCP server for integrating Claude Code with your local Obsidian vault.

Features

  • /note - Create general notes in your vault
  • /save-snippet - Save code snippets with language-based organization
  • /take-note - Create timestamped conversation notes

Installation

  1. Install dependencies:

    npm install
    
  2. Build the TypeScript code:

    npm run build
    
  3. Set up your vault path in Claude Code configuration.

Configuration

Add to your Claude Code configuration (.claude.json or ~/.claude/config.json):

{
  "mcpServers": {
    "obsidian": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/obsidian-mcp-server/build/index.js"],
      "env": {
        "OBSIDIAN_VAULT_PATH": "/absolute/path/to/your/ObsidianVault"
      }
    }
  }
}

Folder Structure Created

  • Inbox/ - Default location for general notes
  • snippets/ - Code snippets organized by language
  • notes/<year>/ - Conversation notes organized by year and date

Testing

Test the server with MCP Inspector:

npm run test

Development

Watch mode for development:

npm run dev