Back to MCP directory
publicPublicdnsLocal runtime

mx-mcp

MultiversX区块链的MCP服务器,提供创建钱包、查询余额、发送代币等基础功能

article

README

🚀 MultiversX MCP 服务器

MultiversX MCP 服务器是专为与 MultiversX 区块链协同工作而设计的。它具备一系列基础功能,包括创建 PEM 钱包、获取钱包地址、查询钱包余额,以及实现各类代币(如 EGLD、可变代币、SFT、NFT、MetaESDT)的发送操作。

smithery badge

🚀 快速开始

功能概述

  • 创建钱包:可在 ~/.multiversx/wallet.pem 路径下创建 PEM 钱包。
  • 获取当前网络设置。
  • 获取环境中的钱包地址。
  • 查询地址余额。
  • 发送代币。
  • 发行代币。

配置添加方式

通过 JSON 添加到 Claude Desktop

  • 确保已安装 下载 Claude Desktop
  • 打开或创建 Claude 配置文件:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  • 将 MCP 服务器添加到您的配置中:
{
    "mcpServers": {
        "multiversx-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@multiversx/mcp"
            ],
            "env": {
                "MVX_NETWORK": "devnet",
                "MVX_WALLET": "绝对路径到someWallet.pem"
            }
        }
    }
}

通过 Cursor 添加

上述 JSON 配置文件对版本 >=0.47 的 Cursor 同样适用。您可以将配置添加到 ~/.cursor/mcp.json 配置文件中,或者在 Cursor 设置 -> MCP 部分,添加新的 MCP。

从源代码构建

  • 克隆仓库,然后运行 npm run build
  • 在配置文件中,将服务器设置为您刚刚构建的服务器:
{
    "mcpServers": {
        "multiversx-mcp": {
            "command": "node",
            "args": [
               "绝对路径到index.js"
            ],
         "env": {
            "MVX_NETWORK": "devnet",
            "MVX_WALLET": "绝对路径到someWallet.pem"
          }
        }
    }
}
READY-TO-PASTE CONFIG

MCP client config generator

Choose your client, fill the required environment variables, then copy a config generated from this server's published metadata

terminal
Environment variableslockValues stay in this browser tab and are not uploaded or saved
Claude Desktop
{
  "mcpServers": {
    "multiversx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@multiversx/mcp"
      ],
      "env": {
        "MVX_NETWORK": "devnet",
        "MVX_WALLET": "absolute/path/to/someWallet.pem"
      }
    }
  }
}
Save toclaude_desktop_config.json
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client