MCP ExplorerExplorer

Mlit Data Platform Mcp

@hrko9gison 9 months ago
14 MIT
FreeCommunity
AI Systems
MCP server for searching MLIT data using the National Ministry's API.

Overview

What is Mlit Data Platform Mcp

MLIT-DATA-PLATFORM-mcp is an MCP (Model Context Protocol) server that utilizes the Ministry of Land, Infrastructure, Transport and Tourism’s data platform API to search for transportation and infrastructure-related data.

Use cases

Use cases include searching for specific transportation data, retrieving data sets for analysis, and obtaining lists of prefectures and municipalities for geographic information systems.

How to use

To use MLIT-DATA-PLATFORM-mcp, add the server to Claude Desktop by specifying the directory of the ‘mlit-data-platform-mcp.py’ file and connecting to the server URL http://localhost:3000.

Key features

Key features include data search and retrieval based on conditions, data ID, and attributes, as well as obtaining data catalogs and lists of prefecture and municipality names corresponding to their codes.

Where to use

MLIT-DATA-PLATFORM-mcp can be used in fields such as urban planning, transportation management, and public policy analysis, where access to infrastructure and transportation data is essential.

Content

国土交通データプラットフォーム MCP サーバー

国土交通省の国土交通データプラットフォームAPIを利用して、国土交通データを検索できるMCP(Model Context Protocol)サーバーです。

機能

  • 条件を設定したデータの検索、取得
  • データIDを元にデータを取得
  • データカタログ、データセット情報の取得
  • 都道府県コードとコードに対応する都道府県名の一覧の取得
  • 市区町村コードとコードに対応する市区町村名の一覧の取得

利用可能なツール

1. search

キーワードを指定してデータを検索、取得する

2. search_by_location_rectangle

キーワードと緯度経度で範囲を指定してデータを検索、取得する

3. search_by_location_point_distance

キーワードと中心の緯度経度、半径距離(メートル)を指定してデータを検索、取得する

4. search_by_attribute

キーワードと属性情報を指定してデータを検索、取得する

5. get_data_summary

データIDを指定してデータの概要情報のみを取得する

6. get_data

データIDを指定してデータの詳細情報を取得する

7. get_data_catalog

データカタログ、データセット情報を取得する

8. get_prefecture_data

国土交通DPFで利用する都道府県コードとコードに対応する都道府県名の一覧を取得する

9. get_municipality_data

国土交通DPFで利用する市区町村コードとコードに対応する市区町村名の一覧を取得する

依存関係

pip install aiohttp mcp

使い方(自分の環境で動作した手順)

ローカルにクローンして使用する場合:

# リポジトリをクローン
git clone https://github.com/hrko9gis/MLIT-DATA-PLATFORM-mcp.git
cd MLIT-DATA-PLATFORM-mcp

# Python仮想環境を使用
uv venv
.venv\Scripts\activate
pip install aiohttp mcp

Claude Desktop での使用(パスが通っていれば、こちらで問題なく動作する見込み)

Claude Desktop でMCPサーバーを追加して利用することができます。

  1. Claude Desktop で設定画面を開きます

  2. このMCPサーバーを追加します

{
  "mcpServers": {
    "MLIT-DATA-PLATFORM-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "<mlit-data-platform-mcp.pyが存在するディレクトリを絶対パスで指定>",
        "run",
        "mlit-data-platform-mcp.py"
      ]
    }
  }
}
  1. 保存します

  2. 接続します

Claude Desktop での使用(自分の環境で動作した設定)

Claude Desktop でMCPサーバーを追加して利用することができます。

  1. Claude Desktop で設定画面を開きます

  2. このMCPサーバーを追加します

{
  "mcpServers": {
    "MLIT-DATA-PLATFORM-mcp": {
      "command": "<MLIT-DATA-PLATFORM-mcpのディレクトリを絶対パスで指定>\\venv\\Scripts\\python.exe",
      "args": [
        "<MLIT-DATA-PLATFORM-mcpのディレクトリを絶対パスで指定>\\mlit-data-platform-mcp.py"
      ]
    }
  }
}
  1. 保存します

  2. 接続します

必要な依存関係

pip install aiohttp mcp

APIキー

  • 国土交通データプラットフォーム利用者向けAPIキー(API利用方法を参照)

ライセンス

MIT

謝辞

このプロジェクトは、国土交通省の国土交通データプラットフォームAPIを利用しています。APIの提供に感謝いたします。

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers