Skip to main content

utility-network-mcp

An MCP server that lets AI assistants (Claude Desktop, Claude Code, VS Code, Cursor, and others) work with an Esri ArcGIS Utility Network published on ArcGIS Enterprise — run traces, find dirty subnetworks, summarise errors, and inspect associations through the UtilityNetworkServer REST API.

Not affiliated with or endorsed by Esri. ArcGIS and ArcGIS Utility Network are trademarks of Esri.

Tools

Tool Type What it answers
describe_network read Domain networks, tiers, network attributes, categories, system layers
list_trace_configurations read Named trace configurations stored in the service
trace read Connected / upstream / downstream / subnetwork / isolation / shortest path / loops — returns a summary by asset group and type (names added when the service exposes them), not 100k raw elements
query_associations read Containment, attachment and connectivity associations for given features
query_subnetworks read Rows from the Subnetworks table; ISDIRTY holds clean / dirty / invalid (check the stored codes on your service before filtering on a number)
dirty_area_summary read Dirty areas grouped by Status, decoded, with whether Validate will evaluate each and the next action (error-only rows such as 8 and 40 need a feature edit, not another validate)
find_features read Look up a feature by asset ID (for example CB-1042); returns globalId, layer and asset group / type names to feed trace. Field set by UN_ASSET_ID_FIELD (default ASSETID)
network_moments read Whether topology is valid; when it was last enabled
job_status read Poll an async job
validate_network_topology write Only when UN_ALLOW_WRITES=true, and each call needs confirm=true
update_subnetwork write Same gating as above

Install

pip install utility-network-mcp      # or: uvx utility-network-mcp
utility-network-mcp --selftest        # offline checks

Configure

Variable Required Meaning
UN_FEATURE_SERVICE_URL yes https://host/server/rest/services/<Service>/FeatureServer
UN_PORTAL_URL for login auth Portal URL
UN_CLIENT_ID / UN_CLIENT_SECRET option A OAuth app (client credentials)
UN_USERNAME / UN_PASSWORD option B Portal login via generateToken (not for SAML-only portals)
UN_TOKEN option C Pre-issued token
UN_DEFAULT_VERSION no Default sde.DEFAULT
UN_ALLOW_WRITES no true registers the write tools
UN_MAX_IDS no Sample globalIds per group in summaries (default 25)

Claude Desktop / Claude Code

{
  "mcpServers": {
    "utility-network": {
      "command": "uvx",
      "args": ["utility-network-mcp"],
      "env": {
        "UN_FEATURE_SERVICE_URL": "https://gis.example.com/server/rest/services/Electric/FeatureServer",
        "UN_PORTAL_URL": "https://gis.example.com/portal",
        "UN_CLIENT_ID": "...",
        "UN_CLIENT_SECRET": "..."
      }
    }
  }
}

Requirements and licensing

  • ArcGIS Enterprise with the utility network published as a feature service with the Utility Network capability (enterprise deployment; file/mobile geodatabase networks have no REST API).
  • Read tools (query, trace) don't need the ArcGIS Advanced Editing user type extension. The write tools do.

Safety

Read-only by default. Write tools need both the server switch and an explicit per-call confirmation, so the agent must ask a human first. Use an account scoped to the one service; never the utility network owner account.

Design notes

See the companion skill's references/mcp/03-building-a-utility-network-mcp-server.md in this repository for the design, REST shapes, auth patterns and pitfalls.

Metadata

Release files for utility-network-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utility-network-mcp 0.2.0
File Size Uploaded
utility_network_mcp-0.2.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for utility-network-mcp 0.2.0
File Interpreter ABI Platform
utility_network_mcp-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / utility_network_mcp-0.2.0.tar.gz

Download URL utility_network_mcp-0.2.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
851079d105864a6823315e4aa73ce423322e42272a7f40edb972fb2d000a49d4
BLAKE2b-256 checksum
How to use checksums
43f023e3d3392796e1ff104727c0b35a41c3e8c346a5ebdcd55c885790056d2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / utility_network_mcp-0.2.0-py3-none-any.whl

Download URL utility_network_mcp-0.2.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f7dfb85846f1c5f3ea42c74184eb123aac78b4dca01a3fe71b928de5d913a96
BLAKE2b-256 checksum
How to use checksums
419bba5306c1d0ea0143ccc011b8a0e4bf116a9aeb76ff837943541cbf0ed10b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page