Menu

One Bun process, two frontends: a REST API and an MCP server for Indonesia's university database
πŸ“°

One Bun process, two frontends: a REST API and an MCP server for Indonesia's university database

DEV Community: typescriptΒ·Andika Dwi SaputraΒ·about 9 hours ago
#N2GrqYpo
#devtotypescript#devto#dev#tools#transport
Long article (1218 words) β€” no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.