jtec-mcp
Provides tools to inspect Jellyfin sessions (what is playing, on which device, direct play versus transcoding and why) and to check whether a film, episode, or season can direct play on a TV, including bitrate, codecs, HDR, audio passthrough, and subtitles.
Looks up album editions and track lists with durations via Lidarr's MusicBrainz metadata server, helping identify titles to search on Soulseek and match a downloaded copy to an edition.
Provides tools to check Unbound blocklist decisions, inspect per-device DNS queries, find DHCP leases and DNS overrides, analyze recent firewall-log flows, and create DHCP reservations/DNS overrides for pinning a host.
Inspects a torrent's state, peers, availability, and trackers in qBittorrent, with a plain-language diagnosis of why it is stuck.
Provides Radarr status, queue, item lookup, search, monitoring, and queue-removal tools, including cross-checks with qBittorrent for stalled or fake downloads.
Provides Sonarr status, queue, item lookup, search, monitoring, and queue-removal tools, including cross-checks with qBittorrent for stalled or fake downloads.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jtec-mcp find me a complete lossless copy of Kind of Blue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jtec-mcp
Tools that let an AI assistant such as Claude run a self-hosted homelab's services for you: find an album on Soulseek, check how downloads are going, answer a peer's chat, and (soon) import music into Aurral.
It is an MCP server. Rather than handing the assistant raw REST APIs, each tool does one real step of a task and returns a short answer. "Find me a complete lossless copy of this album" is one tool call, not a dozen requests and a page of JSON.
What it can do
Service | Tool | |
slskd (Soulseek) |
| Search for an album and list complete copies, best first: all tracks present, lossless, and a peer who can send it now. |
| How downloads are going, per peer and album folder. | |
| Unread private messages, such as peers asking a question before they share. | |
| Download one of the search's folders (by its number), so the whole album comes from one peer. | |
| Tidy finished (or failed, or stuck) entries from the transfer list; dry run by default. | |
| Answer a peer's message (e.g. an anti-bot question), or mark it read. | |
Aurral (music library) |
| One album at a glance (by id, MusicBrainz ID or album link): what's missing, which folders hold its files, and other albums with the same title, the signs of a mixed or split album. |
| Bring a downloaded folder into the library (hardlinked by default); checks only, unless told to go ahead. | |
| An album's download jobs with each one's source and Soulseek peer: whether it's being pieced together from many peers, and what's still running or blocked. | |
| Find artists and albums (with their MusicBrainz IDs) and whether they're already in the library. | |
| The steps around an import: pause monitoring, pick the edition, stop Aurral's own downloads (including old jobs the album cancel misses), rescan. | |
MusicBrainz (via Lidarr's metadata server, no key) |
| An album's editions and track list with durations: the titles to search Soulseek for, and the edition a downloaded copy matches. |
| Version, health warnings, queue counts and free space, for one app or all of them: the check after an upgrade. | |
| What's downloading, with each download's state in qBittorrent alongside; stalled torrents get a swarm check (e.g. everyone stuck at 64% behind a seed that never sends). | |
| Find a series, film, artist or author, with its files and recent history: grabs, imports, failures and why. | |
| Remove a stuck or fake download, optionally blocklisting it and searching for a replacement; dry run by default. | |
| Search for a series (or one season or episode), film, artist or author. | |
| Monitor or unmonitor items in bulk (Lidarr: their albums too); dry run by default. | |
| Chaptarr only: monitor or unmonitor single books (ebook or audiobook) by author and title, e.g. once a book reached the library another way; dry run by default. | |
Chaptarr + FileBrowser Quantum |
| Hand Chaptarr a book file from this host (e.g. one downloaded by hand): uploads it to a FileBrowser drop folder Chaptarr can see, shows the author, book and edition Chaptarr matches, and imports it; dry run by default. |
| Which indexers are failing and since when; test them (which also ends a failure backoff); switch one on or off. | |
| Browse a file store: its sources (with index status and which accept uploads), name search across all of them (globs, recent files), and folder listings or one file's details and SHA-256. | |
| Put a local file into a writable source; never overwrites, and skips a file that's already there. | |
| Any torrent's state, peers, availability and trackers, with a plain-language diagnosis of why it's stuck. | |
| What's playing, on which device, and whether it's direct playing or transcoding, and why. | |
| Will this film or episode (or a whole season) direct play on the TV? Bitrate, codecs, HDR, audio passthrough and subtitles, with tips such as a better audio track. | |
| Films and episodes still missing subtitles, items Bazarr ignores because they have no language profile, and throttled providers. | |
| Search the subtitle providers for one film or episode and download a numbered candidate. | |
OPNsense (firewall, DNS, DHCP) |
| Would Unbound's blocklist block these domains, and which list and policy. |
| What one device looked up, grouped by domain, blocked first: did the blocklist get in the way, or is the device resolving elsewhere (VPN, web filter, DoH)? | |
| Find a device by IP, MAC or hostname: its DHCP lease and vendor, reservation and DNS host overrides. | |
| Recent firewall-log entries for a device grouped into flows, telling refused new connections apart from harmless out-of-state packets. | |
| Give a device a fixed address and |
More services are planned; each one only appears if you configure it.
Read-only tools are marked as such, so you can let your assistant use them freely and keep approval prompts for tools that change things.
Related MCP server: slsk-mcp
Quick start
You need Nix with flakes. Everything else (Python, the secret-manager CLIs) comes with the package.
Say where your services are, in
~/.config/jtec-mcp/config.toml:[services.slskd] url = "https://slskd.example.lan" key_field = "SLSKD_API_KEY" # only if the secret is a JSON objectThis file holds no secrets. See
config.example.toml.Store the API keys in a secret manager that secretspec supports, such as Bitwarden Secrets Manager, sops, 1Password, Vault or your OS keyring. By default each key is looked up under the service's name (
slskd,aurral); it can be the bare key, or a JSON object containing it.Tell secretspec where to look, in the server's environment:
export SECRETSPEC_PROVIDER="bws://<your-project-uuid>" # Bitwarden example export BWS_ACCESS_TOKEN=... # the provider's own loginAdd it to Claude Code (available in every project):
claude mcp add --scope user jtec -- nix run github:jDmacD/jtec-mcpOr install
packages.defaultfrom this flake and registerjtec-mcp.
With Home Manager
The flake has a Home Manager module that writes the config, reads the provider's token from a file at startup (so sops-nix or agenix secrets work) and registers the server with Claude Code:
{
imports = [ inputs.jtec-mcp.homeManagerModules.default ];
services.jtec-mcp = {
enable = true;
settings.services.slskd = {
url = "https://slskd.example.lan";
key_field = "SLSKD_API_KEY";
};
secretspec.provider = "bws://<project-uuid>";
secretFiles.BWS_ACCESS_TOKEN = config.sops.secrets.bws_token.path;
};
}How secrets are handled
jtec-mcp never talks to your secret manager itself. The jtec-mcp command runs
secretspec run, which fetches the keys listed in
secretspec.toml and starts the server with them as
environment variables. That means:
you can use any secretspec provider, and switch providers without code changes;
a missing key just means that service's tools aren't offered;
secretspec records why secrets were read (it asks automated tools for a reason); jtec-mcp gives "jtec-mcp server" unless you set
SECRETSPEC_REASON.
To use different key names, copy secretspec.toml, change the ref entries,
and set JTEC_MCP_SECRETSPEC to your copy.
An OPNsense API user
Create a separate OPNsense user for jtec-mcp (System ▸ Access ▸ Users) with no shell or GUI password, give it these privileges, and create an API key for it. OPNsense privileges are per page, so they include writing those pages (Unbound settings and Kea DHCPv4); there is no read-only variant.
Privilege | Used by |
Services: Unbound ( | blocklist test, query log, host overrides, applying Unbound |
Services: DHCP: Kea(v4) ( | leases, reservations, subnets, applying Kea |
Diagnostics: Logs: Firewall: Live View ( | firewall log |
Store the downloaded apikey.txt content (or {"key": ..., "secret": ...})
as the OPNSENSE secret.
Contributing
nix develop gives you a shell with everything needed; pytest runs the tests.
Dependencies are managed with uv, and the Nix
package is built from uv.lock by uv2nix.
CLAUDE.md describes the code layout and conventions (it's written
for coding agents, but it's the most complete guide for people too).
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Maintenance
Related MCP Connectors
Image and video AI tools and your own pipelines, run from any AI assistant.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
The media memory layer for AI agents and their humans. Your AI client can search your collection, add and log what you've finished, update ratings and lists, and find patterns across everything you've read, watched, played, and listened to.
Reach your own computers from any AI app: files, commands, screen and mouse, approvals and alerts.
Related MCP Servers
- FlicenseAqualityDmaintenanceMCP server for searching and downloading music from the Soulseek peer-to-peer network via slskd. Enables AI assistants to discover and download music directly.5-
- FlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to log into Soulseek, search the network, and download files through simple tool calls.85-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to search and download music from the Soulseek peer-to-peer network via Nicotine+, with smart ranking of results by audio quality and peer speed, bulk automation, and real-time transfer monitoring.-
- AlicenseAqualityBmaintenanceProvides AI agents with structured access to the Soulseek network via slskd, including label and format filtering and standing wishlist searches.13MIT