El Oráculo del Mazmorrero
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@El Oráculo del MazmorreroAgrega espada legendaria a mi inventario."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
El Oráculo del Mazmorrero
Práctica guiada (≈ 90–120 min) para construir tu primer servidor MCP en Python y conectarlo a Cursor, incluyendo una tool que llama al proxy de Azure OpenAI del curso.
Primitiva | Qué construyes |
Tools |
|
Resources |
|
Prompts |
|
Requisitos
Python 3.10+
Cursor con soporte MCP
Credenciales del proxy: URL (
AZURE_PROXY_ENDPOINT) y API key (AZURE_PROXY_KEY)
Related MCP server: MCP Dice Roller
1. Clonar y preparar el entorno
git clone <url-de-este-repo>
cd practica_mcp_dungeons_and_dragons # o el nombre de la carpeta clonada
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt2. Explorar el servidor
Abre server.py. Está organizado en bloques:
Tools locales — dados, monstruos, inventario (sin red).
Resource — oráculo de solo lectura.
Prompt — plantilla para crear un personaje.
Tool con IA —
narrar_combate_iallama al proxy conhttpx(async).
Las credenciales nunca van en el código: se leen de variables de entorno.
3. Probar en aislamiento (MCP Inspector)
Con el venv activo:
mcp dev server.pyCheckpoint: debes ver 4 tools, 1 resource y 1 prompt.
Para probar narrar_combate_ia en el Inspector, exporta antes:
export AZURE_PROXY_ENDPOINT="https://tu-proxy/v1/chat/completions"
export AZURE_PROXY_KEY="tu-api-key"
mcp dev server.py4. Conectar a Cursor
Copia la plantilla de configuración:
cp .cursor/mcp.json.example .cursor/mcp.jsonEdita
.cursor/mcp.jsony reemplaza:Las rutas absolutas a
.venv/bin/pythony aserver.pyAZURE_PROXY_ENDPOINTyAZURE_PROXY_KEYcon las del curso
Reinicia Cursor o ve a Settings → Tools & MCP y confirma el indicador verde.
En el chat del Agente, prueba:
Tira 2 dados de 20 caras para mi ataque.Genera un monstruo de dificultad difícil para mi próximo encuentro.Agrega "espada legendaria" a mi inventario y luego muéstrame qué tengo.Narra con IA un combate entre mi héroe Aria y un Dragón juvenil, resultado: crítico.5. Retos (elige al menos 2)
Tool
curar_heroe(puntos)— rechaza negativos.Persistencia del inventario en
inventario.json.Resource
bestiario://listacon el bestiario en JSON.Parámetro opcional
tonoennarrar_combate_ia(epico/comico/oscuro).Un reintento si el proxy hace timeout.
Seguridad (imprescindible)
No hardcodees la API key en
server.py.No subas
.cursor/mcp.jsoncon secretos (ya está en.gitignore). Usamcp.json.example.Valida parámetros de entrada antes de llamar APIs externas.
No ejecutes servidores MCP de fuentes no verificadas sin revisar el código.
Solución de problemas
Síntoma | Qué revisar |
Servidor no aparece en Cursor | Rutas absolutas en |
| Que |
Variables faltantes en | Bloque |
Error HTTP 4xx/5xx del proxy | URL, formato del body y contrato del proxy del curso |
Verificación rápida (sin Cursor)
source .venv/bin/activate
python scripts/smoke_test.pyConfirma que se registran las 4 tools, el resource y el prompt, e invoca las tools locales.
Guía completa de la clase
El guion pedagógico paso a paso está en PRACTICA.md (contexto, conceptos, rúbrica y discusión de seguridad).
Estructura del repo
.
├── server.py # Servidor MCP (FastMCP)
├── requirements.txt # mcp, httpx
├── PRACTICA.md # Guion completo de la clase
├── scripts/
│ └── smoke_test.py # Verificación local sin Cursor
├── .cursor/
│ └── mcp.json.example # Plantilla sin secretos
├── .env.example # Variables de entorno de ejemplo
├── .gitignore
└── README.mdThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceA comprehensive Model Context Protocol server for managing Dungeons & Dragons campaigns with tools for characters, NPCs, locations, quests, combat encounters, and session tracking.Last updated3012MIT
- AlicenseAqualityCmaintenanceAn MCP server that provides tools for rolling dice using standard notation, flipping coins, and selecting random items from lists. It supports advanced tabletop gaming features such as character stat generation and keep-highest/lowest mechanics.Last updated6MIT
- AlicenseBqualityCmaintenanceA comprehensive MCP server for managing AI-assisted Dungeons & Dragons campaigns, featuring tools for character sheets, combat tracking, and world-building. It enables players and DMs to interact with 5e game mechanics and query personal PDF rulebooks using RAG capabilities.Last updated972MIT
- AlicenseAqualityAmaintenanceD\&D 5e SRD MCP server - monster search, spell lookup, encounter building, and character tools powered by ground-truth SRD dataLast updated201004MIT
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
MCP server for Midjourney AI image generation and editing
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/REMR11/practica_mcp_dungeons_and_dragons'
If you have feedback or need assistance with the MCP directory API, please join our Discord server