moses-mcp
Enables searching and browsing TU Berlin degree programs and modules from Moses' public Modulverzeichnis, including module details, exam types, and cross-program usage, without requiring login.
README
moses-mcp
An MCP server for discovering degree programs and modules in Moses — TU Berlin's course, exam, and module planning system. It scrapes the public Modulverzeichnis (MTS) section, which requires no login and is meant to be browsed by students and staff.
There's no official Moses API, so this works by parsing the public MTS web pages directly.
Scope
- Search and browse degree programs (Studiengänge) and their curriculum structure (Pflichtbereich, Wahlpflichtbereich, ...).
- Search modules and read full module descriptions, including exam type (Prüfungsform) and which other degree programs use a given module.
- Out of scope: Vorlesungsverzeichnis (VVZ)/timetables, and anything requiring login (exam registration, editing module data).
Tools
| Tool | What it does |
|---|---|
search_degree_programs |
Search degree programs by name, e.g. "Informatik" |
get_degree_program_structure |
Get a program's curriculum areas (Pflichtbereich, Wahlpflichtbereich, ...) with module/credit counts |
list_area_modules |
List the modules in one curriculum area, with credits, grading, exam type, and Turnus — plus the StuPO's passing rules for that area (e.g. credit min/max) |
search_modules |
Search modules by title or number, e.g. "Computer Vision" |
get_module_details |
Full module description: content, exam type, and which other degree programs use it |
Example things you can ask an MCP client connected to this server:
- "Which modules are mandatory (Pflichtmodul) for the Informatik B.Sc.?"
- "Of those, which use a Portfolioprüfung instead of a written exam?"
- "Recommend some Computer Vision modules for the Computer Science Master's."
- "What other degree programs can take module 40022?"
- "Make me a 6-semester study plan for the Informatik B.Sc. specializing in Theoretical Computer Science" (respects each area's StuPO passing rules, not just credit totals)
Requirements
- Node.js 20 or later
Setup
git clone <this-repo>
cd moses-mcp
npm install
npm run build
This produces a runnable server at dist/index.js, which communicates over stdio (standard MCP transport).
Using it with an MCP client
Claude Code
claude mcp add moses -- node /absolute/path/to/moses-mcp/dist/index.js
This registers the server at local scope (just this project, just you). Use -s user to make it available in every project, or -s project to check a shared .mcp.json into this repo for teammates. Check claude mcp list or run /mcp inside a session to confirm it's connected.
Claude Desktop / other stdio clients
Add it to your client's MCP server config, pointing at the built dist/index.js. For example, in Claude Desktop's claude_desktop_config.json:
{
"mcpServers": {
"moses": {
"command": "node",
"args": ["/absolute/path/to/moses-mcp/dist/index.js"]
}
}
}
Any MCP client that supports stdio servers can use this the same way — point it at node dist/index.js.
A note on robots.txt
moseskonto.tu-berlin.de/robots.txt disallows automated access site-wide (Disallow: /), even though the MTS pages themselves require no authentication and are intended for public browsing. This tool is built for personal, low-volume use — not bulk crawling:
- Requests are serialized (no concurrency) with a delay between them.
- A descriptive User-Agent is sent.
- Results are cached locally (default 24h TTL) so repeat lookups don't re-hit the server.
If you plan to use this beyond personal/occasional lookups, consider reaching out to innoCampus (who run Moses) about proper API access instead.
Development
npm install
npm run dev # run the MCP server via stdio (tsx, no build step)
npm run build # compile to dist/
npm test # run parser unit tests against saved HTML fixtures
Since Moses is a stateful server-rendered app (Jakarta Faces/PrimeFaces) rather than a REST API, most of the scraping logic lives in src/parsers/ (HTML/XML parsing with cheerio) and src/mosesClient.ts (a small, polite HTTP client with a session cookie jar). scripts/prototype-area-expand.ts is a standalone script documenting/validating the one stateful AJAX interaction the tool replicates (expanding a curriculum area). scripts/e2e-check.ts runs the built server end-to-end against the live site.
Troubleshooting
- A degree program's curriculum looks empty /
mapped: false: not every Studien-/Prüfungsordnung (StuPO) has a curriculum mapped for every semester yet.get_degree_program_structureautomatically tries a few StuPOs to find one with data if you don't specifystupo/semesterexplicitly. - Stale results after a Moses update: pass
refresh: trueto any tool to bypass the cache, or delete the.cache/directory. - A tool errors on an unfamiliar page structure: Moses' HTML can change between semesters/releases. Since this scrapes public pages rather than using a stable API, parsers in
src/parsers/may need small updates if that happens — issues/PRs welcome.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。