mcpField
G
Geo MCP Server

Geo MCP Server

Local
github.com/toshihikoyanaseMaps & Travel0Updated 76w ago

About Geo MCP Server

Geo MCP Server is a small MCP server for retrieving elevation data from latitude and longitude coordinates. It suits users who need geographical elevation lookup through an MCP client.

Key features

  1. 01Elevation lookup by coordinates
  2. 02Uses Japan GSI Elevation API
  3. 03Returns elevation in meters

Use cases

  1. 01Check elevation for a mapped location
  2. 02Retrieve elevation using latitude and longitude

MCP support

It exposes the `getElevation` tool to MCP clients, accepting latitude and longitude and returning elevation in meters.

Configuration

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

mcp.json · Universal config
{
"mcpServers": {
"geo-mcp-server-toshihikoyanase": {
"command": "npx",
"args": [
"-y",
"github.com:toshihikoyanase/geo-mcp-server"
]
}
}
}
Run commandnpx -y github.com:toshihikoyanase/geo-mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmgithub.com:toshihikoyanase/geo-mcp-server

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

Geo MCP Server

A minimal MCP server that provides tools such as getElevation to interact with geographical data. For retrieving elevation data based on latitude and longitude, it utilizes the Geospatial Information Authority of Japan API.

Configuration for Claude Desktop

Add this server under the mcpServers key of Claude Desktop configuration. See the official document of the Model Context Protocol for details.

{
   "mcpServers": {
      "geo": {
         "command": "npx",
         "args": [
            "https://github.com/toshihikoyanase/geo-mcp-server.git"
         ]
      }
   }
}
Example Usage: Retrieving Elevation for Tokyo Metropolitan Government Office

Below is an example of how to use the Geo MCP Server to find the elevation based on the latitude and longitude of the Tokyo Metropolitan Government Office.

Screenshot: Using the Geo MCP Server in Claude Desktop.

Configuration for VS Code Copilot Agent

Add this server under the servers key in your MCP configuration for VS Code. For example, to enable the MCP server in your workspace, create a .vscode/mcp.json file as follows:

{
    "servers": {
        "geo": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "https://github.com/toshihikoyanase/geo-mcp-server.git",
            ]
        }
    }
}

API

Tool: getElevation

Description: Fetches elevation data for a given latitude and longitude.

Input:

  • lat (number): Latitude of the location.
  • lon (number): Longitude of the location.

Output:

  • Returns the elevation in meters for the specified coordinates.

Development

Setup

  1. Clone this repository:
    git clone [email protected]:toshihikoyanase/geo-mcp-server.git
    cd geo-mcp-server
    
  2. Install dependencies:
    npm install
    
  3. Build the project:
    npm run build
    

Usage

Run the server:

npm start

The server will run using standard input/output (stdio).

License

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

Acknowledgments

This software leverages the Elevation API provided by the Geospatial Information Authority of Japan (GSI).

We appreciate GSI’s efforts in maintaining this service. Please ensure your own use of the API complies with GSI’s terms of use and handle the data responsibly.

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.