moses-mcp
The moses-mcp server provides access to TU Berlin's public Moses MTS (Modulverzeichnis) system, allowing you to search, browse, and analyze degree programs and modules without login. You can:
Search degree programs by name, optionally filtering by faculty or degree type (Bachelor/Master).
Retrieve a program's curriculum structure (e.g., Pflichtbereich, Wahlpflichtbereich) with module/credit counts per area.
List modules within a curriculum area, including credits, grading, exam type, Turnus, and StuPO passing rules.
Search modules by title or module number, returning details like credits, language, and responsible person.
Get full module details: description, learning outcomes, content, exam type, teaching language, and cross-listings (which other programs use that module).
Answer complex queries, e.g., identify mandatory modules with specific exam types, or find all programs that use a module.
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., "@moses-mcpWhich modules are mandatory for the Informatik B.Sc.?"
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.
moses-mcp
An MCP server for discovering degree programs and modules in Moses — TU Berlin's course, exam, and module planning system. It talks to Moses' official REST API (https://moseskonto.tu-berlin.de/moses/api/v2), which innoCampus (who run Moses) can provision on request.
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).
Related MCP server: OpenAlex MCP Server
Tools
Tool | What it does |
| Search degree programs by name, e.g. "Informatik" |
| Get a program's curriculum areas (Pflichtbereich, Wahlpflichtbereich, ...) with module/credit counts |
| 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 by title or number, e.g. "Computer Vision" |
| 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
A Moses API token (see below)
API access
There's no self-service signup — email innoCampus (who run Moses) and ask for API access; they'll issue a token and tell you which endpoints are enabled for it. Keep the token secret: it authenticates as you, and the endpoint owners can rate-limit or block API keys that generate excessive load (e.g. bulk-scanning without cause), so use refresh: true sparingly and avoid scripting bulk queries beyond what this tool already does.
Setup
git clone <this-repo>
cd moses-mcp
npm install
cp .env.example .env # then edit .env and set API_TOKEN=<your token>
npm run buildThis produces a runnable server at dist/index.js, which communicates over stdio (standard MCP transport). The server reads .env itself on startup (resolved next to its own install location, not the caller's working directory), so a .env file in this project directory is enough — you don't need to configure the token separately in your MCP client, though you can (see below) if you'd rather not keep it in a file.
Using it with an MCP client
Claude Code
claude mcp add moses -- node /absolute/path/to/moses-mcp/dist/index.jsThis 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. If you'd rather not keep the token in .env, most clients also let you set per-server environment variables directly in their config (e.g. add "env": {"API_TOKEN": "..."} alongside "command"/"args" above) instead.
Enabling cross-program module usage lookups
get_module_details's usedInPrograms (which other degree programs use a module) needs a reverse-lookup index that Moses' API doesn't support querying directly — building it means scanning the full assignment tables (~445k records), which takes on the order of 10-15 minutes. So it's never built automatically; run it explicitly, and re-run occasionally to refresh (it's cached for 7 days regardless):
npm run build-usage-indexUntil this has been run at least once, usedInPrograms comes back as an empty list rather than blocking tool calls.
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 unit tests against fixture data (no network)
npm run e2e # build, then exercise all 5 tools against the LIVE APIsrc/api/client.ts is the typed REST client (token auth via X-API-Key, batched idlist lookups, a small concurrency cap). src/api/entities.ts has the API's entity shapes. The trickiest part of src/services/degreePrograms.ts is that Moses' curriculum data comes in two structurally different shapes depending on the StuPO: a newer studiengangsbereich model, and an older per-semester bolognamodulliste model still used by some programs (Informatik B.Sc. among them) — get_degree_program_structure/list_area_modules detect and handle both. src/services/moduleUsageIndex.ts builds the cross-program usage index described above. scripts/e2e-check.ts runs the built server end-to-end against the live API.
Troubleshooting
A degree program's curriculum looks empty /
mapped: false: not every Studien-/Prüfungsordnung (StuPO) has curriculum data mapped yet.get_degree_program_structureautomatically tries a few recent 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.get_module_details'susedInProgramsis always empty: runnpm run build-usage-indexat least once — see above.A tool errors unexpectedly: the Moses API is under active development and has some known rough edges (e.g.
idlistsilently doesn't filter on a couple of endpoints — already worked around insrc/api/client.ts). If a new one shows up, issues/PRs welcome.
Available Tools
5 toolsget_degree_program_structureGet degree program curriculum structureA
Get a degree program's curriculum areas (Pflichtbereich, Wahlpflichtbereich , Wahlbereich, Bachelorarbeit, ...) for a given StuPO + semester snapshot, with module/credit counts per area. If stupo/semester are omitted, resolves the newest StuPO+semester Moses actually has curriculum data for. Use the returned stupo/semester values with list_area_modules to see the actual modules in an area.
| Name | Required | Description | Default |
|---|---|---|---|
| stupo | No | Studien-/Prüfungsordnung id (the 'mkg' value), e.g. from a previous call's selectedStupo | |
| refresh | No | Bypass the local cache and re-fetch from Moses | |
| semester | No | Modulliste semester id, e.g. from a previous call's selectedSemester | |
| programId | Yes | Degree program id, from search_degree_programs |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of disclosing behavior. It reveals the fallback resolution of the newest StuPO/semester when omitted and notes that data comes from Moses. It does not discuss caching behavior (though the refresh parameter implies it) or error conditions, but the core behavioral traits are transparently stated.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, immediately front-loaded with the primary purpose. It includes concrete examples and a clear next-step reference without any fluff or redundancy. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description explains the output scope (curriculum areas with module/credit counts) and the fallback resolution, which is essential for using the tool. However, without an output schema, it could more precisely specify the exact structure of the returned data, but the description is sufficient for basic invocation and interpretation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already provides 100% coverage with descriptions for all parameters. The description adds value by explaining the omission behavior for stupo/semester and how the returned values should be used with list_area_modules. This goes beyond the schema's basic descriptions, enhancing the agent's understanding of parameter relationships.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: retrieving curriculum areas (Pflichtbereich, Wahlpflichtbereich, Wahlbereich, Bachelorarbeit) for a degree program under a specific StuPO and semester, including module/credit counts. It distinguishes itself from siblings by focusing on the structural overview and explicitly referencing list_area_modules for module-level detail.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It provides explicit usage guidance: when StuPO/semester are omitted, it resolves the newest available data; and it directs the user to use the returned values with list_area_modules for module-level details. This clearly communicates when to use this tool and how it fits into the workflow with sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_module_detailsGet module detailsA
Get a module version's full description: title, credits, exam type (Prüfungsform), grading, teaching language, faculty/institute/Fachgebiet, learning outcomes, content, and — critically — the list of degree programs (usedInPrograms) that use this module version. Use this to answer 'what other majors could take this module'. If version is omitted, resolves the current version.
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | Bypass the local cache and re-fetch from Moses | |
| version | No | Specific module version; defaults to the current version | |
| moduleNumber | Yes | Module number, e.g. '40022' |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does well by disclosing the returned fields and the critical behavior that omitting version resolves the current version. It also surfaces the usedInPrograms list as a key output. It could mention caching or error behavior, but the schema's refresh parameter already hints at data sourcing.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the action and object, then packs field details, use case, and version behavior into two additional sentences. Every sentence earns its place with no filler or unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description provides a comprehensive view of the tool's output in the absence of an output schema, enumerating most return fields. It also gives the intended use case and default version resolution, making it sufficient for the tool's simplicity. Sibling tools add context, but the description stands alone well.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, providing clear descriptions for moduleNumber, version, and refresh. The description mostly re-states the version default already present in the schema ('If version is omitted, resolves the current version') and adds no new parameter-level meaning, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and resource ('Get a module version's full description') and enumerates exact fields returned, including the unique 'usedInPrograms' list. It clearly distinguishes from sibling tools by focusing on detailed module data rather than degree program searches or module listings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states when to use the tool: 'Use this to answer what other majors could take this module.' It also clarifies the version default behavior. It does not explicitly mention when not to use it or name alternative tools, but the use case is strong enough for guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_area_modulesList modules in a curriculum areaA
List the modules assigned to one curriculum area of a degree program (e.g. 'Pflichtbereich' or 'Wahlpflichtbereich Theoretische Informatik'), for a specific StuPO + semester (get these from get_degree_program_structure first). Each module includes credits (lp), whether it's graded, its exam type (examType, e.g. 'Schriftliche Prüfung' or 'Portfolioprüfung'), and Turnus. Filter the results client-side on examType to answer questions like 'which mandatory modules use a Portfolioprüfung'.
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | Area name (or exact row key) as returned by get_degree_program_structure, e.g. 'Pflichtbereich' | |
| stupo | Yes | Studien-/Prüfungsordnung id (the 'mkg' value) | |
| refresh | No | Bypass the local cache and re-fetch from Moses | |
| semester | Yes | Modulliste semester id | |
| programId | Yes | Degree program id |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full responsibility for behavioral disclosure. It explains output fields and suggests client-side filtering, which adds useful context. However, it does not mention the local caching mechanism exposed via the 'refresh' parameter, potential side effects away from read-only retrieval, or error behavior, leaving some behavioral traits undisclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is composed of three sentences that front-load the main action and include helpful examples. It is efficient but slightly dense due to parentheticals and multiple clauses, so it loses a point for not being as crisp as possible.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only list tool with no output schema, the description covers the key return fields, prerequisite calls, and intended usage patterns. It lacks detail on pagination, error cases, and caching behavior, but given the tool's simplicity, it is nearly complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3. The description adds meaningful context by telling users to get StuPO and semester from get_degree_program_structure and by clarifying the 'area' parameter with examples, going beyond the raw schema definitions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly specifies the action ('List') and the resource ('modules assigned to one curriculum area of a degree program'), with concrete examples of area names. It also distinguishes itself from siblings by referencing get_degree_program_structure as the source for required parameters, making the tool's specific role unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description states that StuPO and semester should be obtained from get_degree_program_structure first, giving clear context for when to use this tool. It also advises filtering results client-side. However, it does not explicitly mention alternatives like search_modules for global module searches, so exclusions are not fully spelled out.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_degree_programsSearch degree programsA
Search TU Berlin Moses degree programs (Studiengänge) by name, e.g. 'Informatik' or 'Computer Science'. Returns each program's id (needed by get_degree_program_structure), short name, degree type (e.g. Bachelor of Science), and faculty.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Full or partial degree program name | |
| faculty | No | Filter by faculty substring, e.g. 'Fakultät IV' | |
| refresh | No | Bypass the local cache and re-fetch from Moses | |
| degreeType | No | Filter by degree type substring, e.g. 'Bachelor' or 'Master' |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the transparency burden. It discloses return fields and the id's role, but omits behavioral details such as caching (despite a refresh parameter) and search matching rules (case sensitivity, partial matches). This provides moderate transparency but leaves some important behavior unspecified.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with no filler. The purpose and key outputs are front-loaded, making it highly efficient and easy to scan. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description is complete enough for a search tool: it names the resource, provides examples, and lists return fields. It doesn't mention pagination or caching behavior, but given the absence of an output schema and the simplicity of the tool, this is a minor gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema covers all 4 parameters with descriptions, so the baseline is 3. The description adds only redundant examples (e.g., 'Informatik') and restates that search is by name, providing little additional semantic value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's action ('Search TU Berlin Moses degree programs') with a specific resource and examples. It also lists the exact return fields, distinguishing it from the sibling search_modules by focusing on degree programs and noting the id is needed by get_degree_program_structure.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It provides clear usage context: search by name to get program ids for use with get_degree_program_structure. It doesn't explicitly mention when not to use it, but the relationship to the sibling tool is well implied. No competing alternative is mentioned, but the context is sufficient for most cases.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_modulesSearch modulesA
Search TU Berlin Moses modules by title or exact module number, e.g. 'Computer Vision'. Useful for discovering/recommending modules by topic. Returns module number/version, title, language(s), credits, grading, responsible person, and organizational unit (Fachgebiet). Use get_module_details for the full description and which degree programs use a given module.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Module title (partial match) or exact module number | |
| refresh | No | Bypass the local cache and re-fetch from Moses | |
| semester | No | Restrict to modules with a description valid in this semester id; defaults to the current semester |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of behavioral disclosure. It lists the returned fields (module number/version, title, language(s), credits, grading, responsible person, organizational unit), which is helpful, but omits limitations like result count, pagination, or the partial-match behavior for titles (only described in the schema). No contradictions with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three concise sentences, front-loaded with the core purpose, then the use case, then return fields, and finally an alternative tool. Every sentence earns its place with no redundant content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of output schema and annotations, the description covers the main purpose and return fields, but misses important operational details such as partial title matching, caching/refresh behavior (beyond the schema), and any limits on result size. It is adequate but not fully complete for confident tool selection.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema describes all three parameters with 100% coverage, so the baseline is 3. The description adds a small amount of context for the 'query' parameter (title or exact module number) but does not add meaningful semantics for 'refresh' or 'semester' beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool 'searches TU Berlin Moses modules by title or exact module number,' with a concrete example ('Computer Vision'). It also distinguishes itself from get_module_details by noting when to use the latter for full descriptions and degree program information.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives explicit context: 'Useful for discovering/recommending modules by topic' and directs users to use get_module_details for full descriptions and degree programs. However, it lacks an explicit 'when not to use' statement for other sibling tools like search_degree_programs or list_area_modules.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v0.1.0- First observed
get_degree_program_structure - First observed
get_module_details - First observed
list_area_modules - First observed
search_degree_programs - First observed
search_modules
TDQS
Scored across 5 tools
Each tool targets a distinct entity and action: searching programs, getting program structure, listing modules in an area, searching modules, and getting module details. The workflow is clear, and there is no ambiguity between search functions for different entity types.
All tool names follow a consistent verb_noun pattern in snake_case: search_degree_programs, get_degree_program_structure, list_area_modules, search_modules, get_module_details. The verbs (search, get, list) accurately reflect the operations and are used consistently.
With exactly 5 tools, the server is well-scoped for its purpose of browsing degree programs and modules. Each tool covers a necessary step in the workflow without redundancy or bloat.
The tool set covers the core workflow of discovering degree programs, exploring their curriculum areas, listing modules in those areas, and retrieving module details. A minor gap is the lack of a direct 'get_degree_program' tool by ID, though search_degree_programs returns id and basic info, and get_degree_program_structure can be used with the id.
Maintenance
Related MCP Connectors
Academic literature search, retrieval, and private library management on top of OpenAlex.
Unofficial NTNU course data: search, timetables, grades, course info, and exam logistics.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
- uNotesOAuthnet.unotes
Search university course materials, your flashcards, quizzes, streak and quota. All tools read-only.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables read-only querying of Moodle as a student, including courses, assignments, grades, forums, and files, using a personal web services token.11-
- AlicenseNot gradedqualityDmaintenanceEnables searching scholarly papers and authors via the OpenAlex API, with no API key required.MIT
- FlicenseNot gradedqualityBmaintenanceEnables LLMs to interact with FIT CTU course materials, including listing subjects, navigating subpages, reading content as Markdown, and performing keyword searches.-
- FlicenseNot gradedqualityBmaintenanceEnables browser-based login to approved UTN Moodle sites and read-only access to the user's profile, course list, and course activities via local Chromium automation.2-