home / mcp / mcp geo location server

MCP Geo Location Server

An MCP service for getting user geolocation information

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "handsomegentlemen-mcp-geo": {
      "command": "tsx",
      "args": [
        "path/to/mcp-server/index.ts"
      ]
    }
  }
}

This MCP Server exposes a get_geolocation tool that fetches the user’s geolocation data via EdgeOne Pages Functions and makes it available to large language models through the Model Context Protocol (MCP). It enables you to enrich AI responses with location context in a privacy-conscious and scalable way.

How to use

You will interact with the edgeone_geo MCP Server by invoking its get_geolocation tool from your MCP client. The tool retrieves the user’s geolocation data through an integrated Pages Function and returns a JSON payload that your model can consume to tailor responses based on the user’s location. Use this to power location-aware features such as localized recommendations, region-based content routing, or geofenced experiences.

How to install

Prerequisites you need before installing this MCP Server include Node.js and npm. Ensure you have a recent LTS version of Node.js installed on your system.

1) Prepare your project directory and configuration. Create a dedicated folder for the MCP server configuration if you do not already have one.

2) Install required tooling. You should have tsx available to run TypeScript entry points directly. If your project uses npm, install the necessary packages.

3) Start the MCP Server using the explicit runtime command described in the configuration. The server is intended to be run as a local stdio process with the following entry point and arguments.

4) Verify the server is reachable by your MCP client according to your environment’s tooling and start-up logs.

Additional configuration and tools

The MCP Server exposes a single tool named get_geolocation. This tool uses the EdgeOne Pages Functions context to fetch geolocation data and returns it in a JSON format that your model can consume.

Available tools

get_geolocation

Tool that retrieves user geolocation information via the EdgeOne Pages Function and returns a JSON payload for use by MCP-enabled models.