Logo von HERE 地图 MCP 服务器

HERE 地图 MCP 服务器

Community
limingchina

LLM MCP server using HereMaps API

Herausgeberlimingchina
Repositoryheremaps-mcp-server
SpracheJavaScript
Forks
1
Sterne
7
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzApache-2.0
Links
  • Tools mit KI-Workflows verbinden

    HERE 地图 MCP 服务器 stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    7 Sterne und 1 Forks im verlinkten Repository.

HERE Maps MCP Server

This project provides a Model Context Protocol (MCP) compliant server that exposes functionalities from the HERE Maps Platform APIs as tools for Language Models.

Goal

The aim is to allow LLMs to interact with HERE Maps services like Geocoding, Reverse Geocoding, Places Search, Routing, Traffic and Rendering through the standardized MCP interface.

HERE Maps Tools

The following HERE Maps services are implemented as MCP tools:

  1. Geocoding:

    • MCP Tool: maps_geocode
    • Description: Convert an address into geographic coordinates
    • HERE API: Geocoding & Search API v7 - Geocode
    • Input: address (string)
    • Output: JSON with location (lat/lng coordinates), address (formatted address), and id
  2. Reverse Geocoding:

    • MCP Tool: maps_reverse_geocode
    • Description: Convert coordinates into an address
    • HERE API: Geocoding & Search API v7 - Reverse Geocode
    • Input: latitude (number), longitude (number)
    • Output: JSON with address (formatted address), position (lat/lng coordinates), and id
  3. Places Search (Points of Interest):

    • MCP Tool: maps_search_places
    • Description: Search for places (e.g., restaurants, ATMs) near a specific location
    • HERE API: Geocoding & Search API v7 - Discover
    • Input: latitude (number), longitude (number), query (string, e.g., "coffee", "restaurant")
    • Output: List of places, each with name, address, position (lat/lng coordinates), and category
  4. Routing (Directions):

    • MCP Tool: maps_directions
    • Description: Get directions between two points using HERE Maps Routing API
    • HERE API: Routing API v8
    • Input:
      • origin (string in 'latitude,longitude' format)
      • destination (string in 'latitude,longitude' format)
      • transportMode (string: "car", "pedestrian", "bicycle", "truck", "scooter", "bus", "taxi")
    • Output: JSON with summary (duration and length), polyline (route coordinates), and actions (navigation instructions)
  5. Traffic Information:

    • MCP Tool: maps_get_traffic_incidents
    • Description: Retrieve traffic incidents within a circle
    • HERE API: Traffic API v7
    • Input:
      • center (string in 'latitude,longitude' format)
      • radius (number in meters)
    • Output: List of incidents with description, startTime, endTime, type, and criticality
  6. Display Map:

    • MCP Tool: maps_display
    • Description: Show a map with the given coordinates, zoom level and style
    • HERE API: Map Image API v3
    • Input:
      • center (string in 'latitude,longitude' format)
      • zoomLevel (number, zoom level ranges from 0(global level) to 20(most zoomed-in level). default is 14.)
      • style (string: "explore.day", "explore.night", "explore.satellite.day", "lite.day", "lite.night", "lite.satellite.day", "logistics.day", "logistics.night", "logistics.satellite.day", "satellite.day", "topo.day", "topo.night")
    • Output: A rendered map image

Getting Started

Since the npm package is not yet published, currently one can only clone the repository and run the MCP server locally.

  1. Clone the repository
bash
git clone https://github.com/limingchina/here-maps-mcp-server.git
  1. Install Node.js and npm Follow the instructions on Node.js website to install the latest version of Node.js and npm.

  2. Install dependencies

bash
cd here-maps-mcp-server/src/node
npm install
  1. Obtain your HERE Maps API Key by checking Authentication Guide (API Key)

  2. Run the MCP server

bash
HERE_MAPS_API_KEY=<YOUR_HERE_API_KEY> npx .

This will automatically invoke the "npm run build" command, which builds the MCP server project, and then start the server. It should print the following message:

HERE Maps MCP Server running on stdio

This means the MCP server is running and ready to accept MCP requests. One can use "Ctrl-C" to stop the server. Normally, we configure the MCP server in a client application, such as Claude. The client will start the server automatically after proper configuration.

MCP configuration

  1. Add the MCP server configuration to the MCP client, for example, Claude. "Settings"->"Developer"->"Edit Config"
    json
    {
      "mcpServers": {
      "here-maps": {
        "command": "npx",
        "args": [
          "-y",
          "/<You local checkout directory of this project>/src/node"
        ],
        "env": {
          "HERE_MAPS_API_KEY": "<YOUR_HERE_API_KEY>"
        }
      }
     }
    }
  2. Some MCP clients such as Claude require restart the app so that the new settings take effect.

Example usage:

  1. Find some French restaurants in Central Berlin. This should trigger the geocode tool call to find out the geo coordinates of central Berlin. Then the place search tool call will be triggered. This is the sample output. The search result output is abbreviated.
    I'd be happy to help you find some French restaurants in central Berlin. Let me search for places that should suit your needs.
    maps_geocode
    Request{
      `address`: `Central Berlin, Germany`
    }
    Response{
      "location": {
         "lat": 52.52427,
         "lng": 13.4026
      },
      "address": "Central, Rosenthaler Straße 39, 10178 Berlin, Deutschland",
      "id": "here:pds:place:276u33db-602fbe3989e243d38221c312af23a0e1"
    }
    Now I'll search for French restaurants in this area
    maps_search_places
    Request{
      `query`: `French restaurant`,
      `latitude`: 52.52427,
      `longitude`: 13.4026
    }
    Response[
      {
        "name": "Oxymoron",
        "address": "Oxymoron, Rosenthaler Straße 40, 10178 Berlin, Deutschland",
        "position": {
          "lat": 52.52401,
          "lng": 13.40249
        },
        "category": "Restaurant"
      },
      {
        "name": "Barist",
        "address": "Barist, Am Zwirngraben 13, 10178 Berlin, Deutschland",
        "position": {
          "lat": 52.5229,
          "lng": 13.4024
        },
        "category": "Bar oder Pub"
      }
      ......<Abbreviated>
    ]
    Here are some excellent French restaurants in central Berlin:
    
    L'Ami Fritz - Located on Max-Beer-Straße 29, this authentic French restaurant is right in the heart of central Berlin.
    Sucre Et Sel - Found on Torstraße 132, offering French cuisine with a name that means "Sugar and Salt" in French.
    Ratatouille Berlin - Located on Ackerstraße 2, named after the famous French dish and likely offering traditional French fare.
    Bandol sur Mer - A more upscale French restaurant on Torstraße 167, named after a coastal town in southern France known for its wines.
    Cafe Fleury - On Weinbergsweg 20, a French-style café that likely offers classic French breakfast and lunch options.
    Brasserie Torbar - Found on Torstraße 183, a brasserie-style restaurant offering French cuisine.
    Les Pâtisseries de Sébastien - While primarily a patisserie on Invalidenstraße 157, this is perfect if you're looking for authentic French pastries and desserts.
    
    All these establishments are located within central Berlin and are within relatively close proximity to one another. Would you like more specific information about any of these restaurants?RetryClaude can make mistakes. Please double-check responses.You are out of free messages until 2:00 AMUpgrade plan5 3.7 SonnetChat controls 3.7 SonnetOur most intelligent model yet Learn more
  2. Can you calculate a route from Reinickendorf to Mitte? This should trigger two geocode tool calls to find out the geo coordinates of Reinickendorf and Mitte( Two districts in Berlin). Then the routing(directions) tool call will be triggered. You can explore the output in Claude.
  3. How is the traffic in center Paris? This should trigger two geocode tool calls to find out the geo coordinates of central Paris. Then the traffic incident tool call will be triggered. You can explore the output in Claude.
  4. Can you display a map for central Paris? This should trigger geocode tool call to find out the geo coordinates of central Paris. Then the display tool call will be triggered. In Claude, the map will be displayed in the chat window as an image inside the tool call result. Please note that it also returns a URL to the image. You can copy the URL and paste it in a browser to view the image as well. The URL contains the API key, so it's not recommended to share such chat history.

Development

For easier debugging, it is recommended to use the MCP inspector tool. It starts a local webserver. One can easily check if each tool call returns the expected result given the input parameters. For this project, one can run the following command to start the MCP inspector tool:

bash
cd src/node
npm run build && npx @modelcontextprotocol/inspector -e HERE_MAPS_API_KEY=<YOU_HERE_API_KEY> node dist/index.js

Other mapping-service MCP servers

Contributing

Feel free to fork this repository and adapt it to your needs. Contributions are welcome if you wish to refine the tool definitions or implementation details.

Installation

TypingMind
Voraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "limingchina-here-maps-mcp-server": {
      "command": "",
      "args": []
    }
  }
}

HERE 地图 MCP 服务器 MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald HERE 地图 MCP 服务器 verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

HERE 地图 MCP 服务器 als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für HERE 地图 MCP 服务器 ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "limingchina-here-maps-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "heremaps-mcp-server"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von HERE 地图 MCP 服务器. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von HERE 地图 MCP 服务器.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit HERE 地图 MCP 服务器 bei dieser Aufgabe helfen?
HERE 地图 MCP 服务器
Gerne. Ich habe es gelesen.
Das habe ich mit HERE 地图 MCP 服务器 gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server HERE 地图 MCP 服务器 verwendet?

HERE 地图 MCP 服务器 ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich HERE 地图 MCP 服务器 MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie HERE 地图 MCP 服务器 mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum HERE 地图 MCP 服务器 MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald HERE 地图 MCP 服务器 verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich HERE 地图 MCP 服务器 MCP mit TypingMind?

HERE 地图 MCP 服务器 wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt HERE 地图 MCP 服务器 MCP in TypingMind bereit?

HERE 地图 MCP 服务器 stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um HERE 地图 MCP 服务器 MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls HERE 地图 MCP 服务器 eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇