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

@emby-utils/server

v0.1.0

Published

Model Context Protocol (MCP) server exposing the full Emby API over HTTP (Streamable HTTP + SSE).

Downloads

121

Readme

@emby-utils/server

Model Context Protocol server for the Emby REST API. Exposes every one of Emby's 447 operations to an MCP-capable LLM (Claude Desktop, LM Studio, Continue, etc.) through a mix of semantic tools for common tasks and a universal dispatcher for everything else.

The server speaks MCP over HTTP (Streamable HTTP + SSE) on port 3000 — a long-running service that any MCP client supporting the Streamable HTTP transport can connect to.

Repository layout

Tooling and ops artefacts are grouped under subdirectories to keep the root uncluttered:

src/              TypeScript sources (entrypoint: src/bin.ts)
tests/            Vitest suite
config/           tsconfig, eslint, prettier, vitest configs
docker/           Dockerfile, docker-compose.yml, .env.example, ignore file
.config/husky/    Git hooks (installed by husky on `npm install`)

All npm scripts and workflows work from the repo root; the indirection to config/ / docker/ is handled by the scripts themselves.

Quick start — Docker Compose

git clone https://github.com/vromero/emby-utils-mcp
cd emby-utils-mcp
cp docker/.env.example docker/.env    # fill in EMBY_HOST and EMBY_API_KEY
npm run docker:up                     # wraps `docker compose -f docker/docker-compose.yml ...`
curl http://localhost:3000/healthz
# {"status":"ok"}

Then point your MCP client at http://localhost:3000/mcp.

Stop with npm run docker:down. The underlying compose file lives at docker/docker-compose.yml; if you'd rather call docker compose directly, use docker compose -f docker/docker-compose.yml --project-directory docker up -d.

Quick start — Docker run

docker run -d --name emby-mcp \
  -p 3000:3000 \
  -e EMBY_HOST=http://emby.local:8096 \
  -e EMBY_API_KEY=your-api-key \
  --restart unless-stopped \
  ghcr.io/vromero/emby-utils-mcp:latest

Quick start — Node

npm install -g @emby-utils/server
EMBY_HOST=http://emby.local:8096 \
EMBY_API_KEY=your-api-key \
  emby-mcp-server
# Emby MCP Server listening on http://0.0.0.0:3000 (MCP: /mcp, health: /healthz)

Configuration

Environment variables:

| Variable | Default | Description | | --------------- | ---------- | ------------------------------------------------------------------------------------------------ | | EMBY_HOST | required | Emby server URL (e.g. http://emby.local:8096) | | EMBY_API_KEY | required | Emby API key | | EMBY_MCP_HOST | 0.0.0.0 | Bind address | | EMBY_MCP_PORT | 3000 | Bind port | | EMBY_ENV_FILE | ./.env | Optional path to a .env file to auto-load (defaults to docker/.env when running via Compose) |

Endpoints

| Path | Method | Purpose | | ---------- | ------ | ---------------------------------------- | | /mcp | GET | SSE stream for server-initiated messages | | /mcp | POST | Client-to-server JSON-RPC | | /healthz | GET | Health probe ({"status":"ok"}) |

Runs in stateless mode (sessionIdGenerator: undefined) — no in-memory session state, so the container scales horizontally without sticky sessions.

Tools exposed

Semantic (one tool per common operation)

| Tool | Description | | ------------------------ | ---------------------------------------- | | get_server_info | Authenticated SystemInfo | | get_public_server_info | Unauthenticated public info | | list_media | List items (optionally scoped to a user) | | search_media | Full-text item search | | get_item_details | Get a single item (requires userId) | | list_users | All users | | get_user_details | Single user | | get_sessions | Active client sessions | | list_libraries | Virtual folders | | get_plugins | Installed plugins |

Universal dispatcher

| Tool | Description | | ------------------------- | ------------------------------------------------------------------------- | | emby_list_operations | List/search operations by tag or keyword | | emby_describe_operation | Inspect a single operation's method, path, and params | | emby_invoke | Call any operation by operationId (optionally with strict validation) | | emby_raw_request | Escape-hatch raw HTTP |

emby_invoke validates path params strictly and query params permissively (Emby's spec is incomplete). Pass strict: true to reject unknown query params and type mismatches.

Programmatic use

import { startHttpServer } from "@emby-utils/server/dist/http.js";

const started = await startHttpServer({
  host: process.env.EMBY_HOST!,
  apiKey: process.env.EMBY_API_KEY!,
  port: 3000,
});
// started.close() to shut down.

Docker image

Published to ghcr.io/vromero/emby-utils-mcp on every v* git tag. Multi-arch (linux/amd64, linux/arm64).

Tags:

  • latest — most recent release.
  • vX.Y.Z / vX.Y / vX — semver variants for pinning.
  • sha-<full-commit-sha> — exact build for reproducibility.

License

MIT