Coin Flip MCP Server
About
Enables interaction with a tool for generating true random coin flips via random.org's API, supporting multiple custom side configurations and illustrating the Model Context Protocol.
Details
- Author
- TeglonLabs
- Repository
- TeglonLabs/coin-flip-mcp
- Downloads
- 215
- Categories
- Other, Developer Tools
- Tags
- #data
Jump to
- Uses true randomness from the random.org API
- Configurable number of sides (default 2)
- Special handling for edge cases (0, 1, negative sides)
- Human-readable results: Heads, Tails, or side numbers
Setting up with Highlight
Follow these steps to add this server as a custom Highlight plugin:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Coin Flip MCP ServerCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@modelcontextprotocol/server-coin-flip
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"coin-flip": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-coin-flip"]
}
}
}
Once connected to an MCP client like Claude Desktop, you can use natural language to interact with the coin flip tool. For example:
- "Flip a coin"
- "Roll a 6-sided die"
- "Give me a random number between 1 and 20"
The server will use true randomness from random.org to generate the result.
flip_coin
Flip a coin with configurable number of sides. Optional 'sides' parameter (default: 2). Returns 'Heads' or 'Tails' for 2 sides, 'Heads', 'Tails', or '_' for 3 sides, and 'It landed on side X' for n>3 sides.
- flip_coin - Flip a coin with configurable number of sides
- Optional sides parameter (default: 2)
- Uses true randomness from random.org
- Special handling for edge cases (0, 1, or negative sides)
- For 2 sides: Returns "Heads" or "Tails"
- For 3 sides: Returns "Heads", "Tails", or "_"
- For n>3 sides: Returns "It landed on side X"
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"coin flip mcp server": {
"cwd": null,
"env": {},
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip"
],
"shell": false,
"command": "npx"
}
}
}
Linux
{
"cwd": null,
"env": [],
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip"
],
"shell": false,
"command": "npx"
}
Macos
{
"cwd": null,
"env": [],
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip"
],
"shell": false,
"command": "npx"
}
Windows
{
"cwd": null,
"env": [],
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-coin-flip"
],
"shell": false,
"command": "cmd"
}
An MCP server that provides true random coin flips using random.org's randomness API. This server demonstrates the Model Context Protocol by providing a tool for generating random outcomes with configurable sides.
- flip_coin- Flip a coin with configurable number of sides
- Optionalsidesparameter (default: 2)
- Uses true randomness from random.org
- Special handling for edge cases (0, 1, or negative sides)
- For 2 sides: Returns "Heads" or "Tails"
- For 3 sides: Returns "Heads", "Tails", or "_"
- For n>3 sides: Returns "It landed on side X"
To use with Claude Desktop, add the server config:
On MacOS:~/Library/Application Support/Claude/claude_desktop_config.json
On Windows:%APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "coin-flip": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-coin-flip"] } } }
Once connected to an MCP client like Claude Desktop, you can use natural language to interact with the coin flip tool. For example:
- "Flip a coin"
- "Roll a 6-sided die"
- "Give me a random number between 1 and 20"
The server will use true randomness from random.org to generate the result.
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using theMCP Inspector:
npx @modelcontextprotocol/inspector node build/index.js
Contributions are welcome! Please feel free to submit a Pull Request.
Discover and book free walking tours and activities in 200+ cities worldwide. Search destinations, browse categories, check real-time availability, and get tour details.
Live AI agent city-economy on Base L2 — 92 NPC agents earn real USDC via jobs, trading, and businesses across 10 cities. Claim jobs for USDC payouts, chat with agents, check AGWC token data, and get live crypto news. 11 tools, no API key.
Audited tarot, I Ching, and Xiao Liu Ren divination MCP server. Local seeded entropy; the model only interprets JSON output.
Comprehensive astrology MCP backed by the AstroWay Calculation API — natal, synastry, transits, Vedic dashas (Vimshottari/Yogini/Ashtottari/Kalachakra), Tarot (Rider-Waite-Smith / Marseille / Lenormand), Numerology, Human Design, AI horoscopes. Sub-arcsecond Swiss Ephemeris precision. 10 000 free credits/month, no card required. Install: npx @astroway/mcp
40 MCP tools for AI agents to play a yield-generating pet game on Base chain. Earn USDC/ETH/BTC by raising virtual pets. Impact: every action burns tokens and retires carbon credits.
An MCP server for accessing Bazi (Chinese astrology) data, requiring an API key.
A professional Bazi (Chinese astrology) calculation server providing full analysis including four pillars, five elements, zodiac, and lunar dates with timezone support.
Connect to UCI-compatible chess engines like Stockfish to play and analyze games. Requires a local chess engine binary.
Remote MCP server over a catalogue of 500 cocktail recipes.
Connect Claude, GPT, and any MCP-compatible AI agent directly to FunGenerators.com. Generate names, insults, job titles, lorem ipsum, lottery numbers, and much more — all from a single tool call.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





