A
licenseNot graded
qualityD
maintenanceEnables AI models to access user geolocation information through EdgeOne Pages Functions, allowing location-aware AI interactions.
MIT
该项目演示了如何使用 EdgeOne Pages Functions 检索用户地理位置信息并通过 MCP(模型上下文协议)将其与大型语言模型集成。

Related MCP server: EdgeOne Geo MCP Server
更多模板: EdgeOne 页面
该项目包括一个 EdgeOne Pages 函数,用于检索用户地理位置信息:
使用 EdgeOne 请求上下文访问地理位置数据
以 JSON 格式返回位置信息
位于functions/get_geo.ts
MCP 服务器组件为大型语言模型提供了访问地理位置数据的接口:
实现模型上下文协议(MCP)
公开可供 AI 模型使用的get_geolocation工具
使用 EdgeOne Pages 功能获取地理位置数据
位于mcp-server/index.ts
要使用具有大型语言模型的 MCP 服务器,请添加以下配置:
{
"mcpServers": {
"edgeone-geo-mcp-server": {
"command": "tsx",
"args": ["path/to/mcp-server/index.ts"]
}
}
}模型上下文协议 (MCP) - 了解如何将 AI 模型与外部工具和服务集成
This server cannot be deployed
Cloudflare Workers MCP server: ai-model-router
Cloudflare Workers MCP server: llm-output-quality-monitor
Cloudflare Workers MCP server: ai-prompt-optimizer
Cloudflare Workers MCP server: ai-gateway