Skip to main content
Glama
AngelN-Halo

mcp-netdisco

by AngelN-Halo

mcp-netdisco

A Dockerized, read-only OpenAPI gateway that gives Open WebUI access to Netdisco.

Features

  • OpenAPI integration for Open WebUI

  • Bearer protection using MCPO_API_KEY

  • Automatic Netdisco /login using username/password

  • Automatic Netdisco API-key renewal and retry after HTTP 401

  • IP, MAC, hostname, switch, and router lookup

  • Cisco MAC normalization, such as 9cf6.1a86.0e0c to 9c:f6:1a:86:0e:0c

  • Partial MAC matching

  • IP-to-MAC-to-switch-port resolution

  • Switch-port configuration enrichment

Related MCP server: kismet-wireless-mcp

Configuration

Create a .env file:

NETDISCO_URL=http://your-netdisco-server:5000
NETDISCO_USERNAME=your-netdisco-username
NETDISCO_PASSWORD=your-netdisco-password
MCPO_API_KEY=replace-with-a-long-random-secret
NETDISCO_TIMEOUT=20

Never commit .env. The Netdisco credentials are used only to obtain an upstream API key.

Docker and Nginx Proxy Manager

The Compose service joins the external Docker network named proxy and exposes port 8000 only inside that network.

docker compose up -d --build

Configure Nginx Proxy Manager with:

Forward Hostname: mcp-netdisco
Forward Port: 8000
Scheme: http

Add the resulting HTTPS URL to Open WebUI as an OpenAPI connection and use MCPO_API_KEY as its bearer token.

The schema is available at /openapi.json.

Preferred lookup

Use lookup_identifier for normal searches. It accepts:

  • IPv4 addresses

  • Full or partial MAC addresses

  • IEEE MAC format: 9c:f6:1a:86:0e:0c

  • Cisco MAC format: 9cf6.1a86.0e0c

  • Hostnames

  • Managed switch or router names and addresses

The response includes endpoint records, managed-device matches, switch-port sightings, and port configuration. Port details include fields returned by Netdisco such as interface description/name, VLAN/PVID, admin and operational state, speed, duplex, MTU, MAC, neighbor information, and timestamps.

To keep broad partial searches bounded, the gateway enriches at most 20 matching MAC addresses and 25 unique switch ports. The response sets results_truncated when a query exceeds either limit.

Other endpoints

  • GET /lookup — preferred universal lookup

  • GET /find-node — endpoint IP/MAC lookup with port enrichment

  • GET /find-device — managed switches and routers only

  • GET /device/{ip} — details for a known managed switch or router

  • GET /health — unauthenticated health check

Security

All data endpoints require:

Authorization: Bearer <MCPO_API_KEY>

The service is read-only and does not publish its container port directly on the Docker host.

Change history

See CHANGELOG.md for the complete implementation and fix history.

License

No license has been selected yet.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Read-only MCP server that allows AI assistants to query and monitor KVM Fleet devices, audit logs, and console sessions through the official REST API.
    5
    19
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    A read-only MCP server for querying Kismet Wireless systems, enabling AI agents to retrieve network status, datasources, devices, and alerts via REST API.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    A read-only MCP server for interacting with Nautobot, enabling network source of truth queries, device management, IPAM, and data quality audits via tools and prompts.
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Read-only MCP server for Snipe-IT v7 REST API, providing search and retrieval of assets, users, models, categories, and locations without modification.
    16
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AngelN-Halo/mcp-netdisco'

If you have feedback or need assistance with the MCP directory API, please join our Discord server