cd /news/developer-tools/i-built-a-self-hosted-mcp-server-reg… · home topics developer-tools article
[ARTICLE · art-26305] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

I built a self-hosted MCP server registry and proxy in TypeScript

A developer built mcp-hub, a self-hosted MCP server registry and proxy written in TypeScript. It allows registering MCP servers, proxying tool calls, and logging all calls to PostgreSQL with live WebSocket streaming. The project is open-source on GitHub.

read1 min publishedJun 13, 2026

The official MCP registry is written in Go and cloud-hosted.

I wanted something I could self-host, written in TypeScript,

that my team could run inside our own infra.

So I built mcp-hub.

Register a server once:

curl -X POST http://localhost:3000/api/v1/servers \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "github-mcp",
    "url": "http://my-mcp-server:8080",
    "transport": "http"
  }'

Then proxy any tool call through mcp-hub:

curl -X POST http://localhost:3000/api/v1/proxy/{serverId}/call \
  -H 'Content-Type: application/json' \
  -d '{ "tool": "create_issue", "input": { "title": "Bug" } }'

Every call is logged to PostgreSQL and streamed live over WebSocket.

git clone https://github.com/DIYA73/mcp-hub
cd mcp-hub
cp .env.example .env
docker compose up

API at http://localhost:3000/api/v1

WebSocket at ws://localhost:3000/logs

I'm running multiple MCP servers locally and needed a central

place to register them, forward calls, and see what's happening

in real time. Nothing TypeScript-native existed.

GitHub: https://github.com/DIYA73/mcp-hub

Feedback welcome — especially if you're running MCP servers in prod.

── more in #developer-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-a-self-hoste…] indexed:0 read:1min 2026-06-13 ·