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
Servidores relacionados
Qlik Cloud
Interact with Qlik Cloud applications and extract data from visualizations using the Qlik Cloud API.
Terrakube MCP Server
Manage Terrakube workspaces, variables, modules, and organizations.
AWS CLI
Interact with AWS services using the AWS CLI. Requires AWS CLI to be installed and configured.
Okta MCP Server
Allows AI models to interact with your Okta environment to manage and analyze resources, designed for IAM engineers, security teams, and administrators.
k8s Pilot
A lightweight, centralized control plane for managing multiple Kubernetes clusters using kubeconfig or in-cluster configuration.
S2T Accelerators
36 enterprise MCP tools for AWS security, infrastructure generation, AI workflows, and AI agent governance.
Commerce Cloud MCP Server
Connects AI applications with Salesforce Commerce Cloud using the Model Context Protocol (MCP).
Brain MCP
An example MCP server deployed on Cloudflare Workers, without authentication.
Aiven
Manage Aiven cloud services like Kafka, PostgreSQL, and Redis via its API.
PrestaShop MCP Server
A server for managing PrestaShop e-commerce stores through a unified product API.