Geo Location Demo
Retrieves user geolocation information using EdgeOne Pages Functions and integrates it with large language models via MCP.
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
関連サーバー
Alpha Vantage MCP Server
スポンサーAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
SpecBridge
Automatically generates MCP tools from OpenAPI specifications by scanning a folder for spec files. No configuration is needed and it supports authentication via environment variables.
Hayhooks
Deploy and serve Haystack pipelines as REST APIs, MCP Tools, and OpenAI-compatible chat completion backends.
OpenAPI to MCP
A Go tool for converting OpenAPI specifications into MCP tools.
Azure DevOps MCP
Integrates with Azure DevOps, allowing interaction with its services. Requires a Personal Access Token (PAT) for authentication.
UnityNaturalMCP
An MCP server implementation for the Unity game engine that enables a natural user experience.
MCPHost
A CLI host application that enables Large Language Models (LLMs) to interact with external tools through the Model Context Protocol (MCP).
Md2svg
Converts Markdown text to SVG images.
React Native AI Debugger
Enables AI assistants like Claude Code to capture logs, execute code, inspect state, and control navigation in your React Native app.
AI Sessions
Searching and access your AI coding sessions from Claude Code, Gemini CLI, opencode, and OpenAI Codex.
Windows CLI
MCP server for secure command-line interactions on Windows systems, enabling controlled access to PowerShell, CMD, and Git Bash shells.