Atlas / MCP servers / coddingtonbear / Local REST API

Local REST APICAUTION

mcp/coddingtonbear/local-rest-api

A secure REST API and Model Context Protocol (MCP) server for your vault.

Verdict
CAUTION
Grade
B
Trust score
87 /100
Exposed tools
7 7r · 0w · 0d
Transport
streamable-http
License
MIT
Stars
2,946
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Give your scripts, browser extensions, and AI agents a direct line into your Obsidian vault via a secure, authenticated REST API.

  • Interactive API docs: https://coddingtonbear.github.io/obsidian-local-rest-api/
  • Obsidian Community page: https://community.obsidian.md/plugins/obsidian-local-rest-api/
  • What you can do
  • Quick start
  • REST API
  • MCP clients
  • Claude Code
  • Claude Desktop
  • Cursor
  • Other clients
  • API overview
  • Browser clients and response headers
  • Patching notes
  • Raw-content mode
  • Targeting specific sections
  • Searching
  • MCP (Model Context Protocol)
  • Protocol revisions
  • Connecting a client
  • Available tools
  • Binary files and attachments
  • Signed URLs
  • Available resources
  • API Extensions
  • Typed extension API
  • Known extensions
  • Contributing
  • Credits

What you can do

Access your vault through the REST API or the built-in [MCP server](https://modelcontextprotocol.io/) — both interfaces expose the same core capabilities, so scripts, browser extensions, and AI agents all speak the same language.

  • Read, create, update, or delete notes — full CRUD on any file in your vault, including binary files
  • Surgically patch specific sections — target a heading, block reference, or frontmatter key and append, prepend, replace, delete, or move just that section without touching the rest of the file
Read from source at commit 3205801641e5OBSERVED · 2026-09-22
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add obsidian-local-rest-api --env OBSIDIAN_API_KEY=${OBSIDIAN_API_KEY} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "obsidian-local-rest-api": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "${OBSIDIAN_API_KEY}"
      }
    }
  }
}
03

Exposed tools (7)

7 read · 0 write · 0 destructive.

ToolRiskDescription
custom_toolreadFirst
extension_toolreadFrom an extension
my_toolreadDoes something
notifying_toolreadFrom an extension
removable_toolreadDesc
temporary_toolreadGoes away
vault_listreadOverride
04

Trust audit

CAUTIONgrade B · trust 87/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (3 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
found

Findings (14)

MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
src/certificates.test.ts:133
expect(crypto.privateKey).toMatch(/^-----BEGIN RSA PRIVATE KEY-----/);
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
src/certificates.test.ts:136
expect(crypto.caPrivateKey).toMatch(/^-----BEGIN RSA PRIVATE KEY-----/);
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcpHandler.test.ts:1646
await expect(cb({ path: "a.md", destination: "../../../etc/passwd" })).rejects.toThrow(
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcpHandler.test.ts:1723
await expect(cb({ path: "a.md", destination: "../../../etc/passwd" })).rejects.toThrow(
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcpHandler.test.ts:2451
["relative traversal", "../../Ausserhalb.md"],
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcpHandler.test.ts:2452
["deep relative traversal", "../../../../some/other/writable/path/file.md"],
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcpHandler.test.ts:2454
["traversal in the middle", "notes/../../outside.md"],
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:62
curl -k https://127.0.0.1:27124/
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:66
https://127.0.0.1:27124/vault/
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:70
https://127.0.0.1:27124/vault/path/to/note.md
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:74
https://127.0.0.1:27124/vault/path/to/note.md/heading/My%20Section
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:81
https://127.0.0.1:27124/vault/path/to/note.md
LOWNetwork egress · net.tls_off · CWE-200, CWE-319
src/integration/meta.test.ts:71
{ host: hostname, port: Number(port), rejectUnauthorized: false, servername: hostname },
Why it matters. certificate verification is disabled
Fix. leave verification on
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@eslint/js, @types/cors, @types/express, @types/glob-to-regexp, @types/jest, @types/mime-types, @types/node, @types/node-forge
Why it matters. 30 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-09-22 · audit v0.4.1 · source sha 3205801641e5full audit observations/trust-audit/mcp-server/coddingtonbear__local-rest-api.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-223205801641e5CAUTIONB87score 88 -> 87
2026-09-1847c34ac34b2cCAUTIONB88first audit
06

Questions

What is the Local REST API MCP server?

A secure REST API and Model Context Protocol (MCP) server for your vault.

What tools does Local REST API expose?

7 in total: 7 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Local REST API safe to connect to an agent?

With care. The audit graded it B (87/100) and found 14 things worth knowing before you trust this server, listed below with the exact line each was found on.

What credentials does Local REST API need?

It reads OBSIDIAN_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Local REST API run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as obsidian-local-rest-api at 5.2.0.

How current is this page?

The grade is for one exact copy of the source (3205801641e5), read on 2026-09-22. The repository is watched and re-audited when it changes.

Advertisement