Get My Location
@mcpchina
关于 Get My Location
获取用户当前的精准位置,配合天气、地图等需要基于位置提供服务的MCP时有奇效
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"get-location": {
"command": "npx",
"args": [
"-y",
"@mcpcn/mcp-get-location"
],
"env": {}
}
}
}工具
1Get user location information, this tool can obtain the latitude and longitude of the user's location
概览
What is Get My Location?
Get My Location is an MCP (Model Context Protocol) server that obtains a user’s precise geographic location by opening a browser for manual permission authorization. It is designed for AI assistants or applications that need real‑time latitude/longitude coordinates, works cross‑platform (Windows, macOS, Linux), and communicates via stdio.
How to use Get My Location?
Install the server by running npx -y @mcpcn/mcp-get-location and add it to your MCP client’s configuration under the mcpServers key. No environment variables are required. After configuration, call the get_location tool – the server will automatically open a browser, ask you to grant location permission, poll for the position for up to 60 seconds, and return the coordinates.
Key features of Get My Location
- Obtains precise location via browser geolocation API
- Automatically opens the browser for user permission
- Polls location data; 60‑second timeout if no response
- Cross‑platform (Windows, macOS, Linux)
- Returns latitude and longitude as a JSON object
- No external API keys or configuration files needed
Use cases of Get My Location
- Answer “Where am I?” by returning current coordinates
- Provide location context to a weather MCP server for local forecasts
- Supply starting coordinates to a map/directions MCP server for route planning
- Enable location‑aware prompts in AI assistants without manual coordinate input
FAQ from Get My Location
What tool does Get My Location expose?
It exposes a single tool called get_location, which takes no parameters and returns latitude and longitude.
Does the server need an internet connection?
Yes. A network connection is required to access the browser geolocation service and to communicate with external APIs during the polling process.
How long does the server wait for a location?
It polls for up to 60 seconds. If the user does not grant permission or no location is obtained within that time, a timeout error is returned.
What runtime or dependencies are needed?
You need Node.js (npx) and a modern web browser. The server itself is a TypeScript package published on npm and uses MCP SDK 1.12.0.
How is the location data transported and authenticated?
The server communicates via stdio (standard input/output) with the MCP host. Authentication is handled entirely by the browser’s built‑in geolocation permission prompt – no additional credentials are needed.
媒体与设计 分类下的更多 MCP 服务器
Photoshop MCP Server
loonghaoA Model Context Protocol (MCP) server that interfaces with Adobe Photoshop's Python API. Enables LLMs to execute image editing operations, automate workflows, and manage Photoshop tasks through structured commands and context-aware interactions.
Tripadvisor MCP Server
pab1it0A Model Context Protocol (MCP) server for Tripadvisor Content API. This provides access to Tripadvisor location data, reviews, and photos through standardized MCP interfaces, allowing AI assistants to search for travel destinations and experiences.
Framelink Figma MCP Server
GLipsMCP server to provide Figma layout information to AI coding agents like Cursor
RustChain MCP
ScottcjnMCP server for RustChain blockchain and BoTTube video platform — AI agent tools for earning RTC tokens. Built on createkr's RustChain SDK.
Game Asset Generator using MCP and Hugging Face Spaces
MubarakHAlketbiAn MCP server for creating 2D/3D game assets from text using Hugging Face AI models.
评论