obsidian-mcp-secure
v1.0.4Secure MCP server for Obsidian with OWASP Top 10 controls and full audit logging.
Values you need
| Variable | What it is | |
|---|---|---|
OBSIDIAN_API_KEY | required secret | API Key generated by Obsidian's Local REST API plugin (Settings -> Local REST API -> API Key) |
OBSIDIAN_HOST | optional | Host of the Local REST API (default: http://127.0.0.1) Default: http://127.0.0.1 |
OBSIDIAN_PORT | optional | Port of the Local REST API (default: 27123) Default: 27123 |
LOG_DIR | optional | 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.4Add 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
- Ask the user for: OBSIDIAN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: read_note, list_notes, create_note, edit_note, delete_note, search_notes.
- 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