npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mcpcn/mcp-get-location

v1.1.3

Published

Location MCP Server - Get precise user location information through browser authorization

Readme

MCP Location Server

A location acquisition server based on MCP (Model Context Protocol) that obtains precise user location information through browser authorization.

Features

  • 🌍 Get precise user location through browser (network positioning)
  • 🔄 Automatic polling for location information, up to 60 seconds
  • 🌐 Cross-platform support (Windows, macOS, Linux)
  • 📱 Automatically opens browser for location authorization
  • 📍 Returns latitude and longitude coordinates

Use Case Examples

  • Where am I?
  • How's the weather? (combined with weather mcp)
  • How to get to xxx by car/subway/bus? (combined with map mcp)

Direct Use in MCP Client

For stdio installation, configure as follows:

{
  "mcpServers": {
    "get-location": {
      "command": "npx",
      "args": ["-y", "@mcpcn/mcp-get-location"],
      "env": {}
    }
  }
}

Available Tools

get_location

Get user location information through browser authorization.

Parameters: None

Return Value:

{
  "latitude": 39.78463536888209,
  "longitude": 116.50960396229777,
}

Usage Example: After calling this tool, the system will:

  1. Automatically open the browser
  2. Guide user to authorize location permissions
  3. Poll for location information
  4. Return latitude and longitude coordinates

Technical Implementation

  • Based on MCP SDK 1.12.0
  • Developed using TypeScript
  • Communication via stdio
  • Cross-platform browser call support

Notes

  • Requires user to manually authorize location permissions in browser
  • Returns timeout error if location is not obtained within 60 seconds
  • Ensure network connection is normal and can access external APIs

Development and Debugging

# Install dependencies
npm install

# Build
npm run build

# Start development mode
npm start