-
securityA
license-
qualityAn MCP server for nearby place searches with IP-based location detection.
Last updated -
Python
MIT License
该项目演示了如何使用 EdgeOne Pages Functions 检索用户地理位置信息并通过 MCP(模型上下文协议)将其与大型语言模型集成。
更多模板: EdgeOne 页面
该项目包括一个 EdgeOne Pages 函数,用于检索用户地理位置信息:
functions/get_geo.ts
MCP 服务器组件为大型语言模型提供了访问地理位置数据的接口:
get_geolocation
工具mcp-server/index.ts
要使用具有大型语言模型的 MCP 服务器,请添加以下配置:
This server cannot be installed
MCP 服务器使 AI 模型能够通过 EdgeOne Pages Functions 访问用户地理位置信息。