An MCP server for nearby place searches with IP-based location detection.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_nearby_search_mcp-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_nearby_search_mcp-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c56b82ef8e0f157e9595dedd0b2446bd6dcafb43128029ff12586c01cef60643
|
|
| MD5 |
5dba679a39eacfd2c6e1c11393804f89
|
|
| BLAKE2b-256 |
fd2f9582bd58b86e4be91bec71e50d0ba4427141b4d593aa07605ee1fcef5aaf
|
File details
Details for the file iflow_mcp_nearby_search_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_nearby_search_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3dbd6f0f0da39a9259b9b20bb12ecb937519e8be55330b2303a4d36e9d37d8
|
|
| MD5 |
2d6a29d2a8f35a5dcd874d02b876aadb
|
|
| BLAKE2b-256 |
b8b8668fa08fc8d5581139c95398bea0f46241a83e497fbca3d5df5a2e8d2e97
|