コインフリップMCPサーバー
random.orgの乱数APIを用いて、真にランダムなコイン投げを提供するMCPサーバーです。このサーバーは、設定可能なサイドを持つランダムな結果を生成するツールを提供することで、モデルコンテキストプロトコル(MCP)のデモンストレーションを行います。
特徴
ツール
flip_coin
- 設定可能な面数でコインを投げる- オプションの
sides
パラメータ(デフォルト: 2) - random.org の真のランダム性を使用
- エッジケース(0、1、または負の側)の特別な処理
- 2面の場合:「表」または「裏」を返します
- 3面の場合:「表」、「裏」、または「_」を返します
- n>3 面の場合: 「X 面に着地しました」を返します。
- オプションの
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
Claude Desktop で使用するには、サーバー設定を追加します。
MacOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
使用例
Claude DesktopなどのMCPクライアントに接続すると、自然言語を使ってコイントスツールを操作できるようになります。例えば:
- 「コインを投げる」
- 「6面サイコロを振る」
- 「1から20までのランダムな数字をください」
サーバーは random.org からの真のランダム性を使用して結果を生成します。
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCP Inspectorの使用をお勧めします。
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
マサチューセッツ工科大学
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
random.org の API を介して真にランダムなコイントスを生成するツールとの対話を可能にし、複数のカスタム サイド構成をサポートし、モデル コンテキスト プロトコルを示します。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.Last updated -311124TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides access to CoinMarketCap's cryptocurrency data, enabling AI applications to retrieve cryptocurrency listings, quotes, and detailed information.Last updated -310Python
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Updated to use Coin Cap API v3Last updated -337TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that lets you fetch auctions from Ebay.com using natural language prompts like 'Find me 10 auctions for batman comics'.Last updated -1PythonMIT License