MCP Server
@randsum/mcp
Model Context Protocol server for AI integration. Enables LLMs to roll dice and interact with RANDSUM packages.
Overview
@randsum/mcp is a Model Context Protocol (MCP) server that enables AI assistants and LLMs to interact with the RANDSUM dice rolling ecosystem. This package allows AI tools to roll dice, use game-specific mechanics, and integrate RANDSUM functionality into AI-powered applications.
Installation
Installation
npm install @randsum/mcp
# or
bun add @randsum/mcp Examples
MCP Client Configuration
{
"mcpServers": {
"randsum": {
"command": "npx",
"args": ["-y", "@randsum/mcp@latest"],
"env": {
"NODE_ENV": "production"
}
}
}
} MCP Integration
The MCP server exposes RANDSUM functionality through the Model Context Protocol, enabling:
- Dice Rolling: Execute dice notation through MCP tools
- Game Mechanics: Access game-specific packages (D&D, Blades, etc.)
- Type Safety: Full TypeScript support with proper type definitions
- Extensibility: Easy to add new packages and functionality
This makes RANDSUM accessible to AI assistants, enabling them to help with dice rolling, character creation, and game mechanics.
Use Cases
- AI-powered tabletop RPG assistants
- Character creation tools
- Game master assistants
- Dice rolling utilities in AI chat interfaces