Skip to main content
Glama
asn.py491 B
from __future__ import annotations from ipwhois import IPWhois def asn_lookup(ip: str) -> dict: """ RDAP lookup sin llaves. Útil para obtener ASN y organización. """ try: obj = IPWhois(ip) res = obj.lookup_rdap(depth=1) return { "asn": res.get("asn"), "org": res.get("asn_description") or res.get("network", {}).get("name"), "source": "rdap" } except Exception as e: return {"error": str(e)}

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/Abysswalkr/porthunter-mcp'

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