# 随机数生成服务 Drand
drand-mcp-server是一个提供可验证随机数的服务,用于AI应用中的模型驱动流程,支持通过时间或轮次获取随机数。
drand-mcp-server is a service that provides verifiable random numbers for model-driven processes in AI applications, supporting the acquisition of random numbers by time or round.## 工具列表 Tool List
本MCP服务封装下列工具,可让模型通过标准化接口调用以下功能。 本MCP服务封装下列工具,可让模型通过标准化接口调用以下功能。
| 工具 Tool | 描述 Description |
|-------|--------------------|
| get-randomness-latest | Get the latest random value from drand quicknet |
| get-randomness-by-round | Get the random value associated with a specfic round from drand quicknet |
| get-randomness-by-time | Get the random value associated with a specific time from drand quicknet |
## 检查服务 ## Inspector
工具在线测试: [https://mcp.xiaobenyang.com/inspector/1777316659468291](https://mcp.xiaobenyang.com/inspector/1777316659468291)
Online Tool test [https://mcp.xiaobenyang.com/inspector/1777316659468291](https://mcp.xiaobenyang.com/inspector/1777316659468291)
## 服务配置 MCP Server Config
> #### 如何获取 XBY-APIKEY ? How to get XBY-APIKEY ?
> 访问小笨羊科技网站 [https://xiaobenyang.com](https://xiaobenyang.com),注册用户即可获得APIKEY
> Visit XiaoBenYang website [https://xiaobenyang.com](https://xiaobenyang.com), register and get the APIKEY.
### SSE
```json
{
"mcpServers": {
"随机数生成服务": {
"headers": {
"XBY-APIKEY": "<YOUR_XBY_APIKEY>"
},
"type": "sse",
"url": "https://mcp.xiaobenyang.com/1777316659468291/sse"
}
}
}
```
### STREAMABLE HTTP
```json
{
"mcpServers": {
"随机数生成服务": {
"headers": {
"XBY-APIKEY": "<YOUR_XBY_APIKEY>"
},
"type": "streamable_http",
"url": "https://mcp.xiaobenyang.com/1777316659468291/mcp"
}
}
}
```
### STDIO
```json
{
"mcpServers": {
"随机数生成服务": {
"command": "npx",
"args": [
"-y",
"xiaobenyang-mcp"
],
"env": {
"XBY_APIKEY": "<YOUR_XBY_APIKEY>",
"mcpId": "1777316659468291",
},
"transport": "stdio"
}
}
}
```