mcpField
神
神岛地图数据统计

神岛地图数据统计

Local
github.com/box3labData & Analytics3Updated 65w ago

About 神岛地图数据统计

神岛地图数据统计 is an MCP server for accessing 神岛 platform user, map, and statistics data. Its tools cover public profile and map information as well as token-protected comments and player analytics.

Key features

  1. 01Fetch user profiles and social lists
  2. 02Browse maps, models, and favorites
  3. 03Search maps and models by keyword
  4. 04Read comments and system messages
  5. 05Query map player statistics and retention
  6. 06Analyze map player behavior

Use cases

  1. 01Review a user's maps and recent plays
  2. 02Search maps or models by keyword
  3. 03Inspect map player counts and retention
  4. 04Retrieve account comments and messages

MCP support

Exposes 神岛 platform data through MCP tools, including public endpoints and token-authenticated user and map analytics.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"statistics": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
Run commandnpx -y @smithery/cli

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@smithery/cli

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

神岛数据统计 MCP 服务器

smithery badge

基于 Model Context Protocol (MCP) 的服务器,提供对神岛平台用户数据、地图信息和统计数据的访问。

功能特点

  • 公开 API: 无需认证访问的基础数据(用户资料、地图详情、评论列表)
  • 认证 API: 需要 Token 访问的高级数据(用户评论、各类统计数据)
  • 地图分析: 全面的地图玩家数据、留存率、行为分析等
  • 模块化设计: 清晰的代码结构,易于维护和扩展
  • 易于集成: 支持多平台客户端集成,包括浏览器、CLI 等

可用工具

公开 API (无需认证)
工具名称描述参数
getUserProfileByUserId获取用户个人资料userId
getMapInfoByUserId获取地图详情信息mapId
getMapCommentListByUserId获取地图评论列表contentId, limit, offset, orderBy, contentType
getMapReleaseInfoByUserId获取地图发布信息contentId, limit, offset
getMapListByUserId获取用户地图列表userId, limit, offset
getModelListByUserId获取用户模型列表userId, limit, offset
getFavoriteListByUserId获取用户收藏列表userId, limit, offset, contentType
getRecentlyPlayListByUserId获取用户最近游玩列表userId, limit, offset
getFollowerListByUserId获取用户粉丝列表userId, limit, offset
getFriendListByUserId获取用户好友列表userId, limit, offset
getFollowingListByUserId获取用户关注列表userId, limit, offset
getMapListByKeyword通过关键字搜索地图/模型keyword, limit, offset, orderBy
需要认证的 API
工具名称描述参数
getCommentList获取用户评论列表offset, limit, token, userAgent
getLikeList获取用户点赞列表offset, limit, token, userAgent
getSystemMsgList获取用户系统消息列表offset, limit, token, userAgent
getMapStatList获取地图统计列表startTime, endTime, token, userAgent
getMapPlayerStatList获取地图玩家统计startTime, endTime, mapId, token, userAgent
getMapPlayerRetention获取地图玩家留存startTime, endTime, mapId, token, userAgent
getMapPlayerBehavior获取地图玩家行为startTime, endTime, mapId, token, userAgent

客户端示例

公开 API 调用示例
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";

// 创建传输通道
const transport = new StdioClientTransport({
  command: "npx",
  args: ["-y", "@smithery/cli@latest", "run", "@dao3fun/statistics-mcp"],
});

// 初始化客户端
const client = new Client(
  { name: "dao3-client", version: "1.0.0" },
  { capabilities: { tools: {} } }
);

// 连接到服务器
await client.connect(transport);

// 获取用户资料 (公开API)
const userProfile = await client.callTool({
  name: "getUserProfile",
  arguments: { userId: "83354" },
});

// 获取地图详情 (公开API)
const mapInfo = await client.callTool({
  name: "getMapInfo",
  arguments: { mapId: "100131463" },
});

console.log(JSON.parse(userProfile.content[0].text));
需要认证的 API 调用示例
// 认证信息
const token = "YOUR_TOKEN";
const userAgent = "Mozilla/5.0 ...";

// 获取地图统计数据 (需要认证)
const mapStats = await client.callTool({
  name: "getMapStatList",
  arguments: {
    startTime: "2025-03-29",
    endTime: "2025-04-04",
    token,
    userAgent,
  },
});

// 获取地图玩家留存率 (需要认证)
const retention = await client.callTool({
  name: "getMapPlayerRetention",
  arguments: {
    startTime: "2025-03-29",
    endTime: "2025-04-04",
    mapId: "100131463",
    token,
    userAgent,
  },
});

// 处理响应
const statsData = JSON.parse(mapStats.content[0].text);

项目结构

├── index.ts                # 主入口文件
├── src/                    # 源代码目录
│   ├── types/              # 类型定义
│   │   └── index.ts        # 共享类型定义
│   ├── utils/              # 工具函数
│   │   └── api.ts          # API请求工具
│   └── tools/              # MCP工具实现
│       ├── publicTools.ts  # 公开API工具
│       └── auth/           # 需要认证的API工具
│           ├── index.ts
│           ├── auth_msgTools.ts
│           └── auth_statsTools.ts
├── package.json            # 项目配置和依赖
├── tsconfig.json           # TypeScript配置
└── README.md               # 项目文档

添加新的 API 端点

要添加新的 API 端点,请按照以下步骤操作:

  1. 在 src/types/index.ts 中添加新的类型定义(如需要)
  2. 对于公开 API,在 src/tools/publicTools.ts 中添加新的工具定义
  3. 对于需要认证的 API,根据其类别在 src/tools/auth/ 目录下的相应文件中添加新的工具定义

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.