lab-notebook-mcp CLAUDE.md

lab-notebook-mcp CLAUDE.md is an instructions file for coding agents 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/fc0web/lab-notebook-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/fc0web/lab-notebook-mcp

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00808 $0.00808
Opus 5 $0.00404 $0.00404
Sonnet 5 $0.00162 $0.00162
Haiku 4.5 $0.00081 $0.00081

Measured 3d ago against content hash f9ad38298a14, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 12d ago), licensed MIT. It adds 808 tokens to every session, about $0.0040 per session on Opus 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

garmin-health-data CLAUDE.md

Instructions for diegoscarabelli/garmin-health-data, covering claude.md, readme.md, database schema architecture, schema documentation and formatting ddl files.

diegoscarabelli/garmin-health-data · 1,240 tokens

Biomedical-Agent-DB-Karpathy CLAUDE.md

Instructions for stanveer/Biomedical-Agent-DB-Karpathy, covering claude.md, 1. normalize, don't guess, 2. keep entity types separate, 3. provenance first and 4. minimal, verifiable schema changes.

stanveer/Biomedical-Agent-DB-Karpathy · 553 tokens

mcp-openfoodtox AGENTS.md

Instructions for spyrosze/mcp-openfoodtox, covering efsa openfoodtox mcp server - project instructions, project overview, dataset structure, core tables (sqlite) and key relationships.

spyrosze/mcp-openfoodtox · 6,574 tokens

chembl-mcp-server AGENTS.md

AGENTS.md instructions for cyanheads/chembl-mcp-server, covering developer protocol, server surface, core rules, patterns and tool.

cyanheads/chembl-mcp-server · 7,121 tokens

odsbox-jaquel-mcp AGENTS.md

AGENTS.md instructions for totonga/odsbox-jaquel-mcp: This repository contains the code of an FastMCP agent that can be used to query the odsboxpython package to access ASAM ODS servers. Its setup to use modern Python tools.

totonga/odsbox-jaquel-mcp · 63 tokens

braina GEMINI.md

Instructions for brainets/braina, covering project: braina (brain interaction analysis), 1. project context & purpose, 2. commands, verify environment (all core dependencies) and run the verification test suite for frites + hoi.

brainets/braina · 1,269 tokens