mcpField
M
Mcp Server Location

Mcp Server Location

Local
npmjs.comMedia & Design0Updated 79w ago

About Mcp Server Location

Mcp Server Location is an MCP location service for clients that need address details from an IP address or latitude and longitude. It provides two query tools and is based on Meituan Open API.

Key features

  1. 01Look up locations by IP address
  2. 02Get detailed addresses from coordinates
  3. 03Return country, province, city, and district
  4. 04Based on Meituan Open API

Use cases

  1. 01Find the location associated with an IP address
  2. 02Convert latitude and longitude into a detailed address

MCP support

The server exposes `ip_location` and `latlng_location` tools to MCP clients for location lookups by IP address or coordinates.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Location MCP Server

中文 / English

A location server based on MCP (Model Context Protocol) that provides IP address location and latitude/longitude query functionality.

Features
  • Support location query by IP address
  • Support detailed address query by latitude and longitude coordinates
  • Based on Meituan Open API
  • Developed with TypeScript for type safety
  • Compliant with MCP protocol standard
Installation
npm install @v8tech/mcp-server-location -g
Usage

The server provides two main tools:

  1. IP Location (ip_location)

    • Input: IP address
    • Output: Detailed location information including country, province, city, district, etc.
  2. Latitude/Longitude Location (latlng_location)

    • Input: Latitude (lat) and longitude (lng)
    • Output: Detailed address information including country, province, city, district, etc.
Development
  1. Clone the repository:
git clone https://github.com/v5tech/mcp-server-location.git
cd mcp-server-location
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Development mode (watch for changes):
npm run watch
API Response Examples
  1. IP Location Response:
{
  "location": {
    "ip": "8.8.8.8",
    "coordinates": {
      "latitude": 37.751,
      "longitude": -97.822
    },
    "address": {
      "country": "United States",
      "province": "Kansas",
      "city": "Wichita",
      "district": "",
      "adcode": "US"
    }
  }
}
  1. Latitude/Longitude Location Response:
{
  "location": {
    "coordinates": {
      "latitude": 39.9042,
      "longitude": 116.4074
    },
    "address": {
      "country": "China",
      "province": "Beijing",
      "city": "Beijing",
      "district": "Dongcheng",
      "detail": "Tiananmen Square",
      "areaName": "Dongcheng District"
    }
  }
}
License

This project is licensed under the MIT License - see the LICENSE file for details.

Issues

If you encounter any problems while using this project, please feel free to submit them on the GitHub Issues page.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.