KN 

一个MCP服务器,用于基于IP的位置检测进行附近地点搜索。
概览
一个MCP服务器,用于基于IP的位置检测进行附近地点搜索。 - :使用 ipapi.co 确定当前位置 - :基于关键词和可选类型筛选功能搜索附近地点 - :单一工具端点,半径可自定义 - Python 3.10+ - 启用 Places API 的 Google Cloud Platform API 密钥 - 互联网连接 - 搜索你当前位置附近的地点- 参数:- 关键词(力量):搜索内容(例如,“咖啡店”)- 半径(整数,可选):搜索半径(米)(默认:1500)- 类型(力量,可选):地点类型(例如,“餐厅”、“咖啡馆”) 本项目采用MIT许可证授权——详情请参见LICENSE文件。
概述(AI 翻译)
一个MCP服务器,用于基于IP的位置检测进行附近地点搜索。
特色
- 基于IP的位置检测:利用 ipapi.co 确定你当前的位置
- Google 地点集成:基于关键词和可选类型筛选器搜索附近地点
- 简单界面:单一工具端点,半径可自定义
要求
- Python 3.10+
- 启用 Places API 的 Google Cloud Platform API 密钥
- 互联网连接
安装
-
克隆仓库:
-
安装依赖:
-
客户端配置
`
用途
运行服务器
-
开发模式(含MCP检查器):
-
在Claude Desktop中安装:
-
直接执行:
可用终端
工具:search_nearby
- 搜索您当前所在地附近的地点
- 参数:
keyword(str):搜索内容(例如“咖啡馆”)radius(整数,可选):搜索半径(米)(默认:1500)type(力量,可选):地点类型(例如,“餐厅”、“咖啡馆”)
许可证
本项目采用MIT许可证授权——详情请参见LICENSE文件。
本页由 AI 翻译,技术细节请以原文为准。
README
NearbySearch MCP Server
An MCP server for nearby place searches with IP-based location detection.
Features
- IP-based Location Detection: Uses ipapi.co to determine your current location
- Google Places Integration: Searches for nearby places based on keywords and optional type filters
- Simple Interface: Single tool endpoint with customizable radius
Requirements
- Python 3.10+
- Google Cloud Platform API Key with Places API enabled
- Internet connection
Installation
- Clone the repository:
git clone https://github.com/kukapay/nearby-search-mcp.git
cd nearby-search-mcp
- Install dependencies:
# Using uv (recommended)
uv add "mcp[cli]" httpx python-dotenv
# Or using pip
pip install mcp httpx python-dotenv
- Client Configuration
{
"mcpServers": {
"nearby-search": {
"command": "uv",
"args": ["--directory", "path/to/nearby-search-mcp", "run", "main.py"],
"env": {
"GOOGLE_API_KEY": "your google api key"
}
}
}
}
Usage
Running the Server
- Development Mode (with MCP Inspector):
mcp dev main.py
- Install in Claude Desktop:
mcp install main.py --name "NearbySearch"
- Direct Execution:
python main.py
Available Endpoints
Tool: search_nearby
- Searches for places near your current location
- Parameters:
keyword(str): What to search for (e.g., “coffee shop”)radius(int, optional): Search radius in meters (default: 1500)type(str, optional): Place type (e.g., “restaurant”, “cafe”)
License
This project is licensed under the MIT License - see the LICENSE file for details.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"nearby-search": {
"command": "uv",
"args": ["--directory", "path/to/nearby-search-mcp", "run", "main.py"],
"env": {
"GOOGLE_API_KEY": "your google api key"
}
}
}
}