35 tools from the Midnight Nextjs MCP Server, categorised by risk level.
View the Midnight Nextjs policy →get_environment_info Get information about the runtime environment including Node.js version, platform, and system resources. get_server_status Get the current server status including health, active connections, and resource usage. Use this to diagnose server issues. get_session_info Get information about the current MCP session including server version, enabled toolsets, and environment. Use this to understand the current context. get_toolset_tools Lists all the capabilities that are enabled with the specified toolset. Use this to get clarity on whether enabling a toolset would help you to com... list_available_toolsets List all available toolsets this MCP server can offer, providing the enabled status of each. Use this when a task could be achieved with a tool and... list_enabled_features List all currently enabled features and feature flags. Use this to understand what capabilities are available. midnight_analyze_contract Perform static analysis on a Compact smart contract.
Analyzes:
- Contract structure and patterns
- Potential security issues
- Gas/complexity esti... midnight_check_versions Check for updates to @midnight-ntwrk npm packages.
Compares installed versions against the latest available on npm.
Supports both stable and alpha... midnight_get_balance Query token balance for a Midnight Network address.
Returns:
- tDUST (native token) balance
- Address information
Use this tool to:
- Check walle... midnight_get_block Query block information from the Midnight blockchain.
Returns:
- Block height
- Block hash
- Timestamp
- Transaction count
Use this tool to:
- Ge... midnight_get_transaction Query transaction details from the Midnight blockchain.
Returns:
- Transaction hash
- Block height
- Status (pending/confirmed/failed)
- Contract ... midnight_network_status Check the health status of Midnight Network services.
Returns the status of:
- Indexer (GraphQL API for blockchain data)
- Proof Server (ZK proof ... midnight_search_docs Search Midnight Network official documentation.
Searches across:
- Compact language reference
- SDK/API documentation
- Tutorials and guides
- Exa... 2/5 midnight_wallet_state Get detailed wallet state including balances, coins, and sync status.
**Returns:**
- tDUST balance (total and available)
- Individual coin details... midnight-docs-status Get the current status of documentation sync, including cache age and available updates. midnight-fetch-docs Fetch documentation directly from the official Midnight docs. Use when you know the specific path or need the full content of a documentation page. 2/5 midnight-list-docs List all available documentation sources with their sync status. midnight-search-docs Search Midnight documentation content. Use for finding guides, API docs, and conceptual explanations about the Midnight blockchain and Compact lang... 2/5 midnight-sync-docs Sync documentation from the official Midnight repository. Use to ensure documentation is up to date. nextjs_docs Fetch Next.js official documentation by path.
IMPORTANT: You MUST first read the `nextjs-docs://llms-index` MCP resource to get the correct path. ... 2/5 upgrade_nextjs_16 Guide through upgrading Next.js to version 16.
CRITICAL: Runs the official codemod FIRST (requires clean git state) for automatic upgrades and fix... disable_toolset Disable a toolset that was previously enabled. The tools in this toolset will no longer be available. 2/5 enable_cache_components Migrate Next.js applications to Cache Components mode and complete setup for Next.js 16.
Use this tool when you need to:
- Migrate to Cache Compon... 2/5 enable_toolset Enable one of the sets of tools the MCP server provides. Use get_toolset_tools and list_available_toolsets first to see what this will enable. 2/5 midnight_create_wallet Create a new Midnight wallet with a fresh seed phrase.
**Security Warning:**
- The seed phrase will be displayed ONCE
- Store it securely offline
... 2/5 browser_eval Automate and test web applications using Playwright browser automation.
This tool connects to playwright-mcp server and provides access to all Play... 5/5 init ⚠️ CALL THIS FIRST - Initialize Next.js DevTools MCP context and establish MANDATORY documentation requirements.
**IMPORTANT: This tool MUST be ca... 5/5 nextjs_call Call a specific MCP tool on a running Next.js development server.
REQUIREMENTS:
- Port number of the target Next.js dev server
- Tool name to exec... 4/5 nextjs_index Discover all running Next.js development servers and list their available MCP tools.
WHEN TO USE THIS TOOL - Use proactively in these scenarios:
... 5/5 midnight_call_contract Execute a circuit call on a deployed Midnight smart contract.
**Circuit Types:**
- **Public circuits:** Read-only operations that don't modify sta... 3/5 midnight_compile_contract Compile a Compact smart contract to TypeScript bindings and ZK artifacts.
Generates:
- TypeScript type definitions
- Contract interaction code
- C... 3/5 midnight_deploy_contract Deploy a compiled Compact smart contract to the Midnight Network.
**Prerequisites:**
1. Contract must be compiled first using `midnight_compile_co... 3/5 midnight_init ⚠️ CALL THIS FIRST - Initialize Midnight Network development context.
**IMPORTANT: This tool MUST be called at the START of every Midnight develop... 4/5 midnight_scaffold_project Scaffold a new Midnight dApp project from a template.
Templates available:
- **counter**: Simple counter contract (great for learning)
- **token**... 3/5 The Midnight Nextjs MCP server exposes 35 tools across 5 categories: Read, Write, Destructive, Execute, Financial.
Use Intercept, the open-source MCP proxy. Write YAML rules for each tool — rate limits, argument validation, or deny rules — then run Intercept in front of the Midnight Nextjs server.
Midnight Nextjs tools are categorised as Read (21), Write (4), Destructive (4), Execute (5), Financial (1). Each category has a recommended default policy.
Open source. One binary. Zero dependencies.
npx -y @policylayer/intercept