Nl Openapi MCP logo

Nl Openapi MCP

Searches National Library of Korea holdings and exports bibliographic results to XLSX, CSV, JSON, or SQLite.

Install Nl Openapi MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nl-openapi-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/rubatoyd/nl-openapi-mcp",
        "nl-mcp"
      ],
      "env": {
        "NL_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings โ†’ Developer โ†’ Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env NL_API_KEY=YOUR_VALUE_HERE --transport stdio nl-openapi-mcp -- uvx --from git+https://github.com/rubatoyd/nl-openapi-mcp nl-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passedโ€” started and listed 3 tools correctly ().

Overview

nl-openapi-mcp connects MCP clients to the National Library of Korea Seoji OpenAPI for holdings searches and collection. Its tools check API credentials, search bibliographic records, and combine results from multiple terms before saving them to files. Responses report the API's 500-record limit through total, truncated, and cap_hit metadata, with partitioning and sort-depth options for broader collection. Reach for it when an agent needs Korean library holdings, classification data, call numbers, or full-text availability.

Use cases

  • Search Korean National Library holdings by keyword
  • Collect records for multiple related terms
  • Export bibliographic data to XLSX or JSON
  • Check classification, call numbers, and full-text availability

Key features

  • National Library of Korea holdings search
  • MCP tools for status, search, and collection
  • 500-record cap and truncation metadata
  • Sort-depth and automatic partitioning for broader collection
  • XLSX, CSV, JSON, and SQLite export
  • stdio, SSE, and streamable HTTP transports

Tools3

What Nl Openapi MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.5k tokens of context

Security & health

What it can reach and how reliably it runs โ€” from our own checks, not the maintainerโ€™s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 88d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests ยท 3Read-only tools ยท 3
Network at startup2 connections
Files written at startup16

Observed 2026-11-11 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev ยท nl-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars1Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Nl Openapi MCP works

What nl-openapi-mcp does

nl-openapi-mcp exposes the National Library of Korea's holdings search API through MCP and a command-line interface. It is intended for searching books and online materials, inspecting bibliographic metadata, and collecting records for later analysis. Returned data includes normalized fields and preserves the source fields in a raw record section.

The service covers information such as KDC classification, call numbers, and whether an item has an available original or linked full text. Its collection workflow can query several terms, merge records by identifier, and write the result as XLSX, CSV, JSON, or SQLite.

How it works

The MCP interface provides three tools:

  • nl_status checks the configured key and performs an API round trip.
  • nl_search searches National Library of Korea holdings.
  • nl_collect previews or saves the union of results for one or more search terms.

The upstream API reports totals above what it will return. A single search is capped at 500 records, so every search response includes total, truncated, and cap_hit indicators. When the cap is reached, meta.cap_hit_terms identifies affected terms and collection metadata reports records that remain unreachable.

For larger collections, sort_depth repeats requests with reversed sort order, while auto_partition divides capped results using server-side fields. partition_depth controls partitioning depth from one through three. These methods increase coverage but do not guarantee complete retrieval at every setting. exact performs phrase-style matching and is better suited to locating a known title than broad corpus collection. year_from and contains operate after records have been retrieved rather than removing the upstream cap.

Setup and configuration

The recommended local configuration runs the server over stdio with uvx and passes the National Library of Korea API key as NL_API_KEY. The repository also supports local development through uv sync, and release downloads include standalone bundles for Windows x64, macOS ARM64, and Linux x64.

The command is nl-mcp. Stdio is the default transport. Streamable HTTP can run at /mcp, and SSE can run at a specified port. HTTP binds to loopback by default and has no authentication; exposing it beyond the local machine can expose the API key, so external binding should be limited to a trusted network.

The API key comes from the National Library of Korea OpenAPI application process. The server uses the operating system trust store when NL_OS_TRUST is enabled, which helps in environments that intercept TLS with an organization-managed certificate.

Tools and capabilities

Search and collection results contain 25 normalized columns plus 24 original API fields. nl_collect sanitizes generated filenames and keeps output inside the selected output directory. It supports previews with save=false.

The CLI mirrors the MCP operations with status, search, and collect commands. Collection options include category selection, output formats, sort-depth expansion, and automatic partitioning. Search records distinguish document delivery values such as NL_VIEWER, LD_VIEWER, FILE, LINK, and N; similarly, license codes are represented as API codes rather than booleans.

Limitations and notes

The upstream service limits each search expression to 500 returned records even when its reported total is higher. Sorting and partitioning can expand coverage, but partitioning can still leave unreachable records, and the metadata should be checked before treating a collection as exhaustive.

Server-side date-range filtering has not been established; the single-year API field works, while year_from is local post-processing. HTTP transport does not provide authentication. The API key is sent as a plain query parameter, so network exposure and host binding require care.

Written by AllMCPs with AI assistance from the projectโ€™s README and listing data. How we build listings

Reviews

No reviews yet โ€” be the first to share how it worked for you.

Frequently Asked Questions about Nl Openapi MCP

nl-openapi-mcp is an MCP server that connects AI clients to the National Library of Korea Seoji OpenAPI. Its main tools, nl_status, nl_search, and nl_collect, check credentials, search holdings, combine results across terms, and save bibliographic records in formats including XLSX, CSV, JSON, and SQLite.

Install it with uvx by configuring the nl-mcp command and setting NL_API_KEY in the MCP client's environment. The repository also supports uv-based local development, while standalone Windows, macOS ARM64, and Linux x64 bundles are available from releases.

It requires a National Library of Korea OpenAPI key in NL_API_KEY. The key is obtained through the library's OpenAPI application process and is passed as a query parameter; token issuance, AES encryption, and public IP registration are not required.

Use sort-depth expansion and, when appropriate, automatic partitioning to increase coverage beyond one API response. The upstream limit remains 500 records per search expression, so inspect total, truncated, cap_hit, and partition metadata before treating the result as complete.

Yes, nl-openapi-mcp works with Cursor through its standard stdio MCP configuration. Add the server command, arguments, and NL_API_KEY to the client's MCP settings; it can also be run through streamable HTTP or SSE.

Related MCP servers

Add a badge to your READMEShow itโ€™s listed โ€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNl Openapi MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nl-openapi-mcp?style=directory)](https://allmcps.com/mcp/nl-openapi-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/nl-openapi-mcp"><img src="https://allmcps.com/api/badge/nl-openapi-mcp?style=directory" alt="Nl Openapi MCP on AllMCPs" /></a>