Coin Flip MCP Server

by TeglonLabs

コインフリップMCPサーバー

random.orgの乱数APIを用いて、真にランダムなコイン投げを提供するMCPサーバーです。このサーバーは、設定可能なサイドを持つランダムな結果を生成するツールを提供することで、モデルコンテキストプロトコル(MCP)のデモンストレーションを行います。

特徴

ツール

  • flip_coin - 設定可能な面数でコインを投げる
    • オプションのsidesパラメータ(デフォルト: 2)
    • random.org の真のランダム性を使用
    • エッジケース(0、1、または負の側)の特別な処理
    • 2面の場合:「表」または「裏」を返します
    • 3面の場合:「表」、「裏」、または「_」を返します
    • n>3 面の場合: 「X 面に着地しました」を返します。

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "coin-flip": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-coin-flip"] } } }

使用例

Claude DesktopなどのMCPクライアントに接続すると、自然言語を使ってコイントスツールを操作できるようになります。例えば:

  • 「コインを投げる」
  • 「6面サイコロを振る」
  • 「1から20までのランダムな数字をください」

サーバーは random.org からの真のランダム性を使用して結果を生成します。

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCP Inspectorの使用をお勧めします。

npx @modelcontextprotocol/inspector node build/index.js

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

マサチューセッツ工科大学

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

random.org の API を介して真にランダムなコイントスを生成するツールとの対話を可能にし、複数のカスタム サイド構成をサポートし、モデル コンテキスト プロトコルを示します。

  1. 特徴
    1. ツール
  2. 発達
    1. インストール
      1. 使用例
        1. デバッグ
          1. 貢献
            1. ライセンス

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A 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 -
                3
                111
                24
                TypeScript
                MIT License
                • Apple
              • A
                security
                F
                license
                A
                quality
                A 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 -
                3
                10
                Python
                • Linux
                • Apple
              • A
                security
                A
                license
                A
                quality
                A 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 v3
                Last updated -
                3
                37
                TypeScript
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                A 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 -
                1
                Python
                MIT License
                • Apple
                • Linux

              View all related MCP servers

              ID: f57ohq0c54