
olanetsoft/midnight-mcp 是从 https://github.com/olanetsoft/midnight-mcp. 导入的 MCP 候选服务器。
概览
olanetsoft/midnight-mcp 是从 https://github.com/olanetsoft/midnight-mcp. 导入的 MCP 候选服务器。
概述(AI 翻译)
⚠️ 已弃用 — 使用 Kapa + Midnight Expert
midnight-mcp 正在逐步关闭。 Midnight 已标准化了两个官方工具:
- Kapa MCP(文档问答/搜索):
claude mcp add --transport http midnight https://midnight.mcp.kapa.ai- 午夜专家(亲手开发,Claude Code插件):
curl -fsSL https://midnightntwrk.expert/install.sh | bash迁移指南 → https://docs.midnight.network/blog/migrating-to-kapa-and-midnight-expert
MCP服务器为AI助手提供Midnight区块链访问——搜索合约、分析代码并探索文档。
该项目通过额外的开发工具扩展了午夜网络。
要求
- Node.js 20+(推荐LTS)
请查看你的版本:node --version
用NVM?点击查看Claude桌面设置
如果你用nvm,Claude Desktop可能看不到你用nvm管理的节点。请使用以下配置:
快速启动
克劳德桌面
补充你的claude_desktop_config.json:
配置文件位置:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - 窗口:
%APPDATA%\Claude\claude_desktop_config.json - Linux: '~/.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Midnight MCP Server
⚠️ Deprecated — use Kapa + Midnight Expert
midnight-mcp is being wound down. Midnight has standardised on two official tools:
- Kapa MCP (docs Q&A / search):
claude mcp add --transport http midnight https://midnight.mcp.kapa.ai- Midnight Expert (hands-on dev, Claude Code plugins):
curl -fsSL https://midnightntwrk.expert/install.sh | bashMigration guide → https://docs.midnight.network/blog/migrating-to-kapa-and-midnight-expert
MCP server that gives AI assistants access to Midnight blockchain—search contracts, analyze code, and explore documentation.
This project extends the Midnight Network with additional developer tooling.
Requirements
- Node.js 20+ (LTS recommended)
Check your version: node --version
Quick Start
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"midnight": {
"command": "npx",
"args": ["-y", "midnight-mcp@latest"]
}
}
}
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Cursor
One-click install:
Or manually add to .cursor/mcp.json:
{
"mcpServers": {
"midnight": {
"command": "npx",
"args": ["-y", "midnight-mcp@latest"]
}
}
}
VS Code Copilot
Add to .vscode/mcp.json or use Command Palette: MCP: Add Server → “command (stdio)” → npx -y midnight-mcp@latest
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"midnight": {
"command": "npx",
"args": ["-y", "midnight-mcp@latest"]
}
}
}
No API keys required. Restart your editor after adding the config.
安装
npx -y midnight-mcp@latest配置
{
"mcpServers": {
"midnight": {
"command": "/bin/sh",
"args": [
"-c",
"source ~/.nvm/nvm.sh && nvm use 20 >/dev/null 2>&1 && npx -y midnight-mcp@latest"
]
}
}
}