Geo Location Demo
Retrieves user geolocation information using EdgeOne Pages Functions and exposes it via an MCP server.
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_geolocationtool 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
- EdgeOne Pages
- EdgeOne Pages Functions documentation
- Model Context Protocol (MCP) - Learn about integrating AI models with external tools and services
Related Servers
Strava MCP
Integrate your Strava activity data with AI models using a local SQLite database.
Nefesh
Real-time human state awareness for AI agents. Fuses biometric signals into a unified stress score (0-100) via Streamable HTTP.
Netlify
Create, build, deploy, and manage Netlify resources using natural language.
Joomla MCP Server
Create articles on a Joomla website using its API.
HAProxy MCP Server
Interact with HAProxy's runtime API for administration, monitoring, and traffic analysis.
Remote MCP Server (Authless)
A remote MCP server deployable on Cloudflare Workers without authentication.
SynClub MCP Server
Official SynClub server for AI generation, including text-to-speech, voice cloning, video, and image creation.
AWS SSO
Interact with AWS resources using Single Sign-On (SSO). Supports SSO login, listing accounts/roles, and executing AWS CLI commands.
STRvest
Underwrite STR deals, check regulations, and estimate tax savings from any AI chat client.
Modal
Deploy Python scripts to Modal, a serverless platform for running code in the cloud.