
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server for creating, managing, and rolling on random tables, including weighted entries and linked nested tables via roll templates.
Random Tables MCP Server is cataloged as an MCP server attributed to mikeored. An MCP server for creating, managing, and rolling on random tables, including weighted entries and linked nested tables via roll templates. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Random Tables MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Templates use double curly braces referencing a table, and rolling on a table automatically resolves those references by rolling on the referenced tables.
Yes, standalone templates can be managed independently and reused across multiple tables.
README.md · fa3230aae267 · 采集于 2026-11-13 11:36:13 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
From manually flipping through sourcebooks to wrestling with nested Excel formulas, I've tried every random table solution out there—which is exactly why I built MCP Random Tables to be the flexible generation tool I've always wanted.
This MCP (Model Context Protocol) server bridges worlds: drop in your tables for LLM interaction or use the standalone scripts for token-free efficiency. Either way, the hexagonal architecture ensures your random generation stays organized, maintainable, and ready when inspiration runs dry.
My random table journey probably looks familiar to many of you—starting with physical books and dice, graduating to spreadsheets with formulas, and now exploring what's possible in the LLM space. This server is the culmination of that journey, designed to handle everything from simple lookups to complex nested tables with the flexibility modern GMs deserve.
Why build it on hexagonal architecture? Because as my own needs evolved from manual lookups to programmatic generation, I learned that keeping the core logic separate from how you access it is the key to longevity:
I'm actively working on those script-based tools mentioned in the features section, ensuring you can use this system with or without LLMs—giving you the freedom to choose the right approach for each situation while leveraging the same powerful table structures.
create_table - Create a new random table with optional initial entriesroll_on_table - Roll on a specific table and returns the resultupdate_table - Update an existing table (name, description, entries)list_tables - List available tables with metadataget_table - Get details of a specific tablecreate_template - Create a new roll templateget_template - Get a specific roll template by IDlist_templates - List all available roll templatesupdate_template - Update an existing roll templatedelete_template - Delete a roll template by IDevaluate_template - Evaluate a roll template by resolving all references to tablesSee the Environment Variables section for how to switch between using Tools and Resources.
table://{tableId} - Access a specific tabletables:// - Access a list of all tablestemplate://{id} - Access a specific roll templatetemplates:// - Access a list of all roll templatesNote: The examples below use simplified table IDs (like "gold-quantities") for readability. In actual implementation, table IDs are UUIDs (e.g., "b2cf46a1-1884-4492-8770-d1b7e796355d"). The template syntax structure itself is strict and must be followed exactly. For more comprehensive examples, see the Simple Encounter and Nested Treasure guides.
Create a forest encounter table with weighted entries for different encounter types:
{
"name": "Low-Mid Level Forest Encounters",
"description": "A varied table of forest encounters for low to mid-level adventurers",
"entries": [
{
"content": "A pack of 2-4 wolves emerges from the underbrush, hungry and territorial",
"weight": 4
},
{
"content": "Hidden pit trap covered by branches and leaves (10 ft deep, 1d6 damage)",
"weight": 3
},
{
"content": "Mischievous sprites swap one random item from each character's pack with forest debris",
"weight": 2
},
{
"content": "A dryad's tree is being cut down by loggers - she pleads for help",
"weight": 1
}
]
}
Higher weights (4) make encounters more common than rare encounters (1).
Create a comprehensive treasure generation system with multiple interconnected tables:
{
"name": "Treasure Types",
"description": "Parent table for different types of treasure",
"entries": [
{
"content": "{{Gold::gold-quantities}}",
"weight": 1
},
{
"content": "{{Gemstone::gemstones}}",
"weight": 1
},
{
"content": "{{Weapon::weapons}} that is {{Quirk::weapon-quirks}}",
"weight": 1
}
]
}
When you roll on this table, it automatically resolves references to other tables (gold-quantities, gemstones, weapons, weapon-quirks), creating rich, varied results like "a bag of gold coins" or "a sword that is glowing with inner fire".
The template system allows you to create complex, nested random generation systems by referencing other tables. Templates use double curly braces with a flexible syntax:
{{reference-title::table-id::table-name::roll-number::separator}}
Where:
reference-title: Optional title for the referencetable-id: ID of the table to roll ontable-name: Optional name for readabilityroll-number: Number of times to roll (default: 1)separator: Separator between multiple rolls (default: ", ")Simple Reference:
{
"content": "{{::currency}}"
}
Rolls once on the "currency" table.
Multiple Rolls:
{
"content": "{{::items::Items::3}}"
}
Rolls 3 times on the "items" table, results separated by commas.
Custom Separator:
{
"content": "{{::monsters::Monsters::2::||}}"
}
Rolls twice on the "monsters" table, results separated by "||".
Here's how to chain tables together:
{
"name": "Treasure",
"description": "Random treasure found in dungeons",
"entries": [
{
"content": "{{::currency}}",
"weight": 3
},
{
"content": "{{::items::Items::3}} worth {{::currency}}",
"weight": 2
}
]
}
When you roll on this table, the system automatically resolves templates by rolling on referenced tables.
You can also create standalone templates that can be reused across multiple tables:
{
"name": "NPC Description",
"description": "Template for generating NPC descriptions",
"template": "A {{::appearance}} {{::race}} {{::class}} who {{::personality}}"
}
These templates can be managed independently of tables, allowing for more modular and reusable content.
To integrate the MCP Random Tables server with Claude Desktop, you need to add the server configuration to your claude_desktop_config.json file.
{
"mcpServers": {
"random-tables": {
"type": "stdio",
"command": "npx",
"args": ["-y", "random-tables-mcp"],
"env": {} // Empty object uses default values
}
}
}
When using an empty env object, the server will use default values (DATA_DIR='./data' and CAN_USE_RESOURCE='false'). If you need to customize these values, specify them explicitly:
{
"mcpServers": {
"random-tables": {
"type": "stdio",
"command": "npx",
"args": ["-y", "random-tables-mcp"],
"env": {
"DATA_DIR": "/path/to/your/preferred/data/directory",
"CAN_USE_RESOURCE": "true"
}
}
}
}
# Clone the repository
git clone https://github.com/MikeORed/random-tables-mcp
cd random-tables-mcp
# Install dependencies
npm install
# Build the project
npm run build
The server can be configured using the following environment variables:
DATA_DIR: Directory where table data is stored (default: ./data)
CAN_USE_RESOURCE: Controls whether to use MCP Resources or Tools for certain functionality (default: false)
true: Uses the TableResource and TemplateResource for accessing tables and templatesGetTableTool and GetTemplateTool instead of resourcesThis allows compatibility with LLM clients that may not fully support MCP Resources.
# Run in development mode
npm run dev
# Run tests
npm test
# Build the project
npm run build
# Run the built project
npm start
Common issues:
Server not showing up in Claude Desktop
Tool execution failures
Check Claude Desktop logs at:
~/Library/Logs/Claude/mcp*.log%APPDATA%\\Claude\\logs\\mcp*.logComprehensive documentation is available in the docs directory:
/
├── docs/ # Documentation for users and developers
├── src/ # Source code
│ ├── domain/ # Core domain entities and value objects
│ ├── ports/ # Interface definitions for primary and secondary ports
│ ├── useCases/ # Application use cases and service implementations
│ ├── adapters/ # Primary and secondary adapters
│ │ ├── primary/ # Adapters that drive the application (MCP server)
│ │ └── secondary/ # Adapters driven by the application (persistence, RNG)
│ └── index.ts # Application entry point
├── test/ # Test files
│ ├── unit/ # Unit tests for individual components
│ ├── integration/ # Tests for component interactions
│ └── e2e/ # End-to-end tests
└── scripts/ # Build and utility scripts
The project uses Jest for testing. Run the tests with:
npm test
Test Location Standard:
test/ directory, mirroring the structure of the src/ directory.src/adapters/secondary/rng/DefaultRandomNumberGenerator.ts should be in test/unit/adapters/secondary/rng/DefaultRandomNumberGenerator.test.ts.Test Types:
test/unit/ - Test individual components in isolationtest/integration/ - Test interactions between componentstest/e2e/ - Test the entire systemGot an idea or bug? Open an issue and let's chat—PRs are welcome! See the Contributing Guide for more details.
This project is released under the MIT License.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Random Tables MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/random-tables-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.