GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Unified MCP server for Midnight blockchain development and Next.js dApps.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GITHUB_TOKEN, LOG_LEVEL, MIDNIGHT_LOCALค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"midnight-nextjs": {
"command": "npx",
"args": [
"-y",
"midnight-nextjs-mcp"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ",
"LOG_LEVEL": "ใส่ค่าของคุณ",
"MIDNIGHT_LOCAL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add midnight-nextjs --env GITHUB_TOKEN='ใส่ค่าของคุณ' --env LOG_LEVEL='ใส่ค่าของคุณ' --env MIDNIGHT_LOCAL='ใส่ค่าของคุณ' -- npx -y midnight-nextjs-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"midnight-nextjs": {
"command": "npx",
"args": [
"-y",
"midnight-nextjs-mcp"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ",
"LOG_LEVEL": "ใส่ค่าของคุณ",
"MIDNIGHT_LOCAL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"midnight-nextjs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"midnight-nextjs-mcp"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ",
"LOG_LEVEL": "ใส่ค่าของคุณ",
"MIDNIGHT_LOCAL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
LOG_LEVEL envMIDNIGHT_LOCAL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub FractionEstate ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GITHUB_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.1) เข้า registry 10 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
This MCP server works with any AI assistant that supports the Model Context Protocol:
| AI Assistant | Platform | Configuration |
|---|---|---|
| Claude | Desktop App, VS Code | Native MCP support |
| GitHub Copilot | VS Code, JetBrains | MCP extension |
| Cursor | IDE | Built-in MCP support |
| Windsurf | IDE | Built-in MCP support |
| Codeium | VS Code, JetBrains | MCP integration |
| Continue.dev | VS Code, JetBrains | MCP config file |
| Zed | IDE | MCP support |
| Sourcegraph Cody | VS Code | MCP extension |
# Clone the repository
git clone https://github.com/your-username/midnight-nextjs-mcp.git cd midnight-nextjs-mcp
pnpm install
pnpm build
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"] } } }
The MCP configuration format is standardized across most AI assistants. Below are platform-specific examples:
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"] } } }
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"] } } }
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }
Edit ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }
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"] } } }
Add to your Windsurf MCP settings:
{
"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }
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"] } } ] } }
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"] } } } }
Add to your Cody MCP configuration:
{
"cody.experimental.mcp.servers": { "midnight-nextjs-mcp": { "command": "npx", "args": ["-y", "midnight-nextjs-mcp@latest"] } } }
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"] } } }
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" } } }
{
"mcpServers": { "midnight-nextjs-mcp": { "type": "stdio", "command": "node", "args": ["/path/to/midnight-nextjs-mcp/dist/index.js"] } } }
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"] } } }
# Enable both tool categories (default)
npx midnight-nextjs-mcp@latest
npx midnight-nextjs-mcp@latest --no-midnight
npx midnight-nextjs-mcp@latest --no-nextjs
npx midnight-nextjs-mcp@latest --check-versions
npx midnight-nextjs-mcp@latest --poll-interval=12
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
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" } } } }
# 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 | Indexer | Proof Server |
|---|---|---|
| Testnet | indexer.testnet.midnight.network | proof-server.testnet.midnight.network |
| Devnet | localhost:8080 | localhost:6300 |
The server exposes documentation resources:
midnight://compact/overview - Compact language introductionmidnight://compact/reference - Complete syntax referencemidnight://sdk/overview - Midnight.js SDK guidenextjs-docs://llms-index - Documentation indexcache-components://overview - Cache Components guide# Watch mode
pnpm dev
pnpm typecheck
pnpm test
pnpm build
Contributions welcome! Please read the contributing guidelines first
ตัดมาแค่ช่วงต้น อ่านต่อใน repo