aikiyy
MCP Serveraikiyypublic

mcp server diceroll

一个实现 MCP 协议的简单服务器,提供基本数值运算和骰子模拟功能。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

一个实现 MCP 协议的简单服务器,提供基本数值运算和骰子模拟功能。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

MCP サーバー ダイスロール (mcp-server-diceroll)

シンプルな MCP (Model Calling Protocol) サーバーのデモプロジェクトです。このサーバーはダイスロール機能と基本的な数値演算機能を提供します。

機能

  • 数値の加算
  • カスタマイズ可能なダイスロール(サイコロの面数と振る回数を指定可能)
  • UUID生成(バージョン4またはバージョン1)
  • 動的な挨拶メッセージ生成

要件

  • Python 3.12 以上
  • mcp ライブラリ 1.6.0 以上
  • uv (Python パッケージマネージャー)

インストール

  1. リポジトリをクローンします:
git clone https://github.com/yourusername/mcp-server-diceroll.git
cd mcp-server-diceroll
  1. uvがインストールされていない場合は、インストールします:
curl -sSf https://astral.sh/uv/install.sh | bash
  1. uvを使用して仮想環境を作成し、依存関係をインストールします:
uv venv
source .venv/bin/activate  # macOS/Linuxの場合
# または
.venv\Scripts\activate  # Windowsの場合

uv pip install -e .

使用方法

サーバーを起動するには:

python server.py

または、uvを使用して実行することもできます:

uv run python server.py

サーバーが起動すると、以下のツールが利用可能になります:

  1. add - 2つの数値を加算します
  2. roll_dice - サイコロを振ります(デフォルトは6面体のサイコロを1回)
  3. generate_uuid - UUIDを生成します(デフォルトはバージョン4、バージョン1も指定可能)
  4. greeting://{name} - 指定された名前に対する挨拶メッセージを生成します

参考資料

  • サイコロから始めるModel Context Protocol (MCP): 生成AIと外部ツールを繋ぐためのプロトコル
  • Anthropic MCP公式発表
  • modelcontextprotocol/python-sdk

サーバーにリクエストを送信する方法については、MCP クライアントのドキュメントを参照してください。

Quick Start

1

Clone the repository

git clone https://github.com/aikiyy/mcp-server-diceroll
2

Install dependencies

cd mcp-server-diceroll
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Owneraikiyy
Repomcp-server-diceroll
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation