Technitium DNS Server MCP Server and Agent for Agentic AI!
Project description
Technitium DNS MCP Server & Agent
Documentation — Installation, deployment, usage across the API, CLI, and MCP interfaces, and guidance for provisioning the Technitium DNS Server are maintained in the official documentation.
A production-grade Model Context Protocol (MCP) server and graph-based Pydantic AI agent integration for Technitium DNS Server. Exposes comprehensive, 100% covered REST API endpoints for user SSO, analytics metrics, authoritative zones, DNSSEC, and dynamic DNS record operations.
🚀 Key Features
- 100% API Coverage: Complete mapping of Technitium User/SSO, Dashboard Analytics, Zone Management, DNSSEC, and Record Actions.
- FastMCP Protocol Integration: Dynamically registers stdio and streamable-http endpoints for large-scale AI tool discovery.
- Autonomous Agent Layer: Bundled with a Pydantic AI Agent that operates natively using advanced instruction graphs and local toolchains.
- Strict Compliance: Designed in accordance with standard codebase-wide architectural patterns (
agent-packages).
🛠️ Installation & Setup
Install the slim
[mcp]extra. Thetechnitium-dns-mcp[mcp]extra pulls only the FastMCP / FastAPI tooling (agent-utilities[mcp]). It deliberately excludes the heavy agent runtime (the epistemic-graph engine,pydantic-ai,dspy,llama-index,tree-sitter), souvx/container installs are dramatically smaller and faster. Use the full[agent]extra only when you need the integrated Pydantic AI agent.
Pick the extra that matches what you want to run:
| Extra | Installs | Use when |
|---|---|---|
technitium-dns-mcp[mcp] |
Slim MCP server only (agent-utilities[mcp] — FastMCP/FastAPI) |
You only run the MCP server (smallest install / image) |
technitium-dns-mcp[agent] |
Full agent runtime (agent-utilities[agent,logfire] — Pydantic AI + the epistemic-graph engine) |
You run the integrated agent |
technitium-dns-mcp[all] |
Everything (mcp + agent + logfire) |
Development / both surfaces |
# MCP server only (recommended for tool hosting — slim deps)
uv pip install "technitium-dns-mcp[mcp]"
# Full agent runtime (Pydantic AI + epistemic-graph engine)
uv pip install "technitium-dns-mcp[agent]"
# Everything (development)
uv pip install "technitium-dns-mcp[all]" # or: python -m pip install "technitium-dns-mcp[all]"
Container images (:mcp vs :agent)
One multi-stage docker/Dockerfile builds two right-sized images, selected by --target:
| Image tag | Build target | Contents | Entrypoint |
|---|---|---|---|
knucklessg1/technitium-dns-mcp:mcp |
--target mcp |
technitium-dns-mcp[mcp] — slim, no engine/pydantic-ai/dspy/llama-index/tree-sitter |
technitium-dns-mcp |
knucklessg1/technitium-dns-mcp:latest |
--target agent (default) |
technitium-dns-mcp[agent] — full agent runtime + epistemic-graph engine |
technitium-dns-agent |
docker build --target mcp -t knucklessg1/technitium-dns-mcp:mcp docker/ # slim MCP server
docker build --target agent -t knucklessg1/technitium-dns-mcp:latest docker/ # full agent
Knowledge-graph database (epistemic-graph)
The full agent ([agent] / :latest) embeds the epistemic-graph engine (pulled in
transitively via agent-utilities[agent]). For production — or to share one knowledge graph
across multiple agents — run epistemic-graph as its own database container and point the
agent at it instead of embedding it. Deployment recipes (single-node + Raft HA), connection
config, and the full database architecture (with diagrams) are documented in the
epistemic-graph deployment guide.
The slim [mcp] server does not require the database.
Environment Variables
Package environment variables
| Variable | Example | Description |
|---|---|---|
TECHNITIUM_DNS_URL |
http://localhost:5380 |
Technitium DNS Server URL (default is http://localhost:5380) |
TECHNITIUM_DNS_TOKEN |
— | Technitium DNS API Token / SSO Token |
TECHNITIUM_DNS_SSL_VERIFY |
True |
SSL Verification (default: True) |
TRANSPORT |
stdio |
MCP transport configuration (streamable-http or stdio) |
HOST |
0.0.0.0 |
|
PORT |
8000 |
|
DASHBOARDTOOL |
True |
MCP tools table (condensed action-routed surface). |
USERTOOL |
True |
|
ZONESTOOL |
True |
Inherited agent-utilities variables (apply to every connector)
| Variable | Example | Description |
|---|---|---|
MCP_TOOL_MODE |
condensed |
Tool surface: condensed |
MCP_ENABLED_TOOLS |
— | Comma-separated tool allow-list |
MCP_DISABLED_TOOLS |
— | Comma-separated tool deny-list |
MCP_ENABLED_TAGS |
— | Comma-separated tag allow-list |
MCP_DISABLED_TAGS |
— | Comma-separated tag deny-list |
EUNOMIA_TYPE |
none |
Authorization mode: none |
EUNOMIA_POLICY_FILE |
mcp_policies.json |
Embedded Eunomia policy file |
EUNOMIA_REMOTE_URL |
— | Remote Eunomia authorization server URL |
ENABLE_OTEL |
False |
Enable OpenTelemetry export |
OTEL_EXPORTER_OTLP_ENDPOINT |
— | OTLP collector endpoint |
MCP_CLIENT_AUTH |
— | Outbound MCP auth (oidc-client-credentials for fleet calls) |
OIDC_CLIENT_ID |
— | OIDC client id (service-account auth) |
OIDC_CLIENT_SECRET |
— | OIDC client secret (service-account auth) |
DEBUG |
False |
Verbose logging |
PYTHONUNBUFFERED |
1 |
Unbuffered stdout (recommended in containers) |
MCP_URL |
http://localhost:8000/mcp |
URL of the MCP server the agent connects to |
PROVIDER |
openai |
LLM provider for the agent |
MODEL_ID |
gpt-4o |
Model id for the agent |
ENABLE_WEB_UI |
True |
Serve the AG-UI web interface |
9 package + 19 inherited variable(s). Auto-generated from .env.example + the shared agent-utilities set — do not edit.
Every variable the server reads, grouped by purpose. See .env.example
for a copy-paste starting point.
Connection & credentials
| Variable | Description | Default |
|---|---|---|
TECHNITIUM_DNS_URL |
Base URL of the Technitium DNS Server | http://localhost:5380 |
TECHNITIUM_DNS_TOKEN |
API token / SSO token | — |
TECHNITIUM_DNS_SSL_VERIFY |
TLS verification | True |
MCP server / transport
| Variable | Description | Default |
|---|---|---|
TRANSPORT |
stdio, streamable-http, or sse |
stdio |
HOST |
Bind host (HTTP transports) | 0.0.0.0 |
PORT |
Bind port (HTTP transports) | 8000 |
MCP_TOOL_MODE |
Tool surface: condensed, verbose, or both |
condensed |
MCP_ENABLED_TOOLS / MCP_DISABLED_TOOLS |
Comma-separated tool allow/deny list | — |
MCP_ENABLED_TAGS / MCP_DISABLED_TAGS |
Comma-separated tag allow/deny list | — |
Tool toggles
Each action-routed tool can be disabled individually via its toggle env var (set to false):
DASHBOARDTOOL, USERTOOL, ZONESTOOL — see the
Available MCP Tools table below.
Agent runtime (full [agent] runtime only)
| Variable | Description | Default |
|---|---|---|
MCP_URL |
URL of the MCP server the agent connects to | http://localhost:8000/mcp |
PROVIDER |
LLM provider (e.g. openai) |
openai |
MODEL_ID |
Model id (e.g. gpt-4o) |
gpt-4o |
⚙️ Dynamic Tool Selection & Visibility
This MCP server supports dynamic toolset selection and visibility filtering at runtime. This allows you to restrict the set of exposed tools in order to prevent blowing up the LLM's context window.
You can configure tool filtering via multiple input channels:
- CLI Arguments: Pass
--toolsor--toolsets(or their disabled counterparts--disabled-toolsand--disabled-toolsets) during startup. - Environment Variables: Define standard environment variables:
MCP_ENABLED_TOOLS/MCP_DISABLED_TOOLSMCP_ENABLED_TAGS/MCP_DISABLED_TAGS
- HTTP SSE Request Headers: Pass custom headers during transport initialization:
x-mcp-enabled-tools/x-mcp-disabled-toolsx-mcp-enabled-tags/x-mcp-disabled-tags
- HTTP SSE Request Query Parameters: Append query parameters directly to your transport connection URL:
?tools=tool1,tool2?tags=tag1
When query strings or parameters are supplied, an LLM-free Knowledge Graph resolution layer (using DynamicToolOrchestrator) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.
🖥️ Running the Servers
Run MCP Server (stdio by default)
technitium-dns-mcp
Or start a streamable HTTP server:
TRANSPORT=streamable-http HOST=0.0.0.0 PORT=8000 technitium-dns-mcp
Run Pydantic AI Agent
technitium-dns-agent --mcp-url http://localhost:8000
🧪 Running Tests
Ensure high reliability across all components with standard test suites:
pytest -v tests/
Documentation
The complete documentation is published as the official documentation site and is the recommended reference for installation, deployment, and day-to-day operation.
| Page | Contents |
|---|---|
| Installation | pip, source, extras, prebuilt Docker image |
| Deployment | run the MCP and agent servers, Compose, Caddy + Technitium, env config |
| Usage | the MCP tools, the Api client, the CLI |
| Backing Platform | deploy Technitium DNS Server with Docker |
| Overview | the layered API / MCP / agent architecture |
| Concepts | concept registry (CONCEPT:TDNS-*) |
Version: 1.0.1
Additional Deployment Options
technitium-dns-mcp can also run as a local container (Docker / Podman / uv) or be
consumed from a remote deployment. The
Deployment guide has full, copy-paste
mcp_config.json for all four transports — stdio, streamable-http,
local container / uv, and remote URL:
- Local container / uv — launch the server from
mcp_config.jsonviauvx,docker run, orpodman run, or point at a local streamable-http container byurl. - Remote URL — connect to a server deployed behind Caddy at
http://technitium-dns-mcp.arpa/mcpusing the"url"key.
Deploy with agent-os-genesis
This package can be provisioned for you — skill-guided — by the agent-os-genesis
universal skill (its single-package deploy mode): it picks your install method, seeds
secrets to OpenBao/Vault (or .env), trusts your enterprise CA, registers the MCP
server, and verifies it — the same machinery that stands up the whole Agent OS, narrowed
to just this package. Ask your agent to "deploy technitium-dns-mcp with agent-os-genesis".
| Install mode | Command |
|---|---|
| Bare-metal, prod (PyPI) | uvx technitium-dns-mcp · or uv tool install technitium-dns-mcp |
| Bare-metal, dev (editable) | uv pip install -e ".[all]" · or pip install -e ".[all]" |
| Container, prod | deploy knucklessg1/technitium-dns-mcp:latest via docker-compose / swarm / podman / podman-compose / kubernetes |
| Container, dev (editable) | deploy docker/compose.dev.yml (source-mounted at /src; edits live on restart) |
Secrets are read-existing + seeded via vault_sync — you are only prompted for what's missing.
Available MCP Tools
Condensed action-routed tools (default — MCP_TOOL_MODE=condensed)
| MCP Tool | Toggle Env Var | Description |
|---|---|---|
technitium_dns_dashboard |
DASHBOARDTOOL |
Query Technitium DNS metrics, prometheus stats, category details, or delete statistics. |
technitium_dns_user |
USERTOOL |
Manage Technitium DNS user sessions, authentication, credentials, and profile settings. |
technitium_dns_zones |
ZONESTOOL |
Manage Technitium DNS authoritative zones, DNSSEC properties/keys, and perform DNS record CRUD. |
Verbose 1:1 API-mapped tools (MCP_TOOL_MODE=verbose or both)
52 per-operation tools — one per public API method (click to expand)
| MCP Tool | Toggle Env Var | Description |
|---|---|---|
technitium_dns_add_private_key |
ZONESTOOL |
Adds a private DNSSEC key to the zone. |
technitium_dns_add_record |
ZONESTOOL |
Adds a new DNS record. |
technitium_dns_change_password |
USERTOOL |
Changes password for the current user session. |
technitium_dns_check_for_update |
USERTOOL |
Checks for software updates. |
technitium_dns_clone_zone |
ZONESTOOL |
Clones a zone from an existing local zone. |
technitium_dns_convert_to_nsec |
ZONESTOOL |
Converts proof of non-existence to NSEC. |
technitium_dns_convert_to_nsec3 |
ZONESTOOL |
Converts proof of non-existence to NSEC3. |
technitium_dns_convert_zone_type |
ZONESTOOL |
Converts zone type. |
technitium_dns_create_single_use_token |
USERTOOL |
Creates a single-use token. |
technitium_dns_create_token |
USERTOOL |
Creates an API token for long-term programmatic access. |
technitium_dns_create_zone |
ZONESTOOL |
Creates a new zone. |
technitium_dns_delete_all_stats |
DASHBOARDTOOL |
Deletes all statistics from the server. |
technitium_dns_delete_private_key |
ZONESTOOL |
Deletes a private DNSSEC key. |
technitium_dns_delete_record |
ZONESTOOL |
Deletes matching DNS record(s). |
technitium_dns_delete_user_session |
USERTOOL |
Deletes a specific user session token. |
technitium_dns_delete_zone |
ZONESTOOL |
Deletes authoritative zone. |
technitium_dns_disable_2fa |
USERTOOL |
Disables 2FA for the current user. |
technitium_dns_disable_zone |
ZONESTOOL |
Disables authoritative zone. |
technitium_dns_enable_2fa |
USERTOOL |
Enables 2FA with the provided TOTP code. |
technitium_dns_enable_zone |
ZONESTOOL |
Enables authoritative zone. |
technitium_dns_export_zone |
ZONESTOOL |
Exports authoritative zone file. |
technitium_dns_get_dnssec_properties |
ZONESTOOL |
Retrieves DNSSEC properties/keys for a zone. |
technitium_dns_get_ds_info |
ZONESTOOL |
Retrieves DNSSEC Delegation Signer (DS) records information. |
technitium_dns_get_metrics_json |
DASHBOARDTOOL |
Gets metrics in JSON format for the dashboard. |
technitium_dns_get_metrics_text |
DASHBOARDTOOL |
Gets metrics in Prometheus metrics format. |
technitium_dns_get_records |
ZONESTOOL |
Retrieves DNS records matching the domain. |
technitium_dns_get_session_info |
USERTOOL |
Gets info about the current session. |
technitium_dns_get_sso_status |
USERTOOL |
Gets SSO status of the server. |
technitium_dns_get_stats |
DASHBOARDTOOL |
Retrieves server statistical charts data. |
technitium_dns_get_top_stats |
DASHBOARDTOOL |
Retrieves top stats data for queries, clients, domains, etc. |
technitium_dns_get_user_profile_details |
USERTOOL |
Retrieves user profile details. |
technitium_dns_get_zone_options |
ZONESTOOL |
Gets settings/options of a zone. |
technitium_dns_get_zone_permissions |
ZONESTOOL |
Gets user/group permissions of a zone. |
technitium_dns_import_zone |
ZONESTOOL |
Imports zone content from a zone file. |
technitium_dns_initialize_2fa |
USERTOOL |
Initializes Time-based One-Time Password setup. |
technitium_dns_list_catalog_zones |
ZONESTOOL |
Lists all catalog zones. |
technitium_dns_list_zones |
ZONESTOOL |
Lists authoritative zones. |
technitium_dns_login |
USERTOOL |
Log in to the DNS server to obtain a session token. |
technitium_dns_logout |
USERTOOL |
Logs out the current session. |
technitium_dns_publish_all_private_keys |
ZONESTOOL |
Publishes all private DNSSEC keys. |
technitium_dns_resync_zone |
ZONESTOOL |
Forces authoritative secondary zone resynchronization. |
technitium_dns_retire_dnskey |
ZONESTOOL |
Retires the DNSKEY. |
technitium_dns_rollover_dnskey |
ZONESTOOL |
Rolls over the DNSKEY. |
technitium_dns_set_user_profile_details |
USERTOOL |
Updates user profile settings. |
technitium_dns_set_zone_options |
ZONESTOOL |
Sets settings/options for a zone. |
technitium_dns_set_zone_permissions |
ZONESTOOL |
Sets permissions for a zone. |
technitium_dns_sign_zone |
ZONESTOOL |
Signs the zone with DNSSEC. |
technitium_dns_unsign_zone |
ZONESTOOL |
Unsigns/removes DNSSEC from a zone. |
technitium_dns_update_dnskey_ttl |
ZONESTOOL |
Updates DNSKEY TTL. |
technitium_dns_update_nsec3_params |
ZONESTOOL |
Updates NSEC3 parameters. |
technitium_dns_update_private_key |
ZONESTOOL |
Updates private key parameters. |
technitium_dns_update_record |
ZONESTOOL |
Updates an existing DNS record. |
3 action-routed tool(s) (default) · 52 verbose 1:1 tool(s). Each is enabled unless its <DOMAIN>TOOL toggle is set false; MCP_TOOL_MODE selects the surface (condensed default · verbose 1:1 · both). Auto-generated — do not edit.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file technitium_dns_mcp-1.0.1.tar.gz.
File metadata
- Download URL: technitium_dns_mcp-1.0.1.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9ae508ab7c4f47b8f208e3863d9e2dd4668ad9ab68f3368b9e31aedb3c0bf03
|
|
| MD5 |
e9f47ec3757177e62273ae919f670580
|
|
| BLAKE2b-256 |
4c7a46dc8e94da5cc9dc3f3249a8720fe71b116cd22fe2ae2ab1777e8d970ca2
|
File details
Details for the file technitium_dns_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: technitium_dns_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 41.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be2f7037902dcaed64ec79bdb6375fd6ecaddbbf4de736c1b46c8ae9706691cf
|
|
| MD5 |
73fd10a59ab26e0bd353b17f0a075fee
|
|
| BLAKE2b-256 |
11f658d2f2c08cd78304851532ea687db266ec2c3a2fb58acd70689550d7b458
|