Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Midnight + Next.js MCP

by FractionEstateversion 0.3.1i★ –iRuns on your computer
Registry nameio.github.FractionEstate/midnight-nextjs-mcp

Install

Overview

Description from the maker (original English)

Unified MCP server for Midnight blockchain development and Next.js dApps.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Developer tools
  • You need to fill in: GITHUB_TOKEN

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: GITHUB_TOKEN, LOG_LEVEL, MIDNIGHT_LOCAL

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "midnight-nextjs": {
      "command": "npx",
      "args": [
        "-y",
        "midnight-nextjs-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "your-value",
        "LOG_LEVEL": "your-value",
        "MIDNIGHT_LOCAL": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add midnight-nextjs --env GITHUB_TOKEN=your-value --env LOG_LEVEL=your-value --env MIDNIGHT_LOCAL=your-value -- npx -y midnight-nextjs-mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "midnight-nextjs": {
      "command": "npx",
      "args": [
        "-y",
        "midnight-nextjs-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "your-value",
        "LOG_LEVEL": "your-value",
        "MIDNIGHT_LOCAL": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "midnight-nextjs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "midnight-nextjs-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "your-value",
        "LOG_LEVEL": "your-value",
        "MIDNIGHT_LOCAL": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • GITHUB_TOKEN secret env
    GitHub Personal Access Token - increases API rate limits
  • LOG_LEVEL env
    Logging verbosity level
  • MIDNIGHT_LOCAL env
    Enable local mode with ChromaDB for offline semantic search

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account FractionEstate, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Developer toolsi

  • More stars than 0% of the other 4937 servers in this category
  • Published to the registry more recently than 2% of the other 4937 servers in this category
  • Basic checks equal to or better than 100% of the other 4937 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Midnight + Next.js MCP safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: GITHUB_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.3.1) reached the registry 10 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: GitHub, Desktop Commander, Cloudflare MCP

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitHub

GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.

by githubWidely used★ 34.2KUpdated 5 days ago

Computer or cloud

Desktop Commander

MCP server for terminal commands, file operations, and process management

by wonderwhy-erWidely used↓ 709.6K/wk★ 10.2KUpdated 17 days ago

Runs on your computer

Cloudflare MCP

Cloudflare MCP servers

by cloudflareGrowing★ 4.4KUpdated 14 months ago

Runs in the cloud✓ mcp.cloudflare.com

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Midnight + Next.js Development MCP Server

A Model Context Protocol (MCP) server combining Midnight Network blockchain development tools with Next.js DevTools for building decentralized applications.

Compatible with all MCP-enabled AI assistants: Claude, GitHub Copilot, Cursor, Windsurf, Codeium, Continue.dev, Zed, Sourcegraph Cody, and more.

🤖 Supported AI Assistants

This MCP server works with any AI assistant that supports the Model Context Protocol:

AI AssistantPlatformConfiguration
ClaudeDesktop App, VS CodeNative MCP support
GitHub CopilotVS Code, JetBrainsMCP extension
CursorIDEBuilt-in MCP support
WindsurfIDEBuilt-in MCP support
CodeiumVS Code, JetBrainsMCP integration
Continue.devVS Code, JetBrainsMCP config file
ZedIDEMCP support
Sourcegraph CodyVS CodeMCP extension

🌙 Features

Midnight Network Tools
Contract Development
  • `midnight_init` - Initialize development context
  • `midnight_compile_contract` - Compile Compact contracts to TypeScript/ZK artifacts
  • `midnight_analyze_contract` - Static analysis for contracts
  • `midnight_deploy_contract` - Deploy contracts to the network
  • `midnight_call_contract` - Execute circuit calls on deployed contracts
  • `midnight_scaffold_project` - Create new dApp projects from templates
Wallet & Tokens
  • `midnight_create_wallet` - Generate new wallet with seed phrase
  • `midnight_wallet_state` - Get detailed wallet state and balances
  • `midnight_transfer_tokens` - Transfer tDUST tokens
  • `midnight_get_balance` - Query token balances
Network & Queries
  • `midnight_network_status` - Check network health (Indexer, Proof Server, Node)
  • `midnight_get_block` - Query blockchain blocks
  • `midnight_get_transaction` - Query transaction details
  • `midnight_check_versions` - Check for Midnight package updates
Documentation
  • `midnight_search_docs` - Search Midnight documentation
  • `midnight-fetch-docs` - Fetch specific documentation pages
  • `midnight-sync-docs` - Sync documentation from official repo
  • `midnight-docs-status` - Check documentation sync status
  • `midnight-list-docs` - List available documentation sources
Next.js DevTools
  • `init` - Initialize Next.js development context
  • `nextjs_docs` - Search Next.js documentation
  • `nextjs_index` - Discover running dev servers
  • `nextjs_call` - Execute runtime diagnostic tools
  • `browser_eval` - Browser automation with Playwright
  • `upgrade_nextjs_16` - Next.js 16 upgrade guide
  • `enable_cache_components` - Cache Components migration

📦 Installation

# Clone the repository

git clone https://github.com/your-username/midnight-nextjs-mcp.git cd midnight-nextjs-mcp

Install dependencies

pnpm install

Build

pnpm build

🚀 Usage

Quick Start with npx

The easiest way to use this MCP server is via npx — no installation required:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }

Configuration Examples

The MCP configuration format is standardized across most AI assistants. Below are platform-specific examples:


Universal MCP Configuration

Most MCP clients use this standard JSON format. Add to your client's MCP configuration file:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }


VS Code (GitHub Copilot / Claude Extension)

Add to your VS Code settings.json or workspace .vscode/mcp.json:

{

"mcp.servers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }

Or for Claude extension specifically:

{

"claude.mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }

Claude Desktop (macOS)

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }

Claude Desktop (Windows)

Edit %APPDATA%\Claude\claude_desktop_config.json:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }

Claude Desktop (Linux)

Edit ~/.config/Claude/claude_desktop_config.json:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }

Cursor IDE

Add to your Cursor MCP configuration (.cursor/mcp.json in your project or global settings):

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }

Windsurf / Codeium

Add to your Windsurf MCP settings:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }


Continue.dev (VS Code / JetBrains)

Add to ~/.continue/config.json or your project's .continue/config.json:

{

"experimental": { "modelContextProtocolServers": [ { "name": "midnight-nextjs-mcp", "transport": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } ] } }


Zed Editor

Add to your Zed settings (~/.config/zed/settings.json on Linux, ~/Library/Application Support/Zed/settings.json on macOS):

{

"context_servers": { "midnight-nextjs-mcp": { "command": { "path": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } } }


Sourcegraph Cody

Add to your Cody MCP configuration:

{

"cody.experimental.mcp.servers": { "midnight-nextjs-mcp": { "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }


JetBrains IDEs (IntelliJ, WebStorm, etc.)

For AI assistants in JetBrains IDEs that support MCP, add to your MCP configuration:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }


Using Global Installation

If you prefer a global install instead of npx:

npm install -g midnight-nextjs-mcp

Then configure:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "midnight-nextjs-mcp" } } }

Local Development / From Source
{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "node", "args": ["/path/to/midnight-nextjs-mcp/dist/index.js"] } } }


Docker

Run the MCP server in a Docker container:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "docker", "args": ["run", "-i", "--rm", "fractionestate/midnight-nextjs-mcp:latest"] } } }

CLI Flags
# Enable both tool categories (default)

npx midnight-nextjs-mcp@latest

Disable Midnight tools (Next.js only)

npx midnight-nextjs-mcp@latest --no-midnight

Disable Next.js tools (Midnight only)

npx midnight-nextjs-mcp@latest --no-nextjs

Check package versions on startup

npx midnight-nextjs-mcp@latest --check-versions

Set version polling interval (default 24 hours)

npx midnight-nextjs-mcp@latest --poll-interval=12

🏗️ Project Structure

midnight-nextjs-mcp/

├── src/ │ ├── index.ts # Server entry point │ ├── tools/ │ │ ├── index.ts # Unified tool registry │ │ ├── midnight/ # Midnight Network tools │ │ │ ├── init.ts │ │ │ ├── network-status.ts │ │ │ ├── get-balance.ts │ │ │ ├── get-block.ts │ │ │ ├── get-transaction.ts │ │ │ ├── search-docs.ts │ │ │ ├── scaffold-project.ts │ │ │ ├── compile-contract.ts │ │ │ └── analyze-contract.ts │ │ └── nextjs/ # Next.js DevTools │ │ ├── init.ts │ │ ├── nextjs-docs.ts │ │ ├── nextjs_index.ts │ │ ├── nextjs_call.ts │ │ ├── browser-eval.ts │ │ ├── upgrade-nextjs-16.ts │ │ └── enable-cache-components.ts │ ├── providers/ # Midnight API providers │ │ ├── index.ts │ │ ├── indexer.ts # GraphQL indexer client │ │ ├── proof-server.ts # Proof generation client │ │ └── node.ts # Node RPC client │ ├── resources/ # MCP resources │ │ ├── (midnight-compact)/ # Compact language docs │ │ ├── (midnight-sdk)/ # SDK documentation │ │ ├── (cache-components)/ # Next.js cache docs │ │ └── ... │ ├── prompts/ # MCP prompts │ │ ├── create-midnight-contract.ts │ │ ├── upgrade-nextjs-16.ts │ │ └── enable-cache-components.ts │ └── types/ # TypeScript definitions │ ├── midnight.ts │ └── mcp.ts ├── package.json └── README.md

🔧 Configuration

Environment Variables

You can pass environment variables to the MCP server in your configuration:

{

"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"], "env": { "MIDNIGHT_NETWORK": "testnet", "MIDNIGHT_INDEXER_URL": "https://indexer.testnet.midnight.network/graphql" } } } }

Available Environment Variables
# Midnight Network (optional, defaults to testnet)

MIDNIGHT_NETWORK=testnet MIDNIGHT_INDEXER_URL=https://indexer.testnet.midnight.network/graphql MIDNIGHT_PROOF_SERVER_URL=https://proof-server.testnet.midnight.network MIDNIGHT_NODE_URL=https://rpc.testnet.midnight.network

Network Configurations
NetworkIndexerProof Server
Testnetindexer.testnet.midnight.networkproof-server.testnet.midnight.network
Devnetlocalhost:8080localhost:6300

📚 Resources

The server exposes documentation resources:

Midnight Resources
  • midnight://compact/overview - Compact language introduction
  • midnight://compact/reference - Complete syntax reference
  • midnight://sdk/overview - Midnight.js SDK guide
Next.js Resources
  • nextjs-docs://llms-index - Documentation index
  • cache-components://overview - Cache Components guide

🧪 Development

# Watch mode

pnpm dev

Type check

pnpm typecheck

Run tests

pnpm test

Build

pnpm build

📖 Documentation

Client-Specific MCP Documentation

🤝 Contributing

Contributions welcome! Please read the contributing guidelines first

Only the beginning is shown; read the rest in the repo

Ask PopNx