About Mcping
Mcping is an MCP server published by whatupdave in the Gaming category: a 1.7 Minecraft server list ping library in Golang.
The repository has 5 stars and 3 forks, with the last commit 10 years ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/whatupdave/mcpingThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Mcping
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 3 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
1 check has not been run yet.
README
MCPing
A Golang library that facilitates Minecraft 1.7 server list pings.
[Godoc] (https://godoc.org/github.com/ammario/mcping)
Install
go get github.com/ammario/mcping
Usage
package main
import (
"github.com/ammario/mcping"
"fmt"
)
func main() {
resp, err := mcping.Ping("us.mineplex.com:25565")
fmt.Println("Mineplex has", resp.Online, "players online")
}
Response Struct
The struct returned by the Ping() function has the following schema
type PingResponse struct {
Latency uint //Latency in ms
Online int //Amount of online players
Max int //Maximum amount of players
Protocol int //E.g '4'
Favicon string //Base64 encoded favicon in data URI format
Motd string
Server string //E.g 'PaperSpigot'
Version string //E.g "1.7.10"
Sample []PlayerSample
}
PlayerSample struct
type PlayerSample struct {
UUID string //e.g "d8a973a5-4c0f-4af6-b1ea-0a76cd210cc5"
Name string //e.g "Ammar"
}
Future Plans
- Pre 1.7 ping
README fetched from the repository 3 hours ago. The original is authoritative.