Sui区块链GraphQL查询服务

通过GraphQL直接查询Sui区块链数据的服务,支持测试网、主网和开发网。

  • by Sceat
  • JavaScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 Sceat/sui-graphql-mcp

使用说明

Sui GraphQL MCP服务器

使用GraphQL直接从Claude查询Sui区块链。

安装

claude mcp add sui-graphql -- npx -y github:Sceat/sui-graphql-mcp

用法

请Claude查询Sui区块链数据:

"What's the latest checkpoint on Sui?"
"Show me the balance of address 0x5"
"Get recent transactions"
"Simulate this transaction"

网络配置

违约: 测试网

要使用其他网络,请编辑您的配置(~/.claude.json):

{
  "mcpServers": {
    "sui-graphql": {
      "env": {
        "SUI_GRAPHQL_URL": "https://graphql.mainnet.sui.io/graphql"
      }
    }
  }
}

可用网络:

  • 测试网: https://graphql.testnet.sui.io/graphql (默认)
  • 主网: https://graphql.mainnet.sui.io/graphql
  • 开发网: https://graphql.devnet.sui.io/graphql

地方发展

如果要开发或修改服务器:

git clone https://github.com/Sceat/sui-graphql-mcp.git
cd sui-graphql-mcp
npm install
chmod +x index.js

然后添加到您的Claude Code配置中:

{
  "mcpServers": {
    "sui-graphql": {
      "command": "node",
      "args": ["/path/to/sui-graphql-mcp/index.js"],
      "env": {
        "SUI_GRAPHQL_URL": "https://graphql.testnet.sui.io/graphql"
      }
    }
  }
}

需求

  • Node.js 18+
  • 克劳德代码

许可证

麻省理工学院