Show HN: A “Course” as an MCP Server
190 codekarate 26 6/10/2025, 8:36:55 PM mastra.ai ↗
We wanted to build a course for new Mastra devs to get started quickly. However, we knew videos would go out of date and be more difficult to maintain.
We decided to launch our "course" as an MCP server. This way your coding agent actually teaches the course content to you and can help you write the code. We think this is a really interactive way to learn.
Using an editor with MCP support (such as Cursor, Windsurf, or VSCode), your code agent will call the appropriate MCP tools which will return context for the agent. This context tries to instruct the agent that it should be teaching you the content, not just doing the work for you.
The course is still pretty experimental and some models work better than others. Code is available in the Mastra Github repo in the mcp-docs-server package (https://github.com/mastra-ai/mastra/tree/main/packages/mcp-d...)
if you do find things that need improvement, please let us know in our discord or on x!
If you are looking for a more general overview on agent development, my co-founder wrote a short book (available free at https://mastra.ai/book)
While most implementations are similar they are not easily transferable.
This is not enough information for someone new to MCP / agents to start the course. What you actually need to point out, is that users need to type "startMastraCourse" into their IDE's agent mode to actually start the course.
There really needs to be more hand holding to get someone to the point where the course actually starts. From there I've been able to follow along alright, but it was a real battle to get to this point.
I definitely remember spending time on Codecademy years ago
later this week we will be releasing a workflows lesson