- Explore MCP Servers
- mcp-server-ip
Mcp Server Ip
What is Mcp Server Ip
mcp-server-ip is a server based on the Model Context Protocol (MCP) that provides IP address geolocation query functionality.
Use cases
Use cases include web applications that need to display user location, analytics platforms that analyze user demographics based on IP, and services that require IP-based content delivery.
How to use
To use mcp-server-ip, clone the repository, install the dependencies, and start the server using ‘npm start’. The server will run on http://localhost:3000 and provide data via HTTP SSE.
Key features
Key features include querying geolocation information for a specified IP address, automatic retrieval of the client’s IP if none is specified, data transmission via HTTP SSE, and compliance with MCP protocol standards.
Where to use
mcp-server-ip can be used in various fields such as web development, data analysis, and applications requiring geolocation services.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Server Ip
mcp-server-ip is a server based on the Model Context Protocol (MCP) that provides IP address geolocation query functionality.
Use cases
Use cases include web applications that need to display user location, analytics platforms that analyze user demographics based on IP, and services that require IP-based content delivery.
How to use
To use mcp-server-ip, clone the repository, install the dependencies, and start the server using ‘npm start’. The server will run on http://localhost:3000 and provide data via HTTP SSE.
Key features
Key features include querying geolocation information for a specified IP address, automatic retrieval of the client’s IP if none is specified, data transmission via HTTP SSE, and compliance with MCP protocol standards.
Where to use
mcp-server-ip can be used in various fields such as web development, data analysis, and applications requiring geolocation services.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MCP Server IP 归属地查询服务器
这是一个基于 Model Context Protocol (MCP) 的服务器,提供 IP 地址归属地查询功能。它使用 ip.sb 的 API 来获取 IP 地址的详细地理位置信息。
功能特点
- 查询指定 IP 地址的归属地信息
- 如果不指定 IP 地址,则查询当前客户端的 IP 信息
- 通过 HTTP SSE 方式提供数据传输
- 符合 MCP 协议标准
安装
# 克隆仓库
git clone https://github.com/yourusername/mcp-server-ip.git
cd mcp-server-ip
# 安装依赖
npm install
# 构建项目
npm run build
使用方法
启动服务器
npm start
服务器将在 http://localhost:3000 上启动,并通过 SSE 提供 MCP 服务。
开发模式
npm run dev
与 Claude Desktop 集成
-
在项目下创建
.cursor/mcp.json: -
添加服务器配置:
{
"mcpServers": {
"sample-project-server": {
"url": "http://localhost:3000/sse"
}
}
}
API 说明
query-ip
查询指定 IP 地址的归属地信息。
参数:
ip(可选): 要查询的 IP 地址。如果不提供,则查询当前客户端的 IP。
返回:
返回包含以下信息的文本:
- IP 地址
- 国家/地区
- 省/州
- 城市
- 经纬度
- 时区
- ASN
- 组织
参考
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










