Obsidian MCP Server

Obsidian MCP Server

Enables AI assistants to search, create, and manage notes in an Obsidian vault via 40+ local tools.

Category
Visit Server

README

🗃️ Obsidian MCP Server

npm version MIT License Node.js MCP

Connect AI assistants like Claude to your Obsidian vault via Model Context Protocol. 40+ tools for searching, creating, and managing your notes—all 100% local.


What Can You Do?

You Say What Happens
"Search my notes for machine learning" Searches your entire vault
"Create a meeting note for tomorrow" Creates a formatted meeting note
"What links to my Projects note?" Shows all backlinks
"Add to my daily note: finished the API" Appends to today's daily note
"Find orphan notes" Lists unconnected notes

Quick Start

1. Install the Obsidian Plugin

  1. Obsidian → Settings → Community plugins → Browse
  2. Search "Local REST API" → Install → Enable
  3. Settings → Local REST API → Copy your API Key

2. Install the MCP Server

Option A: Install from npm (recommended)

npm install -g @aniketbiswas/obsidian-mcp-server

Option B: Install from source

git clone https://github.com/aniketbiswas/obsidian-mcp.git
cd obsidian-mcp
npm install && npm run build
npm link  # Makes it available globally

3. Configure Claude Desktop

Edit the config file:

OS Config Path
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
Linux ~/.config/claude/claude_desktop_config.json

If installed via npm:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": ["node_modules/@aniketbiswas/obsidian-mcp-server/build/index.js"],
      "env": {
        "OBSIDIAN_API_KEY": "your-api-key-here"
      }
    }
  }
}

Note: If the above doesn't work (common with nvm), use full paths:

{
  "command": "/usr/local/bin/node",
  "args": ["/usr/local/lib/node_modules/@aniketbiswas/obsidian-mcp-server/build/index.js"]
}

Find your paths with: which node and npm root -g

If installed from source:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": ["/FULL/PATH/TO/obsidian-mcp-server/build/index.js"],
      "env": {
        "OBSIDIAN_API_KEY": "your-api-key-here"
      }
    }
  }
}

Windows paths: Use C:\\Users\\Name\\... or C:/Users/Name/...

4. Restart Claude Desktop

Make sure Obsidian is running, then try: "Show me my vault status"


Available Tools

<details> <summary><strong>📁 Vault (6)</strong> — Status, list files, structure</summary>

vault_status · list_files · list_all_files · get_vault_structure · get_file_stats · delete_file </details>

<details> <summary><strong>📝 Notes (9)</strong> — CRUD operations</summary>

read_note · create_note · update_note · append_to_note · prepend_to_note · insert_under_heading · replace_in_note · delete_note · copy_note </details>

<details> <summary><strong>🔍 Search (7)</strong> — Full-text, tags, folders</summary>

search_notes · simple_search · search_by_tag · search_in_folder · find_notes_by_name · get_recent_notes · search_with_context </details>

<details> <summary><strong>📊 Metadata (8)</strong> — Frontmatter & tags</summary>

get_frontmatter · update_frontmatter · set_frontmatter_property · get_tags · add_tags · remove_tags · add_aliases · get_all_tags_in_vault </details>

<details> <summary><strong>🧭 Navigation (6)</strong> — Open notes, run commands</summary>

open_note · get_active_note · append_to_active_note · get_commands · execute_command · quick_capture </details>

<details> <summary><strong>📅 Daily Notes (6)</strong> — Journals & standups</summary>

get_daily_note · append_to_daily_note · get_periodic_note · append_to_periodic_note · daily_journal_entry · daily_standup </details>

<details> <summary><strong>🔗 Links (6)</strong> — Backlinks, orphans, graph</summary>

get_outgoing_links · get_backlinks · find_broken_links · find_orphan_notes · add_link_to_note · get_link_graph_data </details>

<details> <summary><strong>📋 Templates (4)</strong> — Meeting, project, etc.</summary>

create_note_from_template · create_meeting_note · create_project_note · list_templates

Built-in: meeting · project · book · article · person · recipe · decision </details>


Configuration

Variable Required Default Description
OBSIDIAN_API_KEY ✅ — From Local REST API plugin
OBSIDIAN_HOST 127.0.0.1 API host
OBSIDIAN_PORT 27124 API port
OBSIDIAN_SECURE true Use HTTPS
OBSIDIAN_VERIFY_SSL false Verify SSL certificate

Troubleshooting

<details> <summary><strong>"Cannot connect to MCP server" or "Server failed to start"</strong></summary>

This is usually a PATH issue. Claude Desktop doesn't inherit your shell's PATH (especially with nvm).

Solution: Use full absolute paths in your config:

  1. Find your node path: which node
  2. Find global modules: npm root -g
  3. Update config with full paths:
{
  "mcpServers": {
    "obsidian": {
      "command": "/Users/YOU/.nvm/versions/node/v22.x.x/bin/node",
      "args": ["/Users/YOU/.nvm/versions/node/v22.x.x/lib/node_modules/@aniketbiswas/obsidian-mcp-server/build/index.js"],
      "env": {
        "OBSIDIAN_API_KEY": "your-key"
      }
    }
  }
}

Check logs: ~/Library/Logs/Claude/mcp.log (macOS) </details>

<details> <summary><strong>Claude doesn't see the server</strong></summary>

  • Validate JSON: cat config.json | python3 -m json.tool
  • Path must be absolute (starts with / or C:\)
  • Restart Claude Desktop completely (Cmd+Q / right-click quit)
  • Windows: ensure file is .json not .json.txt </details>

<details> <summary><strong>Connection errors</strong></summary>

  • Obsidian must be running with Local REST API enabled
  • Test API: curl -k https://127.0.0.1:27124/ -H "Authorization: Bearer YOUR_KEY"
  • Regenerate API key if needed </details>

<details> <summary><strong>Windows: "node not recognized"</strong></summary>

Use full path: "command": "C:\\Program Files\\nodejs\\node.exe" </details>


Development

npm run build      # Compile TypeScript
npm run dev        # Watch mode
npm run inspector  # Test tools in browser UI

Adding Tools

Create/edit files in src/tools/, then rebuild:

server.tool("my_tool", "Description", { param: z.string() }, async ({ param }) => {
  return { content: [{ type: "text", text: "Result" }] };
});

FAQ

Is it free? Yes, the Local REST API plugin is free.

Are my notes sent to the cloud? No. Everything stays local. Only your conversation with Claude goes to Anthropic (like any Claude chat).

Works with Obsidian Sync? Yes, it accesses your local vault files.


Contributing

PRs welcome! Fork → create branch → commit → open PR.


License

MIT — see LICENSE


Built with MCP SDK · Powered by Local REST API

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured