moo-mcp
MCP server for LambdaMOO administration. Connects to a MOO's admin port over TCP and exposes tools for eval, verb/property management, and inheritance chain walking.
README
moo-mcp
MCP server for LambdaMOO administration. Connects to a MOO's admin/wizard port over TCP, keeps the connection warm, and exposes structured tools for the operations you actually do when hacking on a MOO: eval expressions, list/program verbs (with auto read-back verification), add/remove properties, walk the inheritance chain.
Use with Claude Code or any other MCP-compatible client.
Why
The usual MOO admin loop is "telnet in, run a command, read the response, repeat" - slow and lossy when scripted, and @program famously prints "0 errors" even when the verb body didn't actually get stored as you expected. moo-mcp wraps that loop in a persistent process with proper request/response semantics and adds an automatic read-back verify on every verb program so silent corruption is impossible.
Status
Alpha. Tested against LambdaMOO 1.8.3-Mongoose. Should work against any MOO whose admin port speaks the standard ;eval, @list, @program ... . protocol.
Install
pip install moo-mcp
Or from source:
git clone https://github.com/<org>/moo-mcp
cd moo-mcp
pip install -e .
Configure
moo-mcp is config-free out of the box - you must provide connection details via environment variables. There are no defaults pointing at any particular MOO.
| Env var | Required | Description |
|---|---|---|
MOO_HOST |
yes | Hostname or IP of the MOO admin port |
MOO_PORT |
yes | TCP port (e.g. 7777, 3500) |
MOO_USER |
yes | Wizard character name |
MOO_PASS |
yes | Wizard password |
MOO_TIMEOUT |
no | Seconds to wait for a response (default 15) |
MOO_RECONNECT |
no | true/false, auto-reconnect on drop (default true) |
MOO_TLS |
no | true/false, wrap the connection in TLS (default false). Use this when the MOO is fronted by stunnel or otherwise serves the admin port over TLS. |
MOO_TLS_INSECURE |
no | true/false, skip TLS certificate validation (default false). Only enable for self-signed certs on a MOO you control. |
Use with Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"moo": {
"command": "python",
"args": ["-m", "moo_mcp"],
"env": {
"MOO_HOST": "your.moo.example.com",
"MOO_PORT": "7777",
"MOO_USER": "Wizard",
"MOO_PASS": "supersecret"
}
}
}
}
Or run directly:
MOO_HOST=... MOO_PORT=... MOO_USER=... MOO_PASS=... python -m moo_mcp
Tools
| Tool | Description |
|---|---|
eval |
Evaluate a MOO expression; returns parsed value or structured error |
list_verb |
Read a verb body; returns header + numbered lines |
program_verb |
Replace a verb body; auto-verifies by re-listing and diffing |
add_verb / remove_verb / chmod_verb |
Verb lifecycle |
add_property / remove_property / set_property |
Property lifecycle |
has_verb / has_property |
Check existence (returns the defining-object list) |
verbs / properties |
List local verbs/properties on an object |
parent / chparent |
Read or change an object's parent |
All tools return JSON results. MOO errors (E_PROPNF, traceback) become structured {error: {message, traceback}} objects rather than raw text.
Security
moo-mcp is a wizard-privileged admin tool, equivalent in capability to a logged-in human wizard at the MOO admin port. Anyone who can call its tools can do anything a wizard can. Run it in a trust boundary that matches.
Specific notes:
- The stock MOO admin protocol is plaintext. Username and password are sent over the TCP socket unencrypted, the same way a
telnetsession would. If your MOO is not on the same host as the MCP and not already TLS-wrapped, either: (a) setMOO_TLS=trueif your MOO is fronted by stunnel or otherwise serves the admin port over TLS, or (b) run the MCP through an SSH tunnel to the MOO host. eval_moogives full wizard eval access. This is by design. Do not expose this MCP to untrusted clients.program_verbrejects bare-dot lines in the body (they would terminate the@programblock and let the rest land in the command parser). If you need a literal.line in MOO code, indent it.add_verbvalidates the verb arg-spec (dobj/iobjmust bethis/any/none,prepis allowlist-character-checked) to prevent breaking out of the MOO double-quoted literal during eval splice.set_property/add_propertyvalue serializer escapes backslashes, double quotes, carriage returns, line feeds, and NUL bytes in string values so a malicious property value cannot break out of the MOO source.- Connection config rejects CR/LF/NUL in
MOO_USER/MOO_PASSto prevent command injection at login time. search_verbsaccepts user-provided regex. A pathological pattern can cause catastrophic backtracking. Python'srehas no built-in timeout. Trust the caller, or pre-validate patterns if you're exposing this to untrusted input.- No persistent state: no on-disk caching, no logging of passwords, no telemetry. Connection credentials live only in env vars; in-flight commands live in process memory.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。