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/rubatoyd/nl-openapi-mcp/claude-mdgit clone --depth 1 https://github.com/rubatoyd/nl-openapi-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/rubatoyd/nl-openapi-mcp/claude-md)<a href="https://agentmods.dev/instructions/rubatoyd/nl-openapi-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/rubatoyd/nl-openapi-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.06057 | $0.06057 |
| Opus 5 | $0.03028 | $0.03028 |
| Sonnet 5 | $0.01211 | $0.01211 |
| Haiku 4.5 | $0.00606 | $0.00606 |
Grade A, and why
nl-openapi-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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.
nl-openapi-mcp — 프로젝트 지침
국립중앙도서관(NL) 소장자료 검색 OpenAPI 수집기. 공개 MCP 서버 + CLI. 자매 프로젝트 kci-openapi-mcp(
../KCI openAPI) · scienceON-mcp(../scienceon)와 동일 아키텍처. API 규격 → docs/NL_API_GUIDE.md · 이력 → docs/작업일지.md
1. 목표
연구 초반 자료수집 단계에서 반복 재사용하는 도구. 국립중앙도서관 소장자료(단행본·온라인자료)의 서지·KDC 분류·청구기호·원문 제공 여부를 검색·수집해 후속 분석 입력 데이터를 안정적으로 생산한다. KCI·ScienceON(학술논문)과 상호보완: 이쪽은 단행본·회색문헌 축을 담당한다.
2. 확정 결정사항
| 항목 | 결정 |
|---|---|
| 언어/런타임 | Python 3.10+ |
| 패키지 관리 | uv (pyproject + uv.lock). venv는 클라우드 폴더 밖 C:/Users/user/.venvs/nl-openapi-mcp (UV_PROJECT_ENVIRONMENT, .claude/settings.local.json 에 지정) |
| 의존성 | mcp(FastMCP, <2 상한 필수), requests, openpyxl, python-dotenv, truststore |
| 인터페이스 | 공용 코어 + MCP 서버(server.py) + CLI(cli.py) |
| 대상 API | 소장자료 검색 www.nl.go.kr/NL/search/openApi/search.do (JSON) |
| 출력 | xlsx · csv · json · sqlite |
| 공개 | MIT. .env·.claude/settings.local.json·output/ 는 gitignore |
3. 구조
src/nl_mcp/
config.py # .env 로딩, 엔드포인트, API_RECORD_CAP(500), use_os_trust()
models.py # Holding 스키마(실응답 24개 필드 기반) + 발행연도 정규화
parser.py # JSON 봉투 파싱 · HTML 하이라이트 제거 · 오류코드 → ParseError
client.py # 검색/페이징/재시도 + search_meta(절단 노출) + search_terms_meta(합집합)
exporters.py # xlsx/csv/json/sqlite
server.py # MCP 도구: nl_status / nl_search / nl_collect
cli.py # status / search / collect
docs/ # NL_API_GUIDE.md(★ 실측 스키마·500 상한) · 작업일지.md · ARCHITECTURE.md
tests/ # samples.py = **실응답 발췌** + 파서·절단·서버·내보내기 회귀 66건
packaging/binary/ # PyInstaller 자체완결 바이너리용 entry + manifest
4. 자격증명
- 변수:
NL_API_KEY(www.nl.go.kr 오픈API 신청으로 발급). 토큰/AES/공인IP 등록 불필요 — 평문 key 쿼리. NL_OS_TRUST(기본 1): 교육망·사내망 SSL 인터셉션 대응. 0 이면 비활성.- ⚠️ 인증키는 코드/로그/커밋 금지 —
.env(gitignore) 또는.claude/settings.local.jsonenv 로만.
5. MCP 도구
| 도구 | 설명 |
|---|---|
nl_status |
인증키 유효성 + 소장자료 검색 API 실제 왕복 1회 |
nl_search |
소장자료 검색. total·truncated·cap_hit 동반 반환 |
nl_collect |
검색어 합집합 수집 → xlsx/csv/json/sqlite. meta.cap_hit_terms 로 상한 검색어 지목 |
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.
- 5d ago First seen · 214 lines · 6,057 tokens per session scan A caf780e89e59
nl-openapi-mcp CLAUDE.md is an instructions file published in the GitHub repository rubatoyd/nl-openapi-mcp (0 stars, last pushed today), licensed MIT. It adds 6,057 tokens to every session, about $0.0303 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.
Other instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
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).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
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.
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).