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.
npx agentmods add instructions/kitepon/ip-mcp/claude-mdgit clone --depth 1 https://github.com/kitepon/IP-MCPWrote 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.
[](https://agentmods.dev/instructions/kitepon/ip-mcp/claude-md)<a href="https://agentmods.dev/instructions/kitepon/ip-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/kitepon/ip-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.03124 | $0.03124 |
| Opus 5 | $0.01562 | $0.01562 |
| Sonnet 5 | $0.00625 | $0.00625 |
| Haiku 4.5 | $0.00312 | $0.00312 |
Grade B, and why
IP-MCP CLAUDE.md scanned grade B with 1 finding 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
JPO 認証情報はデプロイホストの `~/ip-mcp/.env`(`chmod 600`)にのみ置く。Git にコミットしない。`.gitignore` で `.env` / `cache/` / `logs/` を除外する。 How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
現状
Phase 1A / 1B / 1.x 完了済(2026-05-01 時点)。リポジトリには動作する実装が入っている:
src/ip_mcp/tools_official/— 12 ツール (番号変換 / 経過情報 / 登録 / 引用 / 関連出願 / 出願人 / 書類 / J-PlatPat URL / OPD / 全件取得)src/ip_mcp/tools_external/— 1 ツール (Google Patents キーワード検索、独立実装)src/ip_mcp/auth/— OAuth 2.1 サーバー (DCR + PKCE + マスターパスワード認可、SqliteOAuthProviderで SQLite 永続化)Dockerfile/docker-compose.yml—./cache,./logs,./dataの 3 ボリュームtests/— 45 テスト、全緑
公開構成: ipmcp.<domain> → Cloudflare Edge → Cloudflare Tunnel (cloudflared が自宅から outbound) → Caddy (CF Origin Cert で end-to-end TLS) → <DEPLOY_HOST>:8765 → Docker コンテナ。CF Tunnel が outbound 接続でエッジに繋がる方式のため、ホームルーターのポート開放もヘアピン NAT 回避も不要。LAN 内/外を問わず CF エッジ経由で同じ URL に届く。
Phase 1.5 完了: OAuth 永続化 / ヘアピン NAT 回避 / アクセスログ JSONL (logs/access.jsonl) + 集計スクリプト (scripts/summarize_logs.py) / マスターパスワード rotate 手順 (OPERATIONS.md)。
Phase 2 (未着手): 拒絶理由通知書 PDF 構造化、AI レビューパイプライン、EPO OPS / WIPO PATENTSCOPE 補完。
PLAN.md は設計計画書として継続維持中(§11 段階表に進捗、§12 リスク表で完了済リスクを取り消し済)。
GitHub: https://github.com/kitepon-rgb/IP-MCP (public、これが正規リモート)
このプロジェクトが目指すもの
特許庁の公式「特許情報取得API」(基底 https://ip-data.jpo.go.jp) を包む Python 製 MCP (Model Context Protocol) サーバー を作り、LLM クライアントから呼べるようにする。<DEPLOY_HOST>(自宅 LAN, SSH ユーザー <SSH_USER>)の Docker 上で常駐させ、Claude Desktop / Claude Code から HTTP+SSE で利用する。
譲れないアーキテクチャ規則
ユーザーから明示的に指示された方針。これを破ったら退行 (regression)。逸脱の前に必ず質問すること。
- データソース間の暗黙のフォールバック禁止。公式 JPO API の呼び出しが失敗 (not_found / レート上限 / 一時障害) しても、Google Patents 等の外部ソースに自動で切り替えてはならない。失敗は失敗としてそのまま返し、別ツールを呼ぶかどうかは LLM 側に判断させる。
- ツールは完全に分離された 2 カテゴリに分ける:
tools_official/— 公式 JPO API を叩く。ツール名はjpo_*で始める。レスポンスは{"source": "jpo_official", ...}。tools_external/— 非公式ソース (キーワード検索用の Google Patents XHR 等) を叩く。ツール名はexternal_*で始める。レスポンスは{"source": "google_patents_unofficial", ...}。tools_official/からtools_external/への import は禁止(逆も同様)。これは完了基準として強制する。
- 同一ツール内で許される再試行は次の 2 つだけ: 401/期限切れ時のトークン再取得、JPO の
statusCode 303(一時的な高負荷)に対する指数バックオフ。どちらも同一データソース内に閉じる。 - すべてのツール description は冒頭に
Source:行を必ず置き、データの出所が公式か非公式かを LLM が判別できるようにする。レスポンスペイロードにもトップレベルにsourceフィールドを必ず含める。
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.
- 3d ago First seen · 110 lines · 3,124 tokens per session scan B 88628fe337ed
IP-MCP CLAUDE.md is an instructions file published in the GitHub repository kitepon/IP-MCP (0 stars, last pushed 21d ago), licensed MIT. It adds 3,124 tokens to every session, about $0.0156 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
Basecamp-MCP-Server CLAUDE.md
Instructions for georgeantonopoulos/Basecamp-MCP-Server, covering claude.md, development commands, setup (one-time) - requires python 3.10+, option 2: using pip (if python 3.10+ already installed) and oauth authentication.
BetTrack copilot-instructions.md
Instructions for WFord26/BetTrack, covering bettrack - ai agent instructions, project overview, project structure, architecture fundamentals and dual-api design.
BetTrack wiki-docs.instructions.md
Wiki documentation link formatting and structure rules. Enforces .md-extension cross-page links, correct anchor syntax, and consistent page structure for GitHub Wiki publishing.
FusionAL CLAUDE.md
Claude Code instructions for JRM-FusionAL/FusionAL, covering claude.md — fusional, session init — run this first, recall protocol (mandatory, visible), auto-log protocol (mandatory, ambient) and critical failure modes (already logged — do not repeat).
aifolimizer CLAUDE.md
Instructions for tusharagg1/aifolimizer, covering aifolimizer - project context, session startup (read every new session), what this is, architecture and how to start.
gitee-mcp AGENTS.md
AGENTS.md instructions for sandraschi/gitee-mcp, covering gitee-mcp, reading order, directory map, entry points and key rules.