EdgeOne Geo MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/OldandOutdated/mcp-geo1
cd mcp-geo1

Then follow the repository README for any remaining dependency or build steps before continuing.

2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add edgeone-geo -- node "<FULL_PATH_TO_MCP_GEO1>/dist/index.js"

Replace <FULL_PATH_TO_MCP_GEO1>/dist/index.js with the actual folder you prepared in step 1.

README.md

Retrieve user geolocation data using EdgeOne Pages Functions

MCP with Pages Functions :Geo Location Demo

This project demonstrates how to use EdgeOne Pages Functions to retrieve user geolocation information and integrate it with large language models through MCP (Model Context Protocol).

Demo

Deploy

More Templates: EdgeOne Pages

Components

1. EdgeOne Pages Functions: Geolocation

The project includes an EdgeOne Pages Function that retrieves user geolocation information:

  • Uses the EdgeOne request context to access geolocation data
  • Returns location information in a JSON format
  • Located in functions/get_geo.ts

2. MCP Server Integration

The MCP server component provides an interface for large language models to access geolocation data:

  • Implements the Model Context Protocol (MCP)
  • Exposes a get_geolocation tool that can be used by AI models
  • Uses the EdgeOne Pages Function to fetch geolocation data
  • Located in mcp-server/index.ts

MCP Configuration

To use the MCP server with large language models, add the following configuration:

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

Learn More

Tools (1)

get_geolocationRetrieves the user's current geolocation information in JSON format using EdgeOne request context.

Configuration

claude_desktop_config.json
{"mcpServers": {"edgeone-geo-mcp-server": {"command": "tsx", "args": ["path/to/mcp-server/index.ts"]}}}

Try it

Where am I currently located according to the EdgeOne request context?
Get my current geolocation data.
Can you fetch my location details using the get_geolocation tool?

Frequently Asked Questions

What are the key features of EdgeOne Geo?

Integrates EdgeOne Pages Functions with LLMs via MCP. Retrieves user geolocation data from request context. Returns location information in structured JSON format. Provides a dedicated get_geolocation tool for AI models.

What can I use EdgeOne Geo for?

Personalizing AI responses based on the user's current geographic location. Testing and debugging geolocation-aware applications on EdgeOne. Building location-based services that require LLM reasoning.

How do I install EdgeOne Geo?

Install EdgeOne Geo by running: tsx path/to/mcp-server/index.ts

What MCP clients work with EdgeOne Geo?

EdgeOne Geo works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep EdgeOne Geo docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare