obsidian-mcp-server
Read, write, search, and surgically edit Obsidian notes, tags, and frontmatter via MCP.
Documentation & Preview
{ "mcpServers": { "mcp-obsidian-mcp-server": { "command": "npx", "args": [ "-y", "--package", "obsidian-mcp-server@3.7.0", "obsidian-mcp-server" ], "env": { "OBSIDIAN_API_KEY": "${ENV_OBSIDIAN_API_KEY}", "OBSIDIAN_BASE_URL": "${ENV_OBSIDIAN_BASE_URL}", "OBSIDIAN_VERIFY_SSL": "${ENV_OBSIDIAN_VERIFY_SSL}", "OBSIDIAN_REQUEST_TIMEOUT_MS": "${ENV_OBSIDIAN_REQUEST_TIMEOUT_MS}", "OBSIDIAN_ENABLE_COMMANDS": "${ENV_OBSIDIAN_ENABLE_COMMANDS}", "OBSIDIAN_READ_PATHS": "${ENV_OBSIDIAN_READ_PATHS}", "OBSIDIAN_WRITE_PATHS": "${ENV_OBSIDIAN_WRITE_PATHS}", "OBSIDIAN_READ_ONLY": "${ENV_OBSIDIAN_READ_ONLY}", "OBSIDIAN_DELETE_ELICITATION": "${ENV_OBSIDIAN_DELETE_ELICITATION}", "OBSIDIAN_OMNISEARCH_URL": "${ENV_OBSIDIAN_OMNISEARCH_URL}", "MCP_LOG_LEVEL": "${ENV_MCP_LOG_LEVEL}" } } }, "setup": { "fields": [ { "id": "ENV_OBSIDIAN_API_KEY", "label": "OBSIDIAN_API_KEY", "description": "Bearer token for the Obsidian Local REST API plugin (Settings → Community Plugins → Local REST API).", "required": true, "secret": false, "default": "" }, { "id": "ENV_OBSIDIAN_BASE_URL", "label": "OBSIDIAN_BASE_URL", "description": "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).", "required": false, "secret": false, "default": "http://127.0.0.1:27123" }, { "id": "ENV_OBSIDIAN_VERIFY_SSL", "label": "OBSIDIAN_VERIFY_SSL", "description": "Whether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_OBSIDIAN_REQUEST_TIMEOUT_MS", "label": "OBSIDIAN_REQUEST_TIMEOUT_MS", "description": "Per-request timeout in milliseconds.", "required": false, "secret": false, "default": "30000" }, { "id": "ENV_OBSIDIAN_ENABLE_COMMANDS", "label": "OBSIDIAN_ENABLE_COMMANDS", "description": "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.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_OBSIDIAN_READ_PATHS", "label": "OBSIDIAN_READ_PATHS", "description": "Optional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; trailing slashes normalized. Unset = full vault. Write paths are implicitly readable. Example: 'public/,projects/'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_OBSIDIAN_WRITE_PATHS", "label": "OBSIDIAN_WRITE_PATHS", "description": "Optional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault. Example: 'projects/,scratch/'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_OBSIDIAN_READ_ONLY", "label": "OBSIDIAN_READ_ONLY", "description": "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.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_OBSIDIAN_DELETE_ELICITATION", "label": "OBSIDIAN_DELETE_ELICITATION", "description": "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.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_OBSIDIAN_OMNISEARCH_URL", "label": "OBSIDIAN_OMNISEARCH_URL", "description": "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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_LOG_LEVEL", "label": "MCP_LOG_LEVEL", "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').", "required": false, "secret": false, "default": "info" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.cyanheads/obsidian-mcp-server", "registryVersion": "3.7.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.cyanheads%2Fobsidian-mcp-server/versions/3.7.0", "repository": "cyanheads/obsidian-mcp-server", "sourceCommit": "1f0b662214fc34a1db0773f00f02d2c282ade622", "namespaceRepositoryOwnerMatched": true, "package": { "registry": "npm", "identifier": "obsidian-mcp-server", "version": "3.7.0", "integrity": "sha512-NlaLj3KSw+nUgBK26lsiXOd9We8NKCNgDW2rHHpbpQrZX36KbW/udHjj+qre5Ra7Y1NEW0pHWpQwr2Otw33bdg==", "packageRepositoryMatched": true, "checkedAt": "2026-10-21T00:56:08.200Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }