EdgeOne Geo Location
Provides geolocation data using EdgeOne Pages Functions.
EdgeOne Pages MCP: Geo Location Service
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
相关服务器
MCP Replicate FLUX
Generates images using Replicate's FLUX model and stores them in Cloudflare R2.
Code Ocean MCP Server
Search and run capsules, execute pipelines, and manage data assets on the Code Ocean platform.
Confluent Cloud
Interact with Confluent Cloud REST APIs to manage Kafka clusters, topics, and data.
Contentful
Interact with your content on the Contentful platform
Datadog MCP Server
Provides comprehensive Datadog monitoring capabilities through any MCP client.
PayPal by CData
A read-only MCP server for querying live PayPal data, powered by the CData JDBC Driver.
Ultrahuman
Fetch health and fitness metrics like heart rate, sleep, and steps from the Ultrahuman API.
OpenAI
Query OpenAI models directly from Claude using MCP protocol
Weather Union
Provides weather data and air quality information using the Weather Union API.
Honeycomb MCP
Interact with Honeycomb observability data using the Model Context Protocol.