EdgeOne Pages MCP: Geo Location Service

MIT License

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_geolocation tool 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

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

An MCP server that enables AI models to access user geolocation information through 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