npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@littlesirius/get-local-ipinfo-mcp

v1.1.0

Published

MCP 工具服务:获取本机公网 IP 及地理位置信息,支持反爬虫和速率限制处理。

Readme

get-local-ipinfo-mcp

MCP 工具服务:获取本机公网 IP 及地理位置信息。


使用 get-local-ipinfo-mcp

本工具通过 MCP 协议,自动获取本机公网 IP 及地理信息。

1️⃣ 快速获取 IP 信息 2️⃣ 详细地理位置、网络、国家等数据 3️⃣ 友好的错误提示和状态码


🛠️ 安装

环境要求

  • Node.js >= 18.0.0
  • 支持 MCP 协议的客户端(如 Cursor、Claude Desktop 等)

快速 json 配置

{
  "mcpServers": {
    "get-local-ipinfo-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "@littlesirius/get-local-ipinfo-mcp"]
    }
  }
}

🔨 可用工具接口

  • get_public_ip_info:获取当前主机公网 IP 及地理信息。
    • 返回 IP、网络、城市、地区、国家、经纬度等信息。
    • 支持详细错误、HTTP 状态码。

💻 开发与贡献

克隆项目并安装依赖:

git clone https://github.com/Xiao-Jiang-233/get-local-ipinfo-mcp.git
cd get-local-ipinfo-mcp
npm install
npm run build

通过 MCP Inspector 测试:

npx @modelcontextprotocol/inspector node build\\index.js

本地运行服务:

node build/index.js

🚨 常见问题

  • API 请求失败或速率限制?请检查网络或更换 IP。
  • ESM/模块解析错误?请确保 Node.js 版本 >= 18 且 package.json 配置正确。
  • 其它 MCP 客户端兼容性问题?欢迎提交 issue。

⚠️ 免责声明

本项目为社区贡献,信息仅供参考。请勿用于非法用途,使用风险自负。


🤝 社区与联系


📄 License

MIT