peering-db-mcp

peering-db-mcp

0

PeeringDB Location Server is a Go-based MCP server designed to provide IX locations for ASNs using the PeeringDB API. It offers detailed information including operational status and city data for each peering point, integrating with PeeringDB API endpoints for accurate data.

PeeringDB Location Server

A Go-based MCP (Model Control Protocol) server that provides information about Internet Exchange (IX) locations for Autonomous System Numbers (ASNs) using the PeeringDB API.

Features

  • Retrieves IX locations for any given ASN
  • Shows operational status of each IX location
  • Provides city information for each peering point
  • Formatted output with emoji indicators for better readability

Usage

The server provides a single tool called get_peering_locations that accepts an ASN as input and returns formatted information about all IX locations where that AS is present.

Status Indicators

  • 🟢 Operational: The IX connection is active
  • 🔴 Not Operational: The IX connection is currently down or inactive

API Integration

The server integrates with two PeeringDB API endpoints:

  1. /api/net - Used to resolve ASN to PeeringDB network ID
  2. /api/netixlan - Used to fetch IX location information

Error Handling

The server handles several error cases: invalid ASN format, ASN not found in PeeringDB, API connection errors, and invalid response data.