nl-openapi-mcp: Instructions file for Claude Code

CLAUDE.md

nl-openapi-mcp CLAUDE.md is an instructions file for Claude Code 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 자매 프로젝트 **kci-openapi-mcp**(`../KCI openAPI`) · **scienceON-mcp**(`../scienceon`)와 동일 아키텍처..

Reuse

Borrowing it

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rubatoyd/nl-openapi-mcp/claude-md/github.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/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 nl-openapi-mcp CLAUDE.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.06057 $0.06057
Opus 5.5 $0.02423 $0.02423
Sonnet 5.5 $0.01211 $0.01211
Haiku 4.5 $0.00606 $0.00606

Measured 2mo ago against content hash caf780e89e59, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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 · 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. 2mo 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 (1 stars, last pushed yesterday), licensed MIT. It adds 6,057 tokens to every session, about $0.0242 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

nl-openapi-mcp CLAUDE.md compared with instructions from other repositories

nl-openapi-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nl-openapi-mcp CLAUDE.mdrubatoyd/nl-openapi-mcpInstructions file1yesterdayMITA6,057Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode