MCP Geo Server logo

MCP Geo Server

by toshihikoyanase

A minimal MCP server that provides tools such as `getElevation` to interact with geographical data. It's designed to be used with Claude Desktop.

View on GitHub

Last updated: N/A

MCP Geo Server

A minimal MCP server that provides tools such as getElevation to interact with geographical data.

Use Claude Desktop

Add your servers in the mcpServers key of Claude Desktop configuration.

{
   "mcpServers": {
      "geo": {
         "command": "npx",
         "args": [
            "github.com:toshihikoyanase/geo-mcp-server"
         ]
      }
   }
}

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.