# nethack-mcp

> nethack-mcp — nijingzhe-nethack-mcp. Use this tool when you need to integrate AI agents with the classic game NetHack, allowing them to play and interact with the game environment through a structured state and action DSL interface. It solves the problem of converting NetHack's text-based output into a machine-readable format, enabling agents to make decisions and take actions within the game. Ideal for use cases involving game playing, decision-making, and reinforcement learning, where agents can learn from interactions with the NetHack environment.

Canonical page: https://skillsregistry.net/skills/nijingzhe-nethack-mcp  
JSON: https://api.skillsregistry.net/v1/skills/nijingzhe-nethack-mcp

## Description

An MCP server that lets AI agents play NetHack. It spawns NetHack under a pseudo-terminal, parses the rendered screen into an LLM-friendly structured state, and exposes a small action DSL so the agent can emit action chunks instead of single keystrokes.

## Trust

- **Trust score (0–1):** 0.91
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** container
- **Runtime environment:** vm
- **Updated:** 2026-09-28

## Source

- **Source listing:** [GitHub](https://github.com/NiJingzhe/nethack-mcp)

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "nijingzhe-nethack-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/nijingzhe-nethack-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/nijingzhe-nethack-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
