Clawdwars MCP Server
Click on "Deploy 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., "@Clawdwars MCP Server load Clawdnerf's memory, connect to GodWars, and hunt nearby monsters"
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.
Clawdwars MCP Server
An MCP (Model Context Protocol) server that enables Claude and other AI models to autonomously play GodWars MUD with persistent personality and memory.
Features
Core MUD Interaction
mud_connect: Establish TCP connection to GodWars MUD server
mud_send: Send commands and receive responses from the MUD
mud_read: Check for asynchronous events (combat, chat, etc.)
mud_disconnect: Cleanly close connection and cleanup
Persistent AI Memory System
memory_load: Load character personality, directives, goals, backstory, and session history
memory_update: Update any aspect of a character's persistent data
memory_add_note: Record session notes, discoveries, and character development
memory_get: Retrieve specific memory fields for decision-making
Related MCP server: Skyward
Installation
cd clawdwars
npm install
npm run buildUsage
Auto-discovery via .mcp.json
Add to your Claude Code configuration (~/.claude/config.json or project .mcp.json):
{
"mcpServers": {
"clawdwars": {
"command": "node",
"args": ["clawdwars/build/index.js"]
}
}
}Programmatic Usage
The MCP server exposes all tools via the MCP protocol on stdio:
// Example: Load character memory
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/callTool",
"params": {
"name": "memory_load",
"arguments": { "character_name": "YourCharacter" }
}
}
// Example: Connect to MUD
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/callTool",
"params": {
"name": "mud_connect",
"arguments": {
"host": "172.245.171.200",
"port": 4000
}
}
}Memory System Architecture
Character memory is stored as JSON in ~/.clawdwars/memory/ with one file per character:
{
"character_name": "Clawdnerf",
"personality": "Determined werewolf warrior",
"directives": [
"Pursue combat excellence",
"Protect allies",
"Explore dangerous dungeons"
],
"goals": [
"Achieve high level",
"Master dual-wielding",
"Discover hidden treasure"
],
"backstory": "A cursed wanderer seeking redemption through battle",
"play_style": "Aggressive offense, minimal defense",
"last_session": "2026-02-12T15:30:00Z",
"session_notes": [
"[2026-02-12T15:30:00Z] Defeated the blob easily at level 1",
"[2026-02-12T15:35:00Z] Discovered energy drain spell is effective"
]
}MUD Configuration
The server connects to GodWars MUD at 172.245.171.200:4000 by default. Customize by passing different host/port to mud_connect.
Protocol Details
Output Cleaning
Telnet IAC sequences stripped (Telnet negotiation)
ANSI color codes removed (for clean text)
Line endings normalized to
\nUTF-8 encoded
Response Buffering
mud_send waits 500ms for response (MUD uses tick-based timing)
Output accumulated in buffer between commands
mud_read retrieves buffered output without sending commands
Ideal for checking for async events during long operations
AI Player Example
When Claude Code has access to this server, an AI player can:
Load memory to understand their character's personality and goals
Connect to MUD and create/login to character
Autonomously explore and fight, informed by their directives
Update memory as they discover new strategies or lore
Add notes to record important discoveries for future sessions
The AI maintains consistent personality across sessions via the persistent memory system.
Development
Build
npm run buildDebug
Enable debug logging by checking stderr:
node build/index.js 2>&1License
MIT
Contributing
Contributions welcome! Fork and submit PRs for bug fixes, new features, or improvements to the memory system.
Available Tools
8 toolsmemory_add_noteA
Add a session note to persistent memory. Useful for recording discoveries, encounters, or character development.
Inputs: note (required).
memory_getC
Get specific fields from the current character's persistent memory.
Inputs: fields (required).
memory_loadB
Load persistent memory for a character. Returns their personality, directives, goals, and session history.
Inputs: character_name (required).
memory_updateB
Update persistent memory for the current character. Allows updating personality, directives, goals, and notes.
Inputs: updates (required).
mud_connectB
Connect to a GodWars MUD server via TCP. Returns the welcome/greeting text.
Inputs: host (required), port (required).
mud_disconnectB
Disconnect from the MUD server and clean up.
Inputs: no named parameters.
mud_readA
Read any output that has accumulated since the last read/send. Use this to check for async events like combat, chat messages, etc.
Inputs: no named parameters.
mud_sendB
Send a command to the MUD and return the response. This is the primary tool for interacting with the game.
Inputs: command (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The set splits cleanly into two clusters: memory operations (load/update/get/add_note) and MUD connection operations (connect/send/read/disconnect), and the descriptions make each action clear. The only mild overlap is memory_load vs memory_get (both read memory; one returns the full profile, the other fetches specific fields) and memory_add_note vs memory_update, but the descriptions disambiguate them well enough.
Names use a strictly consistent prefix_verb pattern: memory_load, memory_update, memory_add_note, memory_get, mud_connect, mud_send, mud_read, mud_disconnect. The two resource prefixes (memory_/mud_) map directly to the two tool clusters, making naming fully predictable.
Eight tools is well-scoped for a MUD client with persistent character memory: four memory tools and four connection tools, with no redundant entries. Each tool earns its place in the workflow.
The surface covers memory lifecycle (load, update, get, add note) and full MUD connection lifecycle (connect, send, read, disconnect), so agents can play without dead ends. Minor gaps exist: there is no way to delete/clear notes or remove individual memory fields, only to update them.
Maintenance
Related MCP Connectors
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Persistent AI entity framework with causal memory, emotional state, and identity.
Persistent MMORPG where AI agents play alongside humans. 12 tools, 4 resources; free, no pay-to-win.
A persistent tabletop RPG with an AI dungeon master. Agents and humans share one table.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables creation and management of structured game worlds for text adventures and RPGs with character creation, world generation, and natural language interaction through AI integration.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to connect to a shared browser-based open world, where they can perceive, move, speak, emote, act, and claim land.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to join a multiplayer NetHack-style roguelike MMO, perform actions, chat, use social features, and access leaderboards via MCP tools.MIT
- AlicenseNot gradedqualityDmaintenanceProvides MCP supervision and knowledge tools for controlling an LLM-driven Meridian 59 character, enabling durable goal management, persona configuration, and audited gameplay.MIT