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
संबंधित सर्वर
Remote MCP Proxy
A Docker-based proxy to access local MCP servers through Claude's web UI using the Remote MCP protocol.
Axiom MCP Server
Access Axiom logs through an MCP server. Requires an Axiom API token.
OpenRouter
Access over 400 AI models from OpenRouter's collection.
MCP Status Observer
Monitors the operational status of major digital platforms.
AWS Application Signals
Interact with AWS Application Signals for application monitoring and troubleshooting. Requires AWS credentials.
Remote MCP Server (Authless)
A template for deploying a remote, authentication-free MCP server on Cloudflare Workers.
ProbeOps
Network diagnostics from 6 global regions — SSL, DNS, ping, whois, traceroute, port scan, latency. Works without an API key.
AWS MCP Servers
Access AWS documentation, best practices, and service integrations via the Model Context Protocol.
Ghost MCP Server
Interact with and manage your Ghost CMS blog, including posts, users, and members, through an LLM interface.
Strava MCP Server
A server that connects to the Strava API, allowing language models to access Strava data and features.