obsidian-mcp-secure

v1.0.4
io.github.dewtech-technologies/obsidian-mcp-secure Checked 2 days ago Published 7 months ago

Secure MCP server for Obsidian with OWASP Top 10 controls and full audit logging.

Values you need

VariableWhat it is
OBSIDIAN_API_KEYrequired secret API Key generated by Obsidian's Local REST API plugin (Settings -> Local REST API -> API Key)
OBSIDIAN_HOSToptional Host of the Local REST API (default: http://127.0.0.1) Default: http://127.0.0.1
OBSIDIAN_PORToptional Port of the Local REST API (default: 27123) Default: 27123
LOG_DIRoptional Directory for audit logs (default: ./logs) Default: ./logs

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add obsidian-mcp-secure -e 'OBSIDIAN_API_KEY=<OBSIDIAN_API_KEY>' -- npx -y obsidian-mcp-secure@1.0.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "obsidian-mcp-secure": {
      "args": [
        "-y",
        "obsidian-mcp-secure@1.0.4"
      ],
      "command": "npx",
      "env": {
        "OBSIDIAN_API_KEY": "<OBSIDIAN_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "obsidian-mcp-secure": {
      "args": [
        "-y",
        "obsidian-mcp-secure@1.0.4"
      ],
      "command": "npx",
      "env": {
        "OBSIDIAN_API_KEY": "<OBSIDIAN_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "OBSIDIAN_API_KEY",
      "id": "obsidian-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "obsidian-mcp-secure": {
      "args": [
        "-y",
        "obsidian-mcp-secure@1.0.4"
      ],
      "command": "npx",
      "env": {
        "OBSIDIAN_API_KEY": "${input:obsidian-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.obsidian-mcp-secure]
command = "npx"
args = ["-y", "obsidian-mcp-secure@1.0.4"]
env = { "OBSIDIAN_API_KEY" = "<OBSIDIAN_API_KEY>" }

For AI agents

  1. Ask the user for: OBSIDIAN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: read_note, list_notes, create_note, edit_note, delete_note, search_notes.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json