obsidian-remote-mcp: Instructions file for Claude Code

CLAUDE.md

obsidian-remote-mcp CLAUDE.md is an instructions file for Claude Code from rollecode/obsidian-remote-mcp. It costs 618 tokens per session, scanned A, original, MIT.

Project instructions for obsidian-remote-mcp, covering commits, coding style, architecture, and security rules. They are written for Claude Code.

In plain words
What is it for?
They are for understanding obsidian-remote-mcp, making correctly styled changes, creating suitable commits, and preserving its security invariants.
Why use it?
They provide repository-specific guidance so the coding agent can change the project while respecting its design and security constraints.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is rollecode/obsidian-remote-mcp's own configuration. It tells Claude Code how to work on obsidian-remote-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything obsidian-remote-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rollecode/obsidian-remote-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rollecode/obsidian-remote-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/rollecode/obsidian-remote-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for obsidian-remote-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rollecode/obsidian-remote-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/rollecode/obsidian-remote-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/rollecode/obsidian-remote-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/rollecode/obsidian-remote-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for obsidian-remote-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rollecode/obsidian-remote-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/rollecode/obsidian-remote-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 618 This file is loaded in full into every session.
When invoked 618 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00618 $0.00618
Opus 5.5 $0.00247 $0.00247
Sonnet 5.5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

Measured 7d ago against content hash 3ac4d0d267f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

obsidian-remote-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commits and code style

  • 2 space indents
  • One logical change per commit
  • Commit subjects: one line, under 50 characters (GitHub's display limit)
  • Use present tense in commits and CHANGELOG.md
  • Use sentence case for headings (not Title Case)
  • Never use bold text as headings, use proper heading levels instead
  • Always add an empty line after headings
  • No formatting in CHANGELOG.md except inline code and when absolute necessary
  • Use * as bullets in CHANGELOG.md
  • CHANGELOG.md bullets: 2-10 words
  • Rationale belongs in code comments or docs, never in commits or CHANGELOG.md
  • Real semver: patch = fix/tweak, minor = new capability, major = breaking change. Default to patch
  • One version bump per work session, not per commit or per fix
  • Never use Claude watermark in commits (FORBIDDEN: "Co-Authored-By")
  • No emojis in commits or code
  • Keep CHANGELOG.md date up to date when adding entries

Architecture

  • auth-server.js is the only network security boundary: OAuth 2.1 authorization server plus resource guard, proxying to supergateway on :8420
  • Port 8420 has no authentication at all and must never be exposed
  • Two credential paths by design: OAuth for Claude.ai, static bearer token for Claude Code
  • Tokens and authorization codes are stored as SHA-256 hashes in SQLite
  • Single user by design - "authentication" is proving you know one password, there are no accounts
  • vault-mcp.js is the MCP server over the vault, stdio only, no auth of its own. Tools live in lib/tools/, shared parsing in lib/
  • Every tool advertises a vault property, because relaxVaultRequirement in the auth server keys off it to inject DEFAULT_VAULT
  • Listings, tags, links and search all read one index in lib/vault.js. Every write calls vault.invalidate()
  • npm test runs the whole tool surface through a real MCP client against a throwaway vault. Add a case there for anything new

Security invariants

Do not weaken these without a deliberate decision:

  • Every filesystem path goes through resolveInVault, which resolves symlinks and proves containment
  • .obsidian is never written to
  • Deletes move to .trash unless the caller asks for permanent
  • Writes are temp-file-then-rename, never truncate in place
  • PKCE S256 only, never plain
  • Redirect URIs matched exactly, never by prefix
  • Authorization codes single use, deleted on first sight
  • Refresh tokens rotate on every use
  • Token audience validated against the resource identifier
  • Secrets compared with crypto.timingSafeEqual
  • A bad client_id or redirect_uri renders an error, never redirects

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +8 lines · +191 tokens per session 3ac4d0d267f2
  2. 2mo ago First seen · 39 lines · 427 tokens per session scan A dc67875f003e

Subscribe to this mod's changes

obsidian-remote-mcp CLAUDE.md is an instructions file published in the GitHub repository rollecode/obsidian-remote-mcp (2 stars, last pushed 7d ago), licensed MIT. It adds 618 tokens to every session, about $0.0025 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

mcp-server-excel copilot-instructions.md

Copilot instructions for sbroenne/mcp-server-excel: This repository contains generated plugin publication output. Before changing anything, read the repository warning.

sbroenne/mcp-server-excel · 107 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens