PDDikti is Indonesia's national database of universities, study programs, lecturers and students. Its website is the only way most people reach that data. There's no public API, so if you want to check a lecturer's homebase from a script, or let an AI assistant look up a study program's accreditation, you're scraping pages by hand.
I wanted both: a normal REST API for apps, and an MCP server so Claude and other agents could query the same data. I ended up building them as one Bun process with two frontends over a single data layer. This post walks through the decisions that mattered, with code from the open-source repo .
One data layer, two frontends
The obvious way to add MCP to an existing API is to write MCP tools that call your own REST endpoints over HTTP. I didn't, for two reasons.β¦