O

Obsidian MCP Server

by cyanheads · io.github.cyanheads/obsidian-mcp-server

Enables interaction between LLMs and Obsidian vaults through the Model Context Protocol, supporting secure file operations, content management, and advanced search capabilities.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-cyanheads-obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-mcp-server"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<VALUE>",
        "OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
        "OBSIDIAN_VERIFY_SSL": "false",
        "OBSIDIAN_REQUEST_TIMEOUT_MS": "30000",
        "OBSIDIAN_ENABLE_COMMANDS": "false",
        "OBSIDIAN_READ_PATHS": "<VALUE>",
        "OBSIDIAN_WRITE_PATHS": "<VALUE>",
        "OBSIDIAN_DENY_PATHS": "<VALUE>",
        "OBSIDIAN_READ_ONLY": "false",
        "OBSIDIAN_DELETE_ELICITATION": "false",
        "OBSIDIAN_OMNISEARCH_URL": "<VALUE>",
        "MCP_LOG_LEVEL": "info",
        "NODE_ENV": "production",
        "MAX_TOKENS": "20000",
        "TOOL_TIMEOUT_MS": "60000",
        "RATE_LIMIT_WINDOW_MS": "900000",
        "RATE_LIMIT_MAX_REQUESTS": "200"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-mcp-server"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<VALUE>",
        "OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
        "OBSIDIAN_VERIFY_SSL": "false",
        "OBSIDIAN_REQUEST_TIMEOUT_MS": "30000",
        "OBSIDIAN_ENABLE_COMMANDS": "false",
        "OBSIDIAN_READ_PATHS": "<VALUE>",
        "OBSIDIAN_WRITE_PATHS": "<VALUE>",
        "OBSIDIAN_DENY_PATHS": "<VALUE>",
        "OBSIDIAN_READ_ONLY": "false",
        "OBSIDIAN_DELETE_ELICITATION": "false",
        "OBSIDIAN_OMNISEARCH_URL": "<VALUE>",
        "MCP_LOG_LEVEL": "info",
        "NODE_ENV": "production",
        "MAX_TOKENS": "20000",
        "TOOL_TIMEOUT_MS": "60000",
        "RATE_LIMIT_WINDOW_MS": "900000",
        "RATE_LIMIT_MAX_REQUESTS": "200"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-mcp-server"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<VALUE>",
        "OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
        "OBSIDIAN_VERIFY_SSL": "false",
        "OBSIDIAN_REQUEST_TIMEOUT_MS": "30000",
        "OBSIDIAN_ENABLE_COMMANDS": "false",
        "OBSIDIAN_READ_PATHS": "<VALUE>",
        "OBSIDIAN_WRITE_PATHS": "<VALUE>",
        "OBSIDIAN_DENY_PATHS": "<VALUE>",
        "OBSIDIAN_READ_ONLY": "false",
        "OBSIDIAN_DELETE_ELICITATION": "false",
        "OBSIDIAN_OMNISEARCH_URL": "<VALUE>",
        "MCP_LOG_LEVEL": "info",
        "NODE_ENV": "production",
        "MAX_TOKENS": "20000",
        "TOOL_TIMEOUT_MS": "60000",
        "RATE_LIMIT_WINDOW_MS": "900000",
        "RATE_LIMIT_MAX_REQUESTS": "200"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-cyanheads-obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-mcp-server"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<VALUE>",
        "OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
        "OBSIDIAN_VERIFY_SSL": "false",
        "OBSIDIAN_REQUEST_TIMEOUT_MS": "30000",
        "OBSIDIAN_ENABLE_COMMANDS": "false",
        "OBSIDIAN_READ_PATHS": "<VALUE>",
        "OBSIDIAN_WRITE_PATHS": "<VALUE>",
        "OBSIDIAN_DENY_PATHS": "<VALUE>",
        "OBSIDIAN_READ_ONLY": "false",
        "OBSIDIAN_DELETE_ELICITATION": "false",
        "OBSIDIAN_OMNISEARCH_URL": "<VALUE>",
        "MCP_LOG_LEVEL": "info",
        "NODE_ENV": "production",
        "MAX_TOKENS": "20000",
        "TOOL_TIMEOUT_MS": "60000",
        "RATE_LIMIT_WINDOW_MS": "900000",
        "RATE_LIMIT_MAX_REQUESTS": "200"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-cyanheads-obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-mcp-server"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<VALUE>",
        "OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
        "OBSIDIAN_VERIFY_SSL": "false",
        "OBSIDIAN_REQUEST_TIMEOUT_MS": "30000",
        "OBSIDIAN_ENABLE_COMMANDS": "false",
        "OBSIDIAN_READ_PATHS": "<VALUE>",
        "OBSIDIAN_WRITE_PATHS": "<VALUE>",
        "OBSIDIAN_DENY_PATHS": "<VALUE>",
        "OBSIDIAN_READ_ONLY": "false",
        "OBSIDIAN_DELETE_ELICITATION": "false",
        "OBSIDIAN_OMNISEARCH_URL": "<VALUE>",
        "MCP_LOG_LEVEL": "info",
        "NODE_ENV": "production",
        "MAX_TOKENS": "20000",
        "TOOL_TIMEOUT_MS": "60000",
        "RATE_LIMIT_WINDOW_MS": "900000",
        "RATE_LIMIT_MAX_REQUESTS": "200"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-cyanheads-obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-mcp-server"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<VALUE>",
        "OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
        "OBSIDIAN_VERIFY_SSL": "false",
        "OBSIDIAN_REQUEST_TIMEOUT_MS": "30000",
        "OBSIDIAN_ENABLE_COMMANDS": "false",
        "OBSIDIAN_READ_PATHS": "<VALUE>",
        "OBSIDIAN_WRITE_PATHS": "<VALUE>",
        "OBSIDIAN_DENY_PATHS": "<VALUE>",
        "OBSIDIAN_READ_ONLY": "false",
        "OBSIDIAN_DELETE_ELICITATION": "false",
        "OBSIDIAN_OMNISEARCH_URL": "<VALUE>",
        "MCP_LOG_LEVEL": "info",
        "NODE_ENV": "production",
        "MAX_TOKENS": "20000",
        "TOOL_TIMEOUT_MS": "60000",
        "RATE_LIMIT_WINDOW_MS": "900000",
        "RATE_LIMIT_MAX_REQUESTS": "200"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
OBSIDIAN_API_KEY Yes Your API key for the Obsidian MCP Server
OBSIDIAN_BASE_URL No Base URL of the Obsidian Local REST API. Default: http://127.0.0.1:27123 (enable "Non-encrypted (HTTP) Server" in plugin settings). Use https://127.0.0.1:27124 for the always-on HTTPS port (self-signed cert; pair with OBSIDIAN_VERIFY_SSL=false). Default: http://127.0.0.1:27123
OBSIDIAN_VERIFY_SSL No Enable SSL verification Default: false
OBSIDIAN_REQUEST_TIMEOUT_MS No Milliseconds one request attempt (headers and body) may take before it fails with obsidian_timeout. GET, PUT, and DELETE retry a timed-out attempt; all the requests of one tool call share a 45 s budget, or this value when it is longer. Default: 30000
OBSIDIAN_ENABLE_COMMANDS No Opt-in flag for the command-palette pair (obsidian_list_commands + obsidian_execute_command). Off by default — Obsidian commands are opaque and can be destructive. Default: false
OBSIDIAN_READ_PATHS No Optional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; backslashes read as slashes, repeated and trailing slashes and '.' segments dropped, and names normalized to Unicode NFC; an entry naming the vault root ('.') is rejected at startup. Unset = full vault. Write paths are implicitly readable. Example: 'public/,projects/'.
OBSIDIAN_WRITE_PATHS No Optional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault, or the read scope when reads are restricted; paths in OBSIDIAN_DENY_PATHS stay denied. Example: 'projects/,scratch/'.
OBSIDIAN_DENY_PATHS No Optional comma-separated vault-relative paths withheld from reads and writes. Same syntax as OBSIDIAN_READ_PATHS. Wins over both allowlists; denied paths are left out of listings, search results, and tag counts. Unset = nothing denied. Example: 'private/,journal/therapy/'.
OBSIDIAN_READ_ONLY No Global read-only kill switch. When true, every write is denied regardless of OBSIDIAN_WRITE_PATHS, and the command-palette pair is suppressed (commands can mutate). Useful for shared or public-facing deployments. Default: false
OBSIDIAN_DELETE_ELICITATION No Opt-in delete confirmation. When true, obsidian_delete_note asks the user to confirm each delete through an elicitation round (the client must support elicitation), and HTTP startup requires a stateful session unless OBSIDIAN_READ_ONLY=true disables the tool. Off by default — the delete runs on the first call, bounded by OBSIDIAN_WRITE_PATHS and OBSIDIAN_READ_ONLY. Default: false
OBSIDIAN_OMNISEARCH_URL No Override URL for the Omnisearch plugin HTTP server. Unset derives from OBSIDIAN_BASE_URL host with port 51361. Required only if the Omnisearch plugin is not on the default port. Under OBSIDIAN_READ_PATHS or OBSIDIAN_DENY_PATHS the URL is never called and the omnisearch search mode is withheld.
MCP_LOG_LEVEL No Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info
NODE_ENV No The Node.js environment setting Default: production
MAX_TOKENS No Maximum tokens per response Default: 20000
TOOL_TIMEOUT_MS No Tool execution timeout in milliseconds Default: 60000
RATE_LIMIT_WINDOW_MS No Rate limit window in milliseconds (default: 15 minutes) Default: 900000
RATE_LIMIT_MAX_REQUESTS No Max requests per rate limit window Default: 200

Similar servers