lab-notebook-mcp: Instructions file for Claude Code

CLAUDE.md

lab-notebook-mcp CLAUDE.md is an instructions file for Claude Code from fc0web/lab-notebook-mcp. It costs 808 tokens per session, scanned A, original, MIT.

Repository instructions for a lab notebook server that permanently stores and searches measurement records. It separates that work from equipment control and theory-building systems.

In plain words
What is it for?
Use it to develop, run, and test the lab notebook server, enforce its read-only or read-write modes, store measurements, and search or compare experiment records.
Why use it?
It keeps experimental records append-only and limits access to sensitive data, arbitrary database queries, equipment, and stored artifacts. It also defines how different systems share responsibilities.

Instructions file for Claude Code

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

This is fc0web/lab-notebook-mcp's own configuration. It tells Claude Code how to work on lab-notebook-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 lab-notebook-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fc0web/lab-notebook-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/fc0web/lab-notebook-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/fc0web/lab-notebook-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 lab-notebook-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fc0web/lab-notebook-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/fc0web/lab-notebook-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fc0web/lab-notebook-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/fc0web/lab-notebook-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 lab-notebook-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fc0web/lab-notebook-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/fc0web/lab-notebook-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 808 This file is loaded in full into every session.
When invoked 808 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.00808 $0.00808
Opus 5.5 $0.00323 $0.00323
Sonnet 5.5 $0.00162 $0.00162
Haiku 4.5 $0.00081 $0.00081

Measured 2mo ago against content hash f9ad38298a14, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lab-notebook-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 2mo 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 · 60 lines

What it actually says

lab-notebook-mcp

測定の一次資料を永続化する MCP サーバー。benchtop(測定)と rei-aios(理論)を つなぐ共有レイヤー。設計の詳細は docs/design.md を参照。

不変の原則(変更しないこと)

  1. Append-only: 削除ツールを追加しない。訂正は supersede で表現する。
  2. モードゲーティング: ro モードでは書き込みツールを登録しない。 「呼ばれてから拒否」ではなく「存在させない」。
  3. 任意 SQL ツールを作らない: 必要な問い合わせは型付き専用ツールで追加する。
  4. 外部由来テキストは必ず でラップする。 provenance='external' のレコードを裸で返さない。
  5. 測定器に触らない: benchtop の責務。ここから機器へコマンドを送らない。
  6. アーティファクトの中身を返さない: メタデータとパスのみ。

運用ルール

  • run.operator にはイニシャルかハンドル名のみ。氏名を書かない。
  • note.body に顧客名・契約情報・個人情報を書かない。
  • 単位は experiment 内で統一する(mV と V を混在させない)。

開発

# 依存インストール (uv 使用時)
uv sync
uv run pytest

# または pip
python -m venv .venv
.venv/Scripts/activate    # Windows
# source .venv/bin/activate  # Linux/Mac
pip install -e ".[dev]"
pytest

# サーバー起動 (開発時、 rw モード)
LAB_NOTEBOOK_MODE=rw LAB_NOTEBOOK_ROOT=./_dev python -m lab_notebook

役割分担

  • 本サーバー: 事実の永続化・検索・比較
  • benchtop: 測定器の制御と生データ取得
  • rei-aios: 仮説生成と理論構築(本サーバーへは ro でのみ接続)

Cross-pollination with Rei stack

本 project は Rei stack の 4 systems (rei-aios / benchtop / mcp-lens / rei-automator-mcp) を 5 systems 化する 拡張だが、 chat-Claude 前 turn 「+4 MCP → AI 選択劣化」 warning に 抵触しない設計:

  • 責務が clean separation (benchtop=I/O, lab-notebook=永続化, rei-aios=推論)
  • 各 MCP が 独立して valid (相互 HTTP/IPC 依存なし、 ID sharing のみ)
  • ro モードで rei-aios 自律ループから 参照 = write 権限 は Claude Code / Cowork Claude のみ

関連 arc:

  • Rei-Automator STEP 1340 audit-log.ts (2026-08-17、 hash chain primitive origin)
  • benchtop v0.3.0 audit chain port (2026-08-17)
  • benchtop v0.4.0 experiment notebook 統合 (2026-08-17、 本 project と 責務 overlap あり、 「quick session-level notes」 vs 「structured multi-session records」 使い分け)
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. 2mo ago First seen · 60 lines · 808 tokens per session scan A f9ad38298a14

Subscribe to this mod's changes

lab-notebook-mcp CLAUDE.md is an instructions file published in the GitHub repository fc0web/lab-notebook-mcp (0 stars, last pushed 2mo ago), licensed MIT. It adds 808 tokens to every session, about $0.0032 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

lab-notebook-mcp CLAUDE.md compared with instructions from other repositories

lab-notebook-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lab-notebook-mcp CLAUDE.mdfc0web/lab-notebook-mcpInstructions file02mo agoMITA808Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file283ktodayMITA4,342Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot