ip-info-mcp
ip-info-mcp
Ein Server zur Abfrage von IP-Adressinformationen auf Basis des MCP-Protokolls (Model Context Protocol), der über die stdio-Transportschicht mit KI-Clients kommuniziert.
Funktionen
Eigene IP abfragen — Aktuelle öffentliche IP-Adresse und Standortinformationen abrufen
Bestimmte IP abfragen — Standort, ISP, Längen- und Breitengrad usw. einer beliebigen IP-Adresse abfragen
Umfassende Abfrage — Unterstützt IPv4/IPv6, inklusive Hostname, Organisation, Postleitzahl, Zeitzone usw.
Related MCP server: personal-mcp-server
MCP-stdio-Kommunikationsmechanismus
Dieses Projekt verwendet die stdio-Transportschicht des MCP-Protokolls:
┌─────────────────┐ ┌──────────────────────┐
│ AI 客户端 │ stdin │ MCP Server (本进程) │
│ (CodeBuddy 等) │◄───────►│ python server.py │
│ │ stdout │ │
└─────────────────┘ └──────────────────────┘Der Client sendet JSON-RPC-Anfragen (z. B.
tools/call) überstdin.Der Server gibt JSON-RPC-Antworten über
stdoutzurück.stderrwird für die Protokollausgabe verwendet und beeinflusst das Kommunikationsprotokoll nicht.Kein HTTP-Dienst erforderlich, leichtgewichtig beim Start, ideal für die Integration lokaler Tools.
Schnellstart
1. Abhängigkeiten installieren
pip install -r requirements.txt2. Im KI-Client konfigurieren
Fügen Sie unter Settings → MCP → Add MCP in CodeBuddy hinzu:
{
"mcpServers": {
"ip-info": {
"type": "stdio",
"command": "python",
"args": ["path/to/server.py"],
"description": "IP 地址信息查询工具"
}
}
}3. Verwendung
Nach der Konfiguration können Sie direkt im Chat fragen:
„Wie lautet meine öffentliche IP-Adresse?“
„Ermittle den Standort von 8.8.8.8.“
„Schau dir die Informationen zu dieser IP an: 114.114.114.114“
Projektstruktur
ip-info-mcp/
├── server.py # MCP 服务器主文件
├── requirements.txt # Python 依赖
├── README.md # 本文件
└── chatmcp.yaml # chatmcp 平台配置Technologie-Stack
MCP Python SDK — Implementierung des MCP-Protokolls
httpx — asynchroner HTTP-Client
ip-api.com / ipinfo.io — kostenlose IP-Abfrage-API
Lizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
IPInfo MCP — wraps ipinfo.io (free tier, no auth required for basic usage)
IP Lookup MCP — ip-api.com (free, no auth for basic usage)
Official IPinfo MCP Server - IP intelligence tools for AI assistants
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that provides access to the Netdetective API for querying information about IP addresses. It enables users to retrieve metadata for a specified IP address or the connecting client's default IP address.1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing IP address lookup capabilities. Enables AI assistants to fetch details about public IP addresses or the user's current device IP.45 npmISC
- AlicenseNot gradedqualityBmaintenanceProvides IP geolocation data via ipinfo.io, enabling querying IP addresses for location, ISP, and other details through natural language.374 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables looking up approximate location of public or specific IP addresses, returning country, city, ISP, and coordinates via ip-api.com.-