# Obsidian MCP server security: what it can access

> No official Obsidian MCP server exists. See what the Local REST API plugin allows, which tools delete notes and how to limit access.

There is no official Obsidian MCP server. The common pattern is a community MCP server that talks to the Obsidian Local REST API plugin, which gives whoever holds its API key full create, read, update and delete access to your vault. Two widely used servers do this, MarkusPfundstein/mcp-obsidian and cyanheads/obsidian-mcp-server. The second has a read-only switch and path rules. The first has seven tools, one of which deletes files.

## The plugin does the real work

The Local REST API plugin (coddingtonbear/obsidian-local-rest-api) describes `/vault/{path}` as read, write or delete for any file in your vault, including binary files. Every request needs the API key. HTTPS listens on port 27124 by default, and an HTTP server on 27123 is optional. The plugin makes its own certificate authority, so clients often need to trust it or skip verification. The README’s examples use `127.0.0.1`, and it doesn’t state the default bind address, so check the plugin’s settings.

Anything holding that key has the same reach as the plugin, whatever the MCP server tries to restrict.

## mcp-obsidian

The README lists seven tools. It runs over stdio and needs `OBSIDIAN_API_KEY`. `OBSIDIAN_HOST` defaults to `127.0.0.1` and `OBSIDIAN_PORT` to `27124`.

| Group | Tools |
| --- | --- |
| Read | `list_files_in_vault`, `list_files_in_dir`, `get_file_contents`, `search` |
| Write | `patch_content`, `append_content` |
| Delete | `delete_file`, which deletes a file or directory |

## obsidian-mcp-server (cyanheads)

It lists 14 tools, including `obsidian_get_note`, `obsidian_search_notes`, `obsidian_write_note`, `obsidian_patch_note`, `obsidian_manage_frontmatter` and `obsidian_delete_note`. It runs over stdio by default, or HTTP when `MCP_TRANSPORT_TYPE` is `http`. Its controls are in environment variables.

| Variable | Effect |
| --- | --- |
| `OBSIDIAN_READ_ONLY` | denies every write and disables the command-palette pair |
| `OBSIDIAN_READ_PATHS`, `OBSIDIAN_WRITE_PATHS` | limit where it can read and write |
| `OBSIDIAN_DENY_PATHS` | block paths |
| `OBSIDIAN_DELETE_ELICITATION` | when `true`, asks you to confirm before a delete |
| `OBSIDIAN_ENABLE_COMMANDS` | turns on `obsidian_list_commands` and `obsidian_execute_command`, which are opt-in |

Without `OBSIDIAN_DELETE_ELICITATION`, `obsidian_delete_note` deletes on the first call. Command execution runs Obsidian commands for the agent, so leave it off unless you need it.

## The risks

A vault mixes your writing with pasted web pages, meeting notes and secrets you saved once. Text from another source can carry instructions. A delete or overwrite goes through the plugin, and the READMEs don’t describe a recovery step. Keep the vault under version control or backup so a bad edit can be undone. Everything read goes to your model provider.

## Limit it in Claude Code

Rules use `mcp__<server>__<tool>`. For mcp-obsidian, deny delete and ask before writes.

```json
{
  "permissions": {
    "allow": ["mcp__obsidian__search", "mcp__obsidian__get_file_contents"],
    "ask": ["mcp__obsidian__patch_content", "mcp__obsidian__append_content"],
    "deny": ["mcp__obsidian__delete_file"]
  }
}
```

Use `--env OBSIDIAN_API_KEY=...` with `claude mcp add`, at local or user scope.

## Limit it in Codex

```toml
[mcp_servers.obsidian]
command = "uvx"
args = ["mcp-obsidian"]
env_vars = ["OBSIDIAN_API_KEY", "OBSIDIAN_HOST", "OBSIDIAN_PORT"]
disabled_tools = ["delete_file", "patch_content", "append_content"]
```

This is mcp-obsidian’s `uvx` setup from its README. For cyanheads/obsidian-mcp-server, use its own command and tool names.

## Checklist

- Prefer a server with a read-only mode.
- Use a separate vault for agent work.
- Back up the vault before the first write.
- Keep command execution off.

Checked against the vendor documentation on November 25, 2026. [obsidian-local-rest-api](https://github.com/coddingtonbear/obsidian-local-rest-api) · [mcp-obsidian](https://github.com/MarkusPfundstein/mcp-obsidian) · [obsidian-mcp-server](https://github.com/cyanheads/obsidian-mcp-server) · [Claude Code permissions](https://code.claude.com/docs/en/permissions) · [Codex MCP](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)

## What Excellent covers

Excellent doesn’t inspect MCP servers themselves, so it can’t tell you what a server exposes. Its free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code, which shows what an agent did after it used a server. For a local report without installing an app, [run the free scan](https://www.excellent.so/scan). Its script uses Python 3.9 or later when your Mac has it and the shell when it doesn’t, reads the logs locally and makes no network requests. [See a sample report](https://www.excellent.so/r/sample).

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Commands sent into an already running Codex shell fall outside that check. [Agent coverage](https://www.excellent.so/agents) · [Pricing](https://www.excellent.so/pricing). Pro is US-only for now.

Source: https://www.excellent.so/guides/obsidian-mcp-server
