Back to MCP Directory
Nearby Search
Model Context Protocol moderate risk

Nearby Search

This MCP server uses IP-based location to search for nearby places via the Google Places API, allowing users to find businesses and points of interest.

Connections & Capabilities

Connects To

GitHubGCP

Capabilities

read

Quickstart

Install

pip install mcp

Config

{
  "mcpServers": {
    "nearby-search": {
      "command": "uv",
      "args": ["--directory", "path/to/nearby-search-mcp", "run", "main.py"],
      "env": {
        "GOOGLE_API_KEY": "your google api key"
      }
    }
  }
}

Exposed MCP Tools (1)

safe
search_nearby

Searches for places near the user's current location based on a keyword and optional radius/type.

Read-only operation that queries the Google Places API.

Safety Assessment

This server is relatively safe for read-only operations. However, the security of the Google API key is critical. Ensure the API key is properly secured and consider implementing input validation to mitigate potential risks.

  • Uses a well-established Google Places API.
  • Limited scope: primarily search functionality.
  • Requires an API key, providing some level of access control.
  • No direct file system access.
  • Requires a Google API key, which needs to be secured.
  • Relies on external IP-based location service (ipapi.co).
  • Potential for abuse if the API key is exposed.
  • No explicit input validation mentioned, increasing risk of injection attacks.