HERE 地图 MCP 服务器のロゴ

HERE 地图 MCP 服务器

コミュニティ
limingchina

LLM MCP server using HereMaps API

公開者limingchina
リポジトリheremaps-mcp-server
言語JavaScript
フォーク
1
スター
7
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    HERE 地图 MCP 服务器は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには7件のスターと1件のフォークがあります。

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.

インストール

TypingMind
前提条件:

Node.js 18+

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

HERE 地图 MCP 服务器のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度HERE 地图 MCP 服务器に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

HERE 地图 MCP 服务器をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. HERE 地图 MCP 服务器のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "limingchina-here-maps-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "heremaps-mcp-server"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてHERE 地图 MCP 服务器のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. HERE 地图 MCP 服务器のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
HERE 地图 MCP 服务器を使ってこのタスクを手伝ってもらえますか?
HERE 地图 MCP 服务器
はい、読みました。
HERE 地图 MCP 服务器で調べた結果をお伝えします。

よくある質問

HERE 地图 MCP 服务器 MCPサーバーは何に使いますか?

HERE 地图 MCP 服务器は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでHERE 地图 MCP 服务器 MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでHERE 地图 MCP 服务器を利用できます。

TypingMindでHERE 地图 MCP 服务器 MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。HERE 地图 MCP 服务器を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

HERE 地图 MCP 服务器 MCPをTypingMindに接続するにはどうすればよいですか?

HERE 地图 MCP 服务器はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでHERE 地图 MCP 服务器 MCPのどのようなツールを利用できますか?

HERE 地图 MCP 服务器はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

HERE 地图 MCP 服务器 MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。HERE 地图 MCP 服务器で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇