프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

midnight-cast

제작자: Kanasjnr버전 0.2.1i★ –i내 컴퓨터에서 실행
레지스트리 이름io.github.Kanasjnr/midnight-cast

설치

개요

제작자가 쓴 설명(영어 원문)

Read-only tools for live Midnight networks: health, transactions, DUST, errors and example code

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: stdio
  • 카테고리: 클리닉 및 건강
  • 입력해야 할 값: BLOCKFROST_PREPROD_PROJECT_ID, BLOCKFROST_MAINNET_PROJECT_ID

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
  • 직접 입력할 값: BLOCKFROST_PREPROD_PROJECT_ID, BLOCKFROST_MAINNET_PROJECT_ID, MIDNIGHT_CAST_NETWORKS

비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.

필요한 것

  • npmNode.js 설치(npx 명령어용)

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요

{
  "mcpServers": {
    "midnight-cast": {
      "command": "npx",
      "args": [
        "-y",
        "midnight-cast",
        "mcp"
      ],
      "env": {
        "BLOCKFROST_PREPROD_PROJECT_ID": "your-value",
        "BLOCKFROST_MAINNET_PROJECT_ID": "your-value",
        "MIDNIGHT_CAST_NETWORKS": "your-value"
      }
    }
  }
}

터미널에서 이 명령어를 실행하세요

claude mcp add midnight-cast --env BLOCKFROST_PREPROD_PROJECT_ID=your-value --env BLOCKFROST_MAINNET_PROJECT_ID=your-value --env MIDNIGHT_CAST_NETWORKS=your-value -- npx -y midnight-cast mcp

실행하기 전에 빈 값을 채워 주세요.

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

{
  "mcpServers": {
    "midnight-cast": {
      "command": "npx",
      "args": [
        "-y",
        "midnight-cast",
        "mcp"
      ],
      "env": {
        "BLOCKFROST_PREPROD_PROJECT_ID": "your-value",
        "BLOCKFROST_MAINNET_PROJECT_ID": "your-value",
        "MIDNIGHT_CAST_NETWORKS": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

{
  "servers": {
    "midnight-cast": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "midnight-cast",
        "mcp"
      ],
      "env": {
        "BLOCKFROST_PREPROD_PROJECT_ID": "your-value",
        "BLOCKFROST_MAINNET_PROJECT_ID": "your-value",
        "MIDNIGHT_CAST_NETWORKS": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

직접 입력할 값

  • BLOCKFROST_PREPROD_PROJECT_ID 비밀 env
    Blockfrost project ID for a Midnight Preprod project, needed only to query preprod. It is never shown to the model.
  • BLOCKFROST_MAINNET_PROJECT_ID 비밀 env
    Blockfrost project ID for a Midnight Mainnet project, needed only to query mainnet. It is never shown to the model.
  • MIDNIGHT_CAST_NETWORKS env
    Comma-separated networks the model may query, such as preview,preprod. Default: every built-in network.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 Kanasjnr 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

클리닉 및 건강 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 1022개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 1022개 중 65%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 1022개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

midnight-cast, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

입력해야 할 값: BLOCKFROST_PREPROD_PROJECT_ID, BLOCKFROST_MAINNET_PROJECT_ID

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.2.1)은 15일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Mirobody, FHIR MCP Server, Google Health MCP

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Mirobody

제작자: thetahealth

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

내 컴퓨터에서 실행★ 1,408Apache-2.0오늘 업데이트
설치

FHIR MCP Server

제작자: wso2

MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications

내 컴퓨터에서 실행★ 137Apache-2.09일 전 업데이트
설치

Google Health MCP

제작자: davidmosiah

Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents

내 컴퓨터에서 실행★ 79MIT4개월 전 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

midnight-cast

[!NOTE]

This project extends the Midnight Network with additional developer tooling.

Read-only CLI and MCP server for the Midnight networks: network health, error decoding, transactions, contracts, DUST, and working code from Midnight's official examples. Think Foundry `cast` for Midnight, not a wallet or app scaffold.

npx midnight-cast@latest health preview

or: npm i -g midnight-cast@latest && midnight-cast health preview

Preview needs nothing else. Preprod and mainnet go through Blockfrost and need a free project ID for each; see Quick start.

Note: midnight-cast also installs a short alias, mn, which runs the same commands. Other global CLIs (e.g. @mermaid-js/mermaid-cli, midnight-wallet-cli) install an mn too, so these docs, the hints and the JSON output always say midnight-cast.

midnight-cast health preview

Or step by step: midnight-cast ping preview && midnight-cast tip preview && midnight-cast versions preview

Requires Node.js 20+ (22+ recommended). Without Node.js, the release binaries install the same commands after checking the checksum:

curl -fsSL https://github.com/Kanasjnr/midnight-cast/releases/latest/download/install.sh | sh

On Windows, in PowerShell: irm https://github.com/Kanasjnr/midnight-cast/releases/latest/download/install.ps1 | iex. Where there's no curl, wget -qO- | sh works too. Alpine needs libstdc++ and libgcc first (apk add libstdc++ libgcc). MIDNIGHT_CAST_VERSION=0.2.0 pins a release and MIDNIGHT_CAST_INSTALL_DIR picks the directory (default ~/.local/bin). Each archive carries build provenance: gh attestation verify --repo Kanasjnr/midnight-cast.

Key capabilities

  • Read RPC, indexer, and proof-server health, and whether Midnight's own examples pass on the node a network runs
  • Compare live stack signals and a project's Midnight packages with the support matrix
  • Decode ledger, pallet, Substrate 1010, and JSON-RPC errors, and messages from current tooling and Blockfrost
  • Check a network, proof server and wallet are ready before the first transaction (preflight)
  • Inspect transactions, deployed contracts, DUST generation and DUST event streams
  • Find working code in Midnight's official examples for a topic in your own words (examples)
  • Serve all of it to AI agents as a read-only MCP server, with guidance for Claude Code, Codex, Gemini CLI, Cursor and others
  • Query block headers and raw JSON-RPC without writing scripts
  • Run without Node.js from a standalone binary

What it does

AreaCommands
Healthhealth, ping, tip, versions, preflight
Chainblock latest, block , rpc
Errorsdecode (ledger, pallet, 1010, jsonrpc, --raw)
Indexertx, contract, dust-status, dust-event, dust-events
Working code and backgroundexamples, explain (dust, 1010, versions, transcript, sync)
Agentsmcp, agents init
Configconfig init, config show

No wallet keys. No signing or proving.

Common workflows

Is the network healthy?
midnight-cast health preprod

Example output:

Network: preprod

Healthy: yes

Services: rpc: OK (668ms) indexer: OK (1215ms) proof-server: OK (1053ms) (optional) — version=8.1.0 (matches matrix 8.1.0)

Sync: RPC height: 2805470 Indexer height: 2805468 Delta: 2 (threshold 100) In sync: yes

Why did my tx fail?
midnight-cast tx <hash> --network preprod

midnight-cast decode --raw " "

Example output:

Type:     RegularTransaction

ID: 232830 Hash: e5c86fcd43eb9707e8f23d940e59a6c12ca7ad3ca7e9d2f1232843cc62de1b8c Block: 909000 (428660a6154a27cee57af3527cb3370ad3bbce94f461f433533b1413e24b71f4) Protocol: 22000 Status: PARTIAL_SUCCESS Fees: paid=1 Segments: 0:ok, 20003:ok, 35012:fail Failure: indexer v4 exposes segment success only (no failure reason) Hint: paste wallet/node error → midnight-cast decode --raw " " Actions: ContractCall DUST: 665110:DustSpendProcessed → midnight-cast dust-event 665110

Is my local stack aligned with the network?
midnight-cast versions preprod

Example output:

Checks:

node: expected=>=1.0.400 live=1.0.400 → OK (recommended 1.0.400) runtimeSpec: expected=1000300 live=1000300 → OK (node runtime spec_version vs matrix) indexer-api: expected=v4 live=v4 → OK (from configured indexer URL path) protocolVersion: expected=1000300 live=1000300 → OK (RPC specVersion vs indexer latest block) proof-server: expected=8.1.0 live=8.1.0 → OK (GET /version on configured proof server URL)

Summary: live stack matches matrix checks ✓

Quick start

npm i -g midnight-cast          # or: npx midnight-cast …

midnight-cast config init # ~/.config/midnight-cast/config.toml midnight-cast health preview midnight-cast decode 170 midnight-cast examples "dust sponsorship"

Networks: preview, preprod, mainnet, local — use --network or MN_NETWORK.

Preprod and mainnet go through Blockfrost, since Midnight retired its hosted preprod and mainnet endpoints (mainnet on 30 September 2026, preprod on 9 October). Blockfrost project IDs are per network: create a free Midnight Preprod project, a Midnight Mainnet one, or both, on blockfrost.io, then:

export BLOCKFROST_PREPROD_PROJECT_ID=<your Midnight Preprod project ID>

export BLOCKFROST_MAINNET_PROJECT_ID=nightmainnet... npx midnight-cast health preprod

Preview is still hosted by Midnight and needs no project ID. The project IDs are never printed. See docs/COMMANDS.md.

Debug ladder

When something breaks, run these in order:

  1. midnight-cast health — ping + sync + versions in one shot (preflight --address before a first transaction)
  2. midnight-cast ping — services up?
  3. midnight-cast tip — indexer synced?
  4. midnight-cast versions — stack matches support matrix?
  5. midnight-cast decode — what does the error mean?
  6. midnight-cast tx — what happened on chain?

Common one-liners

midnight-cast health preprod --json

midnight-cast ping preprod midnight-cast versions preprod midnight-cast decode --raw "1010: Invalid Transaction: Custom error: 186" midnight-cast decode 179 --network preview # ledger map stamped per network midnight-cast tx --network preprod # status, fees, segments; links dust-event ids midnight-cast block 909000 preprod # header at height (+ hash) midnight-cast dust-events --from 565900 --limit 10 --network preprod midnight-cast rpc chain_getHeader --json midnight-cast versions preprod --fail-on-mismatch # CI; local Midnight packages (either npm scope) vs matrix pins midnight-cast preflight preprod --address mn_addr_preprod1… # ready for a first transaction? midnight-cast contract preprod # latest action, circuit, deploy block, balances midnight-cast examples "send shielded tokens" # working code from Midnight's official examples midnight-cast explain sync # why a first wallet sync takes so long

Using with AI agents

An agent working on a Midnight project needs to know what the network is doing right now, what an error means, and what working code looks like. midnight-cast answers all three from live data and Midnight's own sources, in a form an agent can parse, and its MCP server can't change anything.

It sits next to two other sources an agent may already have. The Kapa answer engine answers questions from Midnight's documentation and examples. Midnight Expert gives agents skills and MCP tools for writing and verifying Compact and SDK code. midnight-cast is the part neither covers: the live state of preview, preprod and mainnet, the meaning of a specific error code on the ledger the network runs, whether a project's versions match the network, and which of Midnight's official examples shows a pattern.

The JSON contract

Add --json to any command for one stable envelope: ok, data, a structured error with a kind and hint, any warnings, and next, the follow-up commands an expert would run. midnight-cast explain --json describes every command, option, exit code and error kind in one call, and schemas/ has a JSON Schema for each command's output. Exit codes are 0 for success, 1 for a failed check and 2 for a usage error. See JSON output.

midnight-cast decode --raw "1010: Invalid Transaction: Custom error: 186" --json

midnight-cast explain --json

The MCP server

Agents that speak MCP can use midnight-cast directly: midnight-cast mcp runs an MCP server on stdio with 14 tools, health, preflight, ping, tip, versions, block, tx, dust_event, dust_events, contract, dust_status, decode, explain and examples, each returning the same envelope. For example, in Claude Code:

claude mcp add --transport stdio midnight-cast -- npx -y midnight-cast mcp

A sandbox or CI image without Node.js can run the same server from the standalone binary: midnight-cast mcp.

What an agent can and can't do with it
  • Every MCP tool only reads, and each is marked read-only to the client. None signs or submits a transaction, and none needs a wallet, a key or a seed. The CLI's rpc command, which passes any JSON-RPC method to a node, isn't an MCP tool.
  • MIDNIGHT_CAST_NETWORKS limits which networks the model may query, for example preview,preprod.
  • Tools that reach a network are rate limited, 30 calls a minute by default (MIDNIGHT_CAST_MAX_CALLS_PER_MINUTE), so a looping agent can't exhaust public endpoints or a Blockfrost plan.
  • The only secrets it holds are optional Blockfrost project IDs for preprod and mainnet. They're sent only to Blockfrost and redacted from every response, so the model never sees them.
  • decode, explain and examples work offline from data bundled with the release.
Guidance, skill and plugin

To teach a coding agent when and how to use midnight-cast, add the guidance to your project: midnight-cast agents init --write appends a marked section to AGENTS.md (read by Codex, Cursor, Copilot, Gemini CLI, Windsurf, Aider and others; use --file CLAUDE.md for Claude Code), or install the portable skill with npx skills add Kanasjnr/midnight-cast --skill midnight-cast. The snippets are in docs/agents.

In Claude Code, one plugin installs the skill, the MCP server and a /midnight-cast:diagnose [tx or error] command. When the plugin is enabled, Claude Code asks for optional Blockfrost project IDs for preprod and mainnet and keeps them in secure storage; left empty, an exported BLOCKFROST_PREPROD_PROJECT_ID or BLOCKFROST_MAINNET_PROJECT_ID is used. If you added the server with claude mcp add before, remove it with claude mcp remove midnight-cast so only the plugin's server runs:

claude plugin marketplace add Kanasjnr/midnight-cast

claude plugin install midnight-cast@midnight-cast

docs/MCP.md has the setup for Codex, Gemini CLI, Cursor, VS Code and others, the network allow-list, and how the Blockfrost project ID stays out of the model's sight.

Community & support

NeedWhere
Midnight errors, network issues, dev questionsMidnight Discord
midnight-cast bug or something not workingGitHub Issues

| New command or feature idea | [GitHub Issues](https://github.com/Kanasjnr/midnight-c

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기