EdgeOne Pages MCP: Geo Location Service

MIT License

EdgeOne Pages MCP:地理位置服务

该项目演示了如何使用 EdgeOne Pages Functions 检索用户地理位置信息并通过 MCP(模型上下文协议)将其与大型语言模型集成。

演示

部署

更多模板: EdgeOne 页面

成分

1. EdgeOne 页面功能:地理定位

该项目包括一个 EdgeOne Pages 函数,用于检索用户地理位置信息:

  • 使用 EdgeOne 请求上下文访问地理位置数据
  • 以 JSON 格式返回位置信息
  • 位于functions/get_geo.ts

2. MCP 服务器集成

MCP 服务器组件为大型语言模型提供了访问地理位置数据的接口:

  • 实现模型上下文协议(MCP)
  • 公开可供 AI 模型使用的get_geolocation工具
  • 使用 EdgeOne Pages 功能获取地理位置数据
  • 位于mcp-server/index.ts

MCP 配置

要使用具有大型语言模型的 MCP 服务器,请添加以下配置:

{ "mcpServers": { "edgeone-geo-mcp-server": { "command": "tsx", "args": ["path/to/mcp-server/index.ts"] } } }

了解更多

-
security - not tested
A
license - permissive license
-
quality - not tested

MCP 服务器使 AI 模型能够通过 EdgeOne Pages Functions 访问用户地理位置信息。

  1. Demo
    1. Deploy
      1. Components
        1. 1. EdgeOne Pages Functions: Geolocation
        2. 2. MCP Server Integration
      2. MCP Configuration
        1. Learn More

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            An MCP server for nearby place searches with IP-based location detection.
            Last updated -
            Python
            MIT License
          • -
            security
            A
            license
            -
            quality
            An MCP server that extends AI agents' context window by providing tools to store, retrieve, and search memories, allowing agents to maintain history and context across long interactions.
            Last updated -
            5
            TypeScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
            Last updated -
            387
            Python
            MIT License
            • Apple
          • -
            security
            F
            license
            -
            quality
            A MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.
            Last updated -
            5
            TypeScript

          View all related MCP servers

          ID: kw2tntzfr2