-mcp-dice-server-

yukiko8888/-mcp-dice-server-

3.1

If you are the rightful owner of -mcp-dice-server- and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP Dice Server provides a dice-rolling functionality using the Model Context Protocol (MCP).

Tools
1
Resources
0
Prompts
0

MCP Dice Server

Model Context Protocol (MCP)のサイコロ機能を提供するサーバーです。

機能

  • 任意の面数のサイコロを振ることができます
  • 複数個のサイコロを同時に振ることができます

インストール

npm install @modelcontextprotocol/dice-server

使用方法

MCPの設定ファイルに追加

{
  "mcpServers": {
    "dice": {
      "command": "node",
      "args": ["path/to/dice-server/build/index.js"],
      "disabled": false
    }
  }
}

利用可能なツール

roll_dice

サイコロを振るためのツール。

パラメータ:

  • sides: サイコロの面数(必須、2以上の整数)
  • count: 振るサイコロの数(オプション、デフォルト: 1)

使用例:

const result = await useMcpTool('dice', 'roll_dice', {
  sides: 6,
  count: 2
});

レスポンス例:

{
  "results": [4, 6],
  "total": 10,
  "message": "2個の6面サイコロを振りました"
}

開発

# 依存関係のインストール
npm install

# ビルド
npm run build

# 開発モードで実行
npm run dev

ライセンス

MIT