Coin Flip MCP Server
MCP server for flipping coins with true randomness from random.org
Overview
Coin Flip MCP Server is a server that provides true random coin flips using the randomness API from random.org, demonstrating the Model Context Protocol for generating random outcomes with configurable sides.
To use the Coin Flip MCP Server, install the dependencies, build the server, and configure it with an MCP client like Claude Desktop. You can then use natural language commands to interact with the coin flip tool.
- Flips a coin with configurable number of sides (default is 2) - Uses true randomness from random.org - Special handling for edge cases (0, 1, or negative sides) - Supports multiple sides for coin flips
- Flipping a coin for decision making
- Rolling dice for games
- Generating random numbers for various applications
Add to your AI client
Use these steps to connect Coin Flip MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"coin-flip-mcp-teglonlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip-mcp-teglonlabs"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"coin-flip-mcp-teglonlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip-mcp-teglonlabs"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"coin-flip-mcp-teglonlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip-mcp-teglonlabs"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"coin-flip-mcp-teglonlabs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip-mcp-teglonlabs"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"coin-flip-mcp-teglonlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip-mcp-teglonlabs"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"coin-flip-mcp-teglonlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-coin-flip-mcp-teglonlabs"
]
}
}
}FAQ
Can I configure the number of sides for the coin flip?
Yes! You can configure the number of sides when flipping the coin.
How does the server ensure true randomness?
The server uses the randomness API from random.org to ensure true randomness in the outcomes.
Is it easy to integrate with other applications?
Yes! The server can be easily integrated with any MCP client.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":991,"uuid":"12d6c2f7-9df2-4e18-bedd-a9b718ef5d42","name":"coin-flip-mcp","title":"Coin Flip MCP Server","description":"MCP server for flipping coins with true randomness from random.org","avatar_url":"https://avatars.githubusercontent.com/u/194869324?v=4","created_at":"2025-01-28T02:22:30.960Z","updated_at":"2025-02-23T07:19:17.908Z","status":"created","author_name":"TeglonLabs","author_avatar_url":"https://avatars.githubusercontent.com/u/194869324?v=4","tags":"coin-flip,randomness,mcp-server","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/TeglonLabs/coin-flip-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]