Read-only MCP and CLI tools for inspecting Midnight network health, transactions, errors, DUST, contracts, and examples.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Midnight Cast.
The midnight-cast MCP server provides agents with read-only inspection of Midnight networks. Its coverage includes RPC, indexer, and proof-server health; synchronization and version checks; transaction and contract details; DUST status and events; block headers; raw JSON-RPC queries; and decoding for ledger, pallet, Substrate 1010, JSON-RPC, and tooling errors.
It also searches working code from Midnight’s official examples using a natural-language topic. This is useful when an agent needs a reference implementation for subjects such as DUST sponsorship or shielded token transfers. The project is intended for network investigation and developer diagnostics, not as a wallet, application scaffold, signing client, or proving service.
The command-line interface and MCP server use configured Midnight network endpoints and return information without changing chain state. Supported networks are preview, preprod, mainnet, and local. Health checks combine service availability, synchronization signals, and support-matrix comparisons. Transaction inspection can show status, fees, segments, actions, and related DUST event identifiers.
The midnight-cast MCP server is suitable for agents diagnosing a failed transaction, checking whether a local stack matches the live network, or confirming that services are ready before a first transaction. JSON output provides a stable envelope containing success state, data, structured errors, warnings, and suggested follow-up commands. The CLI also supports an explanation command that describes available commands, options, exit codes, and error categories.
Node.js 20 or newer is required, with Node.js 22 recommended. Installation can use npm, npx, or a standalone release binary. The project also installs the mn alias, although its documentation and JSON output use the full midnight-cast name to avoid conflicts with other tools.
Run midnight-cast config init to create the configuration file at ~/.config/midnight-cast/config.toml. Select a network with --network or MN_NETWORK. Preview is hosted by Midnight and needs no project ID. Preprod and mainnet require separate Blockfrost project IDs, supplied through BLOCKFROST_PREPROD_PROJECT_ID and BLOCKFROST_MAINNET_PROJECT_ID.
The midnight-cast MCP server covers the same read-only areas as the CLI, including:
No wallet keys are used, and the material explicitly states that the project does not sign or prove transactions. Agents should therefore use it alongside, rather than in place of, tools that create, authorize, or submit transactions.
Preprod and mainnet access depends on valid Blockfrost configuration. The project IDs are network-specific and are not printed by the tool. Proof-server checks can be optional in health output. A transaction result may identify failed segments without providing the underlying failure reason when the available indexer data does not include one; decoding the original wallet or node error is then the recommended diagnostic step.
The standalone binary avoids requiring Node.js, but the supplied installation methods still perform platform-specific setup. The project is read-only, so it cannot modify network state or act as a wallet.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/midnight-cast)<a href="https://allmcps.com/mcp/midnight-cast"><img src="https://allmcps.com/api/badge/midnight-cast?style=directory" alt="Midnight Cast on AllMCPs" /></a>