npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ev3lynx/oh-my-mcp

v1.0.1

Published

Native MCP gateway with management layer on top of supergateway

Downloads

39

Readme

oh-my-mcp

Manage MCP servers and proxy JSON-RPC over HTTP

oh-my-mcp is a gateway and process manager for Model Context Protocol servers. It starts MCP servers (via supergateway), monitors their health, and exposes a unified HTTP API for clients like Claude Desktop, Cursor, and Windsurf.


Features

  • Process management: start/stop/restart individual or all servers with automatic restart on failure.
  • HTTP gateway: Proxy MCP JSON-RPC (POST /mcp) with server selection via Server-Id header.
  • Observability:
    • Prometheus metrics (/metrics)
    • Structured JSON logging (request/response + audit)
    • Rate limiting (per-IP management, per-token gateway)
    • Request timeouts (60s gateway, 120s management)
  • Configuration as code: YAML config with hot-reload; Zod validation.
  • Transport abstraction: currently HTTP via supergateway; stdio transport planned.
  • Docker & Kubernetes ready: deploy with included guides.

Quick Start

# 1. Clone and build
git clone https://github.com/ev3lynx/oh-my-mcp
cd oh-my-mcp
npm ci
npm run build

# 2. Create config (see config.example.yaml)
cp config.example.yaml config.yaml
# Edit config.yaml with your MCP servers

# 3. Run
node dist/index.js config.yaml

The app starts:

  • Management API on http://localhost:8080
  • Gateway API on http://localhost:8090

📚 Documentation

Comprehensive guides for advanced usage, deployment, and integration:

| Guide | Purpose | |-------|---------| | USAGE.md | Detailed usage examples, API reference, Docker, Kubernetes, OpenClaw, CI/CD | | SETUP.md | Installation, configuration, security best practices | | DEPLOYMENT.md | Docker, Kubernetes, systemd, production hosting | | ARCHITECTURE.md | System design, modules, extension points | | CONTRIBUTING.md | How to contribute, code style, testing |

Start with USAGE.md for practical patterns.


Configuration

config.yaml:

managementPort: 8080
gatewayPort: 8090
logLevel: info
compression: true

auth:
  enabled: true
  tokens:
    - "your-secret-token"

servers:
  github:
    command: ["npx", "-y", "@modelcontextprotocol/server-github"]
    env:
      GITHUB_TOKEN: "${GH_TOKEN}"
    timeout: 60000
    enabled: true
    transport: "supergateway"
    healthCheck:
      interval: 30000
      timeout: 5000
      unhealthyThreshold: 3

See config.example.yaml for all options.


API

Management API (port 8080)

| Endpoint | Method | Auth | Description | |----------|--------|------|-------------| | /health | GET | no | Application health: { status, servers } | | /servers | GET | yes | List all servers with status | | /servers/:id | GET | yes | Get single server details | | /servers/:id/start | POST | yes | Start a server | | /servers/:id/stop | POST | yes | Stop a server | | /servers/:id/restart | POST | yes | Restart a server | | /_start-all | POST | yes | Start all enabled servers | | /_stop-all | POST | yes | Stop all running servers | | /metrics | GET | no | Prometheus metrics |

Authentication: Include Authorization: Bearer <token> if auth enabled.

Gateway API (port 8090)

POST /mcp proxies any JSON-RPC request to the selected backend.

Headers:

  • Server-Id (optional): which server to route to (default: first enabled)
  • Authorization: Bearer <token> (if auth enabled)

Body: Standard MCP JSON-RPC 2.0 request.

Example:

curl -X POST http://localhost:8090/mcp \
  -H "Authorization: Bearer your-secret-token" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{}}}'

Response is passed through from the backend server.


Observability

  • Metrics: GET http://localhost:8080/metrics (Prometheus format). Includes:
    • ohmy_mcp_servers_total{status}
    • ohmy_mcp_requests_total{method,route,status_code}
    • ohmy_mcp_request_duration_seconds{method,route}
    • process_* system metrics
  • Logging: JSON logs to stdout. Request IDs in X-Request-ID and logs. Audit events logged with component=audit.
  • Health: GET /health for overall; per-server: GET /servers/:id/health (future).
  • Rate limiting: X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After headers.

Full guide: docs/observation.md.


Deployment

Docker

docker build -t oh-my-mcp .
docker run -d -p 8080:8080 -p 8090:8090 -v $(pwd)/config.yaml:/app/config.yaml oh-my-mcp

See docs/deployment/docker.md.

Kubernetes

Manifests provided: docs/deployment/kubernetes.md.

Use ConfigMap for config, Secret for tokens, and HPA for scaling.


Development

npm run dev        # watch mode with tsx
npm run build      # compile to dist
npm test           # unit + integration
npm run lint       # eslint

Project structure:

  • src/domain – Pure domain model (MCPServer, ServerTransport)
  • src/application – ProcessManager, PortAllocator, EventBus, HealthChecker
  • src/infrastructure – Config, HTTP, transports, metrics
  • src/middleware – Express middleware (timeout, rate-limit, audit, logging, etc.)
  • src/index.ts – App bootstrap and wiring

Architecture overview: docs/architecture.md.


Roadmap

  • DirectStdioTransport for native stdio MCP servers
  • Distributed rate limiting (Redis)
  • OAuth2 / JWT authentication
  • React management UI
  • Request/response caching
  • WebSocket streaming support
  • OpenAPI specification

Credits


Contributing

See docs/contributing.md. We welcome issues and PRs.


License

MIT – see LICENSE for details.