プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Midnight + Next.js MCP

作者:FractionEstateバージョン 0.3.1i★ –iパソコンで動く
レジストリ名io.github.FractionEstate/midnight-nextjs-mcp

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 開発者ツール
  • 入力が必要なもの:GITHUB_TOKEN

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: GITHUB_TOKEN, LOG_LEVEL, MIDNIGHT_LOCAL

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、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"
      }
    }
  }
}

ターミナルでこれを実行します

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

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.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"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "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"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • GITHUB_TOKEN 秘密 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

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント FractionEstate で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの4915件のうち0%よりスターが多い
  • このカテゴリのほかの4915件のうち2%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの4915件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Midnight + Next.js MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:GITHUB_TOKEN

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.3.1)がレジストリに届いたのは10 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

パソコンでもクラウドでも★ 34,245MIT4 日前更新
インストール

Desktop Commander

作者:wonderwhy-er

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

パソコンで動く★ 10,225MIT16 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

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

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く