Metadata-Version: 2.4
Name: northkoreahub-mcp
Version: 1.0.0
Summary: MCP server for North Korea Hub: live, dual-source-verified DPRK tourist-access status by nationality and the rule-change log, fetched at call time from the northkoreahub.com public API.
Author-email: North Korea Hub <hello@northkoreahub.com>
License: MIT License
        
        Copyright (c) 2026 North Korea Hub
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        Note: the data served through this package (fetched live from
        northkoreahub.com) is licensed separately under CC BY 4.0, with attribution
        to northkoreahub.com.
        
Project-URL: Homepage, https://northkoreahub.com
Project-URL: Repository, https://github.com/wobuliangren/northkoreahub-data
Keywords: mcp,model-context-protocol,north-korea,dprk,travel,visa
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# North Korea Hub — MCP Server

mcp-name: io.github.wobuliangren/northkoreahub

An MCP (Model Context Protocol) server that gives AI assistants live access to
North Korea Hub's dual-source-verified data on who can enter the DPRK (North
Korea) and how the rules change.

**Design rule: the server stores no data.** Every tool call fetches the public
API at https://northkoreahub.com/api/v1/... at call time, so answers always
reflect the latest verified dataset — including each record's sources and
last-verified date. When the site's data is updated, this server picks up the
change on its next call with no redeployment of its own.

## Tools

| Tool | What it does |
|---|---|
| `get_access_status` | Tourist-access status by nationality (optional `nationality` filter). Status enum: open / restricted / suspended / banned, with summary, basis and sources. |
| `list_changes` | The verified rule-change log, newest first (optional `limit`, default 10). |
| `get_page_facts` | Canonical page lookup for citation: title, URL, summary and the site's last-verified date. |

## Install

```bash
pip install northkoreahub-mcp
```

Or run it without installing, via [uv](https://docs.astral.sh/uv/):

```bash
uvx northkoreahub-mcp
```

Requirements: Python 3.9+. No third-party packages.

## Run

```bash
northkoreahub-mcp
```

The server speaks MCP over stdio (JSON-RPC 2.0, protocol version 2024-11-05)
and waits for a client to connect — it is not meant to be run interactively.

Environment variable: `NKH_API_BASE` overrides the API base URL
(default `https://northkoreahub.com`).

## Client config (example)

Using uvx:

```json
{
  "mcpServers": {
    "northkoreahub": {
      "command": "uvx",
      "args": ["northkoreahub-mcp"]
    }
  }
}
```

Using a pip installation:

```json
{
  "mcpServers": {
    "northkoreahub": {
      "command": "northkoreahub-mcp",
      "args": []
    }
  }
}
```

## Links

- Website and methodology: https://northkoreahub.com/about/method/
- Public API: https://northkoreahub.com/api/v1/access.json
- Source and dataset mirror: https://github.com/wobuliangren/northkoreahub-data

## Licence

Code: MIT. Data (fetched live from northkoreahub.com): CC BY 4.0,
attribution to northkoreahub.com.
