MCP-MCSTATUS

MCP-MCSTATUS

Provides tools for retrieving Minecraft Java and Bedrock server status via the mcstatus.xyz API. It also includes advanced network diagnostic features such as DNS resolution, GeoIP lookups, and BGP/ASN provider information.

Category
访问服务器

README

MCP-MCSTATUS

MCP server (Python) with tools for https://mcstatus.xyz/api and Kuma status-page API.

Implemented MCP Tools

  • get_minecraft_status - Minecraft server status (Java/Bedrock), endpoint /api/status
  • get_java_status - Java status shortcut, endpoint /api/status
  • get_bedrock_status - Bedrock status shortcut, endpoint /api/status
  • get_srv_records - SRV records, endpoint /api/srv
  • resolve_dns - DNS resolution and provider info, endpoint /api/dns
  • rdns - reverse DNS (PTR) lookup for IP
  • geoip_maxmind - GeoIP lookup using local MaxMind GeoLite2 database
  • get_ip_provider_info - provider/operator info for IP via bgp.tools whois + ASN database
  • is_ip_anycast - check if player IP is Anycast by curated known-node list
  • get_bgp_info - BGP/ASN details for an IP, endpoint /api/bgp
  • check_node_status - find Kuma node by name or short alias (e.g., s3, br4) and return UP/DOWN/PENDING/MAINTENANCE

check_node_status For GPT

Use this tool when you need node state from Kuma by human-friendly alias.

Input parameters:

  • node_name (string, required) - full node name or short alias.
  • timeout_ms (integer, optional, default 4000, must be > 0).

Supported alias patterns:

  • full name: s3.joinserver.xyz
  • short hostname before first dot: s3 for s3.joinserver.xyz
  • token from short name split by -, _, or space: br4
  • case-insensitive variants: BR4
  • normalized alias (non-alphanumeric chars ignored in fallback matching)

Status mapping:

  • 1 -> UP
  • 0 -> DOWN
  • 2 -> PENDING
  • any other/unknown -> MAINTENANCE

Result format (ok = true):

{
  "ok": true,
  "input_node_name": "s3",
  "node_name": "s3.joinserver.xyz",
  "node_id": 124,
  "matched_by": "short_hostname",
  "status": "DOWN",
  "status_code": 0,
  "heartbeat_time": "2026-02-19 11:48:48",
  "message": "",
  "ping": null,
  "has_heartbeat": true,
  "matched_by_case_insensitive_name": true
}

Result format (ok = false):

  • not found:
{"ok": false, "input_node_name": "unknown", "error": "Node with this name/alias was not found on Kuma status page."}
  • ambiguous alias:
{
  "ok": false,
  "input_node_name": "hmfra1",
  "error": "Multiple nodes matched this name/alias at the same confidence level. Use a more specific node name.",
  "matches": [{"id": 305, "name": "HMFRA1-7950"}, {"id": 304, "name": "HMFRA1-R9"}]
}

GPT usage flow:

  1. Try short alias first (s3, br4, fra28).
  2. If ambiguous, retry with a more specific name from matches.
  3. If not found, retry with full node name.

Architecture

  • mcstatus_mcp/client.py - typed API client (MCStatusApiClient)
  • mcstatus_mcp/tools.py - abstract BaseMCStatusTool + one class per MCP tool
  • mcstatus_mcp/server.py - MCP app bootstrap and tool registration

Each tool is implemented as a class that inherits from BaseMCStatusTool. All tools depend on a shared MCStatusApiClient instance.

Install

.\.venv\Scripts\python.exe -m pip install -r requirements.txt

Run With Docker Compose

docker compose up -d --build

Stop:

docker compose down

Default MCP endpoint from compose:

http://localhost:8000/mcp

Run MCP Server

Default transport is stdio:

.\.venv\Scripts\python.exe main.py

Optional transport override:

$env:MCP_TRANSPORT="sse"
.\.venv\Scripts\python.exe main.py

Allowed MCP_TRANSPORT values: stdio, sse, streamable-http.

Local Stdio Config Example

{
  "mcpServers": {
    "mcstatus": {
      "command": "C:\\Users\\rakse\\PycharmProjects\\MCP-MCSTATUS\\.venv\\Scripts\\python.exe",
      "args": ["C:\\Users\\rakse\\PycharmProjects\\MCP-MCSTATUS\\main.py"]
    }
  }
}

Environment Variables

  • MCP_TRANSPORT - MCP transport (default: stdio)
  • MCSTATUS_API_BASE_URL - API base URL (default: https://mcstatus.xyz/api)
  • KUMA_API_BASE_URL - Kuma API base URL for check_node_status (default: http://status.dsts.cloud:3001/api)
  • MCSTATUS_TIMEOUT_MS - default timeout in milliseconds for tools (default: 4000)
  • MCP_HOST - host for HTTP transports (sse and streamable-http, default: 127.0.0.1)
  • MCP_PORT - port for HTTP transports (default: 8000)
  • MCP_STREAMABLE_HTTP_PATH - streamable HTTP path (default: /mcp)
  • MCP_SSE_PATH - SSE path (default: /sse)
  • MAXMIND_LICENSE_KEY - MaxMind license key for GeoLite2 download (required for auto-download if DB is missing/outdated)
  • MAXMIND_DB_PATH - local path to .mmdb file (default: data/GeoLite2-City.mmdb)
  • MAXMIND_EDITION_ID - MaxMind edition ID (default: GeoLite2-City)
  • MAXMIND_REFRESH_HOURS - database refresh interval in hours; 0 disables periodic refresh (default: 24)
  • BGPTOOLS_USER_AGENT - descriptive user-agent with contact for downloading https://bgp.tools/asns.csv (recommended)
  • BGPTOOLS_ASN_DB_URL - ASN CSV source URL (default: https://bgp.tools/asns.csv)
  • BGPTOOLS_ASN_DB_PATH - local path to ASN CSV cache (default: data/bgp_tools_asns.csv)
  • BGPTOOLS_ASN_REFRESH_HOURS - ASN CSV refresh interval in hours; 0 disables periodic refresh (default: 24)
  • BGPTOOLS_WHOIS_HOST - bgp.tools whois host (default: bgp.tools)
  • BGPTOOLS_WHOIS_PORT - bgp.tools whois port (default: 43)

Use With OpenAI

Important: OpenAI MCP integration uses remote MCP servers. Local stdio servers are good for local dev/testing, but for OpenAI binding you should expose a public HTTPS endpoint.

1) Run as streamable HTTP for deployment

$env:MCP_TRANSPORT="streamable-http"
$env:MCP_HOST="0.0.0.0"
$env:MCP_PORT="8000"
.\.venv\Scripts\python.exe main.py

After deployment your MCP URL will look like:

https://your-domain.example/mcp

2) Bind MCP server in OpenAI Responses API

from openai import OpenAI

client = OpenAI()

response = client.responses.create(
    model="gpt-4.1",
    tools=[
        {
            "type": "mcp",
            "server_label": "mcstatus",
            "server_url": "https://your-domain.example/mcp",
            "require_approval": "never",
            "allowed_tools": [
                "get_minecraft_status",
                "get_java_status",
                "get_bedrock_status",
                "get_srv_records",
                "resolve_dns",
                "rdns",
                "geoip_maxmind",
                "get_ip_provider_info",
                "is_ip_anycast",
                "get_bgp_info",
                "check_node_status",
            ],
        }
    ],
    input="Check DNS and Java status for mc.hypixel.net",
)

print(response.output_text)

3) Bind in ChatGPT (Connectors)

  • Open ChatGPT connector settings.
  • Add a custom connector using your remote MCP URL.
  • Select tools and permissions.

Reference docs:

  • https://platform.openai.com/docs/guides/tools-remote-mcp
  • https://platform.openai.com/docs/guides/mcp
  • https://help.openai.com/en/articles/11487775-connectors-in-chatgpt/

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选