
Midnight + Next.js MCP
io.github.FractionEstatePublished by GitHub account FractionEstatev0.3.1Updated Oct 25, 2026
Unified MCP server for Midnight blockchain development and Next.js dApps.
Overview
Local MCP server that gives an AI assistant Midnight blockchain contract, wallet and network tools alongside Next.js DevTools for building dApps.
- What you can do
- Initialize a Midnight development context, scaffold dApp projects, compile Compact contracts to TypeScript and ZK artifacts, run static analysis, deploy contracts and execute circuit calls on them. Create wallets, read wallet state and balances, and transfer tDUST tokens. Check network health across Indexer, Proof Server and Node, query blocks and transactions, and check Midnight package versions. Search, fetch, sync and list Midnight documentation. Work with Next.js: initialize a dev context, search Next.js docs, discover running dev servers, run runtime diagnostics, evaluate pages with Playwright, and follow Next.js 16 and Cache Components upgrade guides.
- When to use it
- Useful when building decentralized applications on the Midnight Network with a Next.js frontend and you want the assistant to compile, analyze, deploy and call contracts, manage test wallets, inspect chain state and consult Midnight and Next.js documentation from one server.
- Requirements
- Runs locally over stdio, typically via npx with Node.js, or as a global npm install or Docker container. Optional GITHUB_TOKEN raises API rate limits; LOG_LEVEL sets logging verbosity; MIDNIGHT_LOCAL enables local mode with ChromaDB for offline semantic search. Network endpoints default to Midnight testnet and can be overridden by environment variables. Network access is needed for chain queries and documentation sync.
Installation
In SourceWeft
- Open Midnight + Next.js MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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:
🌙 Features
Midnight Network Tools
Contract Development
midnight_init- Initialize development contextmidnight_compile_contract- Compile Compact contracts to TypeScript/ZK artifactsmidnight_analyze_contract- Static analysis for contractsmidnight_deploy_contract- Deploy contracts to the networkmidnight_call_contract- Execute circuit calls on deployed contractsmidnight_scaffold_project- Create new dApp projects from templates
Wallet & Tokens
midnight_create_wallet- Generate new wallet with seed phrasemidnight_wallet_state- Get detailed wallet state and balancesmidnight_transfer_tokens- Transfer tDUST tokensmidnight_get_balance- Query token balances
Network & Queries
midnight_network_status- Check network health (Indexer, Proof Server, Node)midnight_get_block- Query blockchain blocksmidnight_get_transaction- Query transaction detailsmidnight_check_versions- Check for Midnight package updates
Documentation
midnight_search_docs- Search Midnight documentationmidnight-fetch-docs- Fetch specific documentation pagesmidnight-sync-docs- Sync documentation from official repomidnight-docs-status- Check documentation sync statusmidnight-list-docs- List available documentation sources
Next.js DevTools
init- Initialize Next.js development contextnextjs_docs- Search Next.js documentationnextjs_index- Discover running dev serversnextjs_call- Execute runtime diagnostic toolsbrowser_eval- Browser automation with Playwrightupgrade_nextjs_16- Next.js 16 upgrade guideenable_cache_components- Cache Components migration
📦 Installation
🚀 Usage
Quick Start with npx
The easiest way to use this MCP server is via npx — no installation required:
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:
VS Code (GitHub Copilot / Claude Extension)
Add to your VS Code settings.json or workspace .vscode/mcp.json:
Or for Claude extension specifically:
Claude Desktop (macOS)
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Claude Desktop (Windows)
Edit %APPDATA%\Claude\claude_desktop_config.json:
Claude Desktop (Linux)
Edit ~/.config/Claude/claude_desktop_config.json:
Cursor IDE
Add to your Cursor MCP configuration (.cursor/mcp.json in your project or global settings):
Windsurf / Codeium
Add to your Windsurf MCP settings:
Continue.dev (VS Code / JetBrains)
Add to ~/.continue/config.json or your project's .continue/config.json:
Zed Editor
Add to your Zed settings (~/.config/zed/settings.json on Linux, ~/Library/Application Support/Zed/settings.json on macOS):
Sourcegraph Cody
Add to your Cody MCP configuration:
JetBrains IDEs (IntelliJ, WebStorm, etc.)
For AI assistants in JetBrains IDEs that support MCP, add to your MCP configuration:
Using Global Installation
If you prefer a global install instead of npx:
Then configure:
Local Development / From Source
Docker
Run the MCP server in a Docker container:
CLI Flags
🏗️ Project Structure
🔧 Configuration
Environment Variables
You can pass environment variables to the MCP server in your configuration:
Available Environment Variables
Network Configurations
📚 Resources
The server exposes documentation resources:
Midnight Resources
midnight://compact/overview- Compact language introductionmidnight://compact/reference- Complete syntax referencemidnight://sdk/overview- Midnight.js SDK guide
Next.js Resources
nextjs-docs://llms-index- Documentation indexcache-components://overview- Cache Components guide
🧪 Development
📖 Documentation
Client-Specific MCP Documentation
- Claude Desktop MCP Guide
- VS Code MCP Extension
- Cursor MCP Docs
- Continue.dev MCP Guide
- Zed MCP Documentation
🤝 Contributing
Contributions welcome! Please read the contributing guidelines first.
📄 License
MIT License - see LICENSE for details.
Built with ❤️ for the Midnight and Next.js communities.
Source: README.md at commit 4a88d65
Tools
0Version history
1- v0.3.1LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.