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
ConnectWise API Gateway
A comprehensive interface for interacting with the ConnectWise Manage API.
Kaltura MCP Server
A server for performing secure, read-only operations on the Kaltura API.
YouTube
An MCP server for interacting with YouTube's data and services.
Remote MCP Server (Authless)
An authentication-free remote MCP server deployable on Cloudflare Workers or locally via npm.
Cloudflare MCP Server
A remote MCP server deployable on Cloudflare Workers without authentication.
Weather Alerts
Provides real-time weather alerts for US states using the National Weather Service API.
MCP Server for Oracle Cloud Infrastructure (OCI)
Model Context Protocol (MCP) server for Oracle Cloud Infrastructure, allowing LLMs like Claude to interact directly with OCI resources
Coincheck MCP Server
Integrates with the Coincheck cryptocurrency exchange API.
CData Salesloft Server
A read-only MCP server by CData that enables LLMs to query live data from Salesloft.
ConvertAPI
High-Performance File Conversion MCP