ilnmors-mcp
Provides search and page retrieval tools for BookStack, allowing users to search content and fetch full page details using their per-user token ID/secret.
Provides admin-only read-only tools to list Forgejo repositories, issues, and recent commits using a per-user read-only token.
Provides read-only Immich tools for smart search, album listing, and statistics using a per-user API key.
Provides read-only Mastodon search and bookmark retrieval using a per-user access token.
Provides tools to list collections, search documents, and retrieve document content from Outline using a per-user API token.
Provides admin-only read-only Prometheus querying, alert listing, and down-target checks via an internal keyless URL.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ilnmors-mcp
Unified, local-only, read-first homelab MCP (Model Context Protocol, Streamable HTTP) gateway built for Open WebUI as the agent frontend and 64k-context local LLMs (Quartermaster).
Goals & Scope
One lightweight pure-HTTP gateway for 12 homelab services: runs locally inside the
appVM (loopback /host.containers.internal), never exposed directly to the public internet.Open WebUI as the single agent & login layer: Open WebUI already handles Authelia OIDC login and runs the native tool-calling loop.
ilnmors-mcpintentionally does not implement its own OIDC/LDAP login UI.Strict per-user ACL preservation across every authenticated app: all 10 apps with user accounts/ACLs require per-user API keys under
users.<email>. There is zero cross-user or shared-key fallback—neither between admin and regular users, nor between two regular users.Compact tool schemas for local LLMs: split into 4 focused Streamable HTTP endpoints so each chat only loads the domain tools it needs and stays comfortably inside a 64k context window.
Read-first safety: Phase 1 exposes only read/search tools with strict output caps and content guards. Mail and Readur are intentionally out of scope for Phase 1.
Related MCP server: sources-mcp
Architecture & Authentication
Browser / Mobile PWA
│ (Authelia OIDC login)
▼
Open WebUI ──(Bearer API key + optional X-OpenWebUI-User-* headers)──▶ ilnmors-mcp
│
(strictly that user's own per-app API key / DAV App Password)
▼
Homelab Services (12)Hop 1: Client (Open WebUI / local test) → ilnmors-mcp
Shared Bearer API key:
server.auth_token_fileorILNMORS_MCP_AUTH_TOKENguards every/mcp/*route (Authorization: Bearer <token>).Two operating modes:
Local single-user test mode (
require_user_header: false+default_user/default_role): lets you test directly withcurl, MCP Inspector, or Open WebUI using only the Bearer API key, before enabling forwarded user headers.Open WebUI multi-user mode (
require_user_header: true,ENABLE_FORWARD_USER_INFO_HEADERS=truein Open WebUI): ignoresdefault_userand readsX-OpenWebUI-User-EmailandX-OpenWebUI-User-Roleon every request so every user only accesses what their own per-app API key permits, and non-admins receive403 Forbiddenon/mcp/ops.
Hop 2: ilnmors-mcp → Backend Services
Every authenticated app (10/12) resolves credentials strictly from
users.<email>.<service>using that user's own API key/token (and OxiCloud's DAV App Password, since OxiCloud uses OIDC login + Basic Auth for WebDAV/CalDAV/CardDAV).Only internal keyless observability backends (
prometheus,lokion admin-only/mcp/ops) have no per-user API key.Secret values are loaded from mounted files (
*_file) or environment variables (${ENV_VAR})—never stored in Git.Auto-enabling adapters: services with no configured user credentials (or missing
base_url) are skipped cleanly at startup and reported underGET /healthz.
Endpoints & Phase 1 Tool Catalog
Endpoint | Access | Service | Credential scope | Read-only tools |
| Authenticated | OxiCloud | Per-user (DAV App Password) |
|
| Authenticated | Kaneo | Per-user (API key) |
|
| Authenticated | Outline | Per-user (API token) |
|
| Authenticated | BookStack | Per-user (Token ID/Secret) |
|
| Authenticated | Linkding | Per-user (API token) |
|
| Authenticated | Immich | Per-user (API key) |
|
| Authenticated | Sure Finance | Per-user (RO wrapper token) |
|
| Authenticated | Tandoor Recipes | Per-user (API token) |
|
| Authenticated | Mastodon | Per-user (Access token) |
|
| Admin only | Forgejo | Per-user (RO token) |
|
| Admin only | Prometheus | Keyless (internal URL) |
|
| Admin only | Loki | Keyless (internal URL) |
|
| Local health | — | None | Returns server version, auth mode, and list of enabled services per endpoint |
Safety & Context Guards
Zero cross-user fallback (admin↔user and user↔user): all 10 authenticated services resolve strictly from
users.<email>.<service>; unmapped users are rejected rather than falling back to another user's or service-level credentials.Output truncation: tool responses are capped (
server.default_max_chars, default6000) to protect local LLM context windows.WebDAV streaming & text guard:
oxicloud_files_read_textrefuses binary extensions/content-types and streams responses with a strictwebdav_max_bytescap (default524288bytes / 512 KiB).Read-only backend enforcement:
Sure exposes only a read-only tool allowlist (
accounts/transactions).Loki permanently injects negative matchers excluding
openwebuiandquartermasterstreams regardless of custom config overrides.
Quick Start (Local Testing)
1. Create a minimal local config.yaml
Start with just one or two services and your own API keys under users: to verify end-to-end connectivity:
server:
host: "127.0.0.1"
port: 8090
auth_token: "${ILNMORS_MCP_AUTH_TOKEN}"
# Local single-user test mode (switch to true when wiring Open WebUI headers)
require_user_header: false
default_user: "il@example.internal"
default_role: "admin"
users:
il@example.internal:
linkding:
token: "${LINKDING_TOKEN}"
outline:
token: "${OUTLINE_TOKEN}"
services:
linkding:
base_url: "https://linkding.example.internal"
outline:
base_url: "https://outline.example.internal"See config.example.yaml for all 12 services and secret-file (*_file) options.
2. Install & run
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest -v
export ILNMORS_MCP_AUTH_TOKEN="dev-local-token"
export OUTLINE_TOKEN="..."
.venv/bin/ilnmors-mcp --config config.yaml --check-config
ILNMORS_MCP_CONFIG=config.yaml .venv/bin/ilnmors-mcp3. Smoke-test locally
# 1) Check which adapters enabled
curl -s http://127.0.0.1:8090/healthz
# 2) Verify Bearer auth + MCP tools/list over Streamable HTTP
curl -s http://127.0.0.1:8090/mcp/knowledge \
-H "Authorization: Bearer ${ILNMORS_MCP_AUTH_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'Open WebUI Integration
Add ilnmors-mcp to Open WebUI via TOOL_SERVER_CONNECTIONS (using the same Bearer token). When enabling multi-user access, set ENABLE_FORWARD_USER_INFO_HEADERS=true in Open WebUI and require_user_header: true in config.yaml:
ENABLE_FORWARD_USER_INFO_HEADERS=true
TOOL_SERVER_CONNECTIONS='[
{"type":"mcp","url":"http://host.containers.internal:8090/mcp/pim","auth_type":"bearer","key":"<token>","config":{"enable":true},"info":{"id":"homelab-pim","name":"Homelab PIM","description":"OxiCloud, Kaneo"}},
{"type":"mcp","url":"http://host.containers.internal:8090/mcp/knowledge","auth_type":"bearer","key":"<token>","config":{"enable":true},"info":{"id":"homelab-knowledge","name":"Homelab Knowledge","description":"Outline, BookStack, Linkding, Immich"}},
{"type":"mcp","url":"http://host.containers.internal:8090/mcp/home","auth_type":"bearer","key":"<token>","config":{"enable":true},"info":{"id":"homelab-home","name":"Homelab Home","description":"Sure, Tandoor, Mastodon"}},
{"type":"mcp","url":"http://host.containers.internal:8090/mcp/ops","auth_type":"bearer","key":"<token>","config":{"enable":true},"info":{"id":"homelab-ops","name":"Homelab Ops","description":"Forgejo, Prometheus, Loki (admin only)"}}
]'Container Build
podman build -t ilnmors-mcp:0.1.0 -f Containerfile .Implementation Roadmap
Stage 1 — Specification (
README.md): architecture, strict per-user ACL model, 12-service endpoint/tool catalog, and safety boundaries.Stage 2 — Core Server & Auth: Streamable HTTP router, Bearer API-key check, local single-user mode (
default_user) + Open WebUI forwarded-header mode, and unit + live localhost tests.Stage 3 — Service Adapters: verify all 12 adapters (
/mcp/pim,/mcp/knowledge,/mcp/home,/mcp/ops) with strict admin↔user and user↔user isolation tests.Stage 4 — Open WebUI Integration: container build, Open WebUI
TOOL_SERVER_CONNECTIONSsmoke test, and optional Phase 2 controlled write tools.
License
GPL-3.0-or-later.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Authenticated LLM MCP Agent
MCP-Native LLM Orchestration Agent
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server exposing 72 tools across 26 homelab services, enabling LLMs to monitor and manage infrastructure, media, storage, and networking with a single endpoint.16MIT
- FlicenseNot gradedqualityCmaintenanceRead-only MCP server exposing homelab data sources (files, mail, calls) to Cloudflare OS, enabling read-only access to documents, emails, and call records.-
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to access Zabbix monitoring, MeshCentral inventory and admin shell execution, and read-only Express Accounting data through role-separated MCP endpoints secured by token-based RBAC.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to query homelab infrastructure such as Proxmox VE, NetBox, systemd services, Grafana, InfluxDB, AdGuard Home, ping logs, and configured HTTP JSON endpoints through read-only tools.AGPL 3.0