nl-openapi-mcp CLAUDE.md

nl-openapi-mcp CLAUDE.md is an instructions file for coding agents from rubatoyd/nl-openapi-mcp. It costs 6,057 tokens per session, scanned A, original, MIT.

Project instructions for an MCP server and command-line tool that search the National Library of Korea’s collection. MCP is a way for AI assistants to use external tools; the project covers books and online materials, including their catalogue details and whether full text is available.

In plain words
What is it for?
Building, maintaining, or extending the National Library of Korea search service and exporting results as XLSX, CSV, JSON, or SQLite data.
Why use it?
It gives the project consistent decisions about its API, structure, credentials, and output formats so collected library data can be reused reliably.

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/rubatoyd/nl-openapi-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/rubatoyd/nl-openapi-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 nl-openapi-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rubatoyd/nl-openapi-mcp/claude-md.svg)](https://agentmods.dev/instructions/rubatoyd/nl-openapi-mcp/claude-md)
Your own site
<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>
Per session 6,057 This file is loaded in full into every session.
When invoked 6,057 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.06057 $0.06057
Opus 5 $0.03028 $0.03028
Sonnet 5 $0.01211 $0.01211
Haiku 4.5 $0.00606 $0.00606

Measured 5d ago against content hash caf780e89e59, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

CLAUDE.md · 214 lines

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.json env 로만.

5. MCP 도구

도구 설명
nl_status 인증키 유효성 + 소장자료 검색 API 실제 왕복 1회
nl_search 소장자료 검색. total·truncated·cap_hit 동반 반환
nl_collect 검색어 합집합 수집 → xlsx/csv/json/sqlite. meta.cap_hit_terms 로 상한 검색어 지목

Read the full file on GitHub · 214 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. 5d ago First seen · 214 lines · 6,057 tokens per session scan A caf780e89e59

Subscribe to this mod's changes

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.

Related

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.

openai/codex · 5,182 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 · 6,785 tokens

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.

github/spec-kit · 7,104 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,296 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,469 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens