- Home
- MCP servers
- EdgeOne Geo
EdgeOne Geo
- typescript
1
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"edgego-mcp-geo-pub": {
"command": "tsx",
"args": [
"path/to/mcp-server/index.ts"
]
}
}
}You can run an MCP server that exposes a geolocation data tool by leveraging EdgeOne Pages Functions. This server enables AI models to fetch user geolocation data through the Model Context Protocol, making geolocation-aware interactions possible in your applications.
How to use
You will access geolocation data from AI models via the exposed get_geolocation tool. Start your MCP client, configure the local MCP server, and then call the tool from your model context as you would with other external tools. The geolocation data returned is sourced from EdgeOne Pages Functions, providing location context to your models for location-aware reasoning and responses.
How to install
Prerequisites: ensure you have Node.js installed on your machine. You can verify by running node -v and npm -v in your terminal.
-
Create a working directory for your MCP server project and navigate into it.
-
Prepare the MCP configuration file that exposes the edgeone_geo_mcp server using the provided command and arguments.
-
Start the MCP server using the exact command and arguments shown in the configuration snippet.
-
Point your MCP client to the local stdio server configuration you started and begin using the get_geolocation tool in your AI workflows.
medataOutput
Configuration and examples
The MCP server is configured to run via a stdio command that launches a TypeScript entry point for the MCP server. Use the exact command and arguments shown below to ensure correct behavior.
{
"mcpServers": {
"edgeone_geo_mcp": {
"type": "stdio",
"command": "tsx",
"args": ["path/to/mcp-server/index.ts"]
}
}
}
Tools exposed by this MCP server
The MCP server implements a single tool named get_geolocation. This tool provides the current geolocation data retrieved via the EdgeOne Pages Function and made available to AI models through the MCP interface.
Available tools
get_geolocation
Exposes a tool that fetches user geolocation data via the EdgeOne Pages Function and delivers it to models through MCP.