Skip to main content

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.

GitHub License GitHub Last Commit Python Version

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

  1. Clone the repository:
git clone https://github.com/kukapay/nearby-search-mcp.git
cd nearby-search-mcp
  1. Install dependencies:
# Using uv (recommended)
uv add "mcp[cli]" httpx python-dotenv

# Or using pip
pip install mcp httpx python-dotenv
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_nearby_search_mcp-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_nearby_search_mcp-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_nearby_search_mcp-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_nearby_search_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c56b82ef8e0f157e9595dedd0b2446bd6dcafb43128029ff12586c01cef60643
MD5 5dba679a39eacfd2c6e1c11393804f89
BLAKE2b-256 fd2f9582bd58b86e4be91bec71e50d0ba4427141b4d593aa07605ee1fcef5aaf

See more details on using hashes here.

File details

Details for the file iflow_mcp_nearby_search_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_nearby_search_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c3dbd6f0f0da39a9259b9b20bb12ecb937519e8be55330b2303a4d36e9d37d8
MD5 2d6a29d2a8f35a5dcd874d02b876aadb
BLAKE2b-256 b8b8668fa08fc8d5581139c95398bea0f46241a83e497fbca3d5df5a2e8d2e97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page