Dreambot Scripting MCP
Enables AI to write DreamBot OSRS scripts by providing real-time access to the DreamBot API 4.0 JavaDocs and best practices.
README
Dreambot Scripting MCP
Write DreamBot OSRS scripts. Let AI know the API.
A Model Context Protocol server paired with a Claude Code skill that gives Claude real-time access to the DreamBot API 4.0 JavaDocs — so you can say "write a woodcutting bot" and get correct, API-4.0-compliant Java instead of hallucinated 3.x patterns.
What's included
| Component | What it does |
|---|---|
dreambot_search |
Keyword + semantic API search |
dreambot_overview |
Lists all API packages |
dreambot_package |
Lists classes in a package |
dreambot_member |
Full method signatures for a class |
dreambot_tile |
Map URL to Tile code |
dreambot-scripting skill |
Teaches Claude API 4.0 patterns |
Requires Python 3.9+. On macOS/Linux use pip3 and python3 where commands below say pip/python.
Setup
1. Install dependencies
pip install -r requirements.txt
2. Register the MCP server
Add this block to your claude_desktop_config.json:
{
"mcpServers": {
"dreambot-scripting": {
"command": "python",
"args": ["C:/absolute/path/to/Dreambot-Scripting-MCP-main/server.py"]
}
}
}
Replace the path with the absolute path to
server.pyon your machine. TheAPI v4folder must be present in the same directory asserver.py.On Windows,
"command": "python"is correct. On macOS/Linux, change it to"python3".
3. Install the skill
Copy dreambot-scripting.skill (repo root) into your Claude Code plugins directory, then restart Claude Code.
The skill teaches Claude the API 4.0 static-method pattern, state machine structure, anti-ban timing, and when to call each MCP tool — automatically, every time you work on a DreamBot script.
What just happened?
The MCP server runs locally alongside Claude Code. When Claude needs to look up a method signature, it calls one of the five tools — which either search the local API index or scrape the live JavaDocs. The skill fires automatically whenever you mention DreamBot or OSRS scripting, priming Claude with correct API 4.0 patterns before a single line of code is written.
Tool reference
| Tool | Input | When to use |
|---|---|---|
dreambot_search |
query (string), top_k (int, default 8) |
First stop — natural language or keyword |
dreambot_overview |
— | Browse all available packages |
dreambot_package |
package (dot-separated string) |
List classes in a known package |
dreambot_member |
package + href (e.g. Bank.html) |
Full method list with signatures |
dreambot_tile |
Explv url or raw x, y, z integers |
Convert map coordinates to code |
Typical workflow
1. dreambot_search("check if bank is open")
→ identifies Bank class, returns package and href
2. dreambot_member(package="org.dreambot.api.methods.container.impl.bank", href="Bank.html")
→ full method list: isOpen(), open(), withdraw(), depositAllItems(), close() ...
Interactive docs
Hit this button: Interactive Documentation to see the interactive browser! Shows you multiple different things such as how to set it up, and different usages! Enjoy!
Testing
Two-layer automated test harness under tests/:
-
tests/protocol/— fast pytest suite that drivesserver.pyover stdio via the official MCP Python client. Asserts on tool responses directly, no LLM. Run:pytest tests/protocol/ -
tests/scenarios/— Claude Agent SDK harness that runs 31 YAML scenarios through a live Claude session with thedreambot-scriptingskill and the MCP server. RequiresANTHROPIC_API_KEYin the environment. Run:python -m tests.scenarios.runner # all, parallel (4 workers) python -m tests.scenarios.runner --sequential # serial, easier to debug python -m tests.scenarios.runner -k tile # filter by id substring python -m tests.scenarios.runner --workers 8 # custom pool size python -m tests.scenarios.runner --no-judge # skip LLM judge entirelyReports land in
tests/scenarios/reports/<timestamp>/(gitignored). Each run writes asummary.mdplus a per-scenario JSON file with the full transcript, tool calls, assertion results, and (where enabled) the Sonnet 4.6 judge verdict.
Design doc: docs/superpowers/specs/2026-04-10-scenario-test-harness-design.md
Plan: docs/superpowers/plans/2026-04-10-scenario-test-harness.md
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。