Forest Fire Visualization MCP Server

Forest Fire Information Visualization MCP Server

introduction

This project is a Python-based MCP server that collects, analyzes, and visualizes wildfire occurrence data on maps. Users can utilize various functions such as regional wildfire occurrence information, risk analysis, and map visualization.


Folder structure

MCP/ ├── README.md # 프로젝트 설명 문서 ├── forest_fire_mcp_server.py # MCP 서버 메인 파일 ├── forest_fire_data.py # 데이터 처리 모듈 ├── forest_fire_data.json # 산불 데이터 파일 ├── claude_desktop_config.json # Claude 설정 파일 ├── data/ # 산불 데이터 저장 폴더 └── venv/ # 가상환경 폴더(필요 시)

Installation Requirements

Installing Python

If you don't have Python installed, follow these steps to install it:

  1. Go to the official Python website .
  2. Download the latest version by clicking the yellow button "Download Python XXX" at the top of the page.
  3. Run the downloaded installer.
  4. The most important part of the installation screen is the "Add Python.exe to PATH" option.
    • Make sure to check this option! (checkbox at the bottom of the screen)
    • This setting allows you to run Python from the command prompt.
  5. Click “Install Now” to proceed with the installation.
  6. Once the installation is complete, click the "Close" button.

Verifying Python Installation

  1. Press Windows 키 + R on your keyboard.
  2. Type cmd in the Run window and click OK.
  3. In the open Command Prompt window, type the following command and press Enter:
    python --version
  4. If the Python version is displayed, the installation was successful. Example: Python 3.12.0

Install required packages

Once Python is installed, you'll need to install the required packages:

  1. In the Cursor AI menu terminal, click New Terminal.
  2. Type the following command and press Enter:
    pip install mcp httpx requests
  3. Wait while the installation is completed.
  4. If you get an error, try this command instead:
    pip install --user mcp httpx requests

Setting up the Python interpreter

If you still get errors after installing the package, check your Python interpreter settings:

  1. Press Ctrl + Shift + P to open the command palette.
  2. Type "Python: Select Interpreter" and select it.
  3. Select a virtual environment interpreter:
    • ./venv/Scripts/python.exe

Setting up the project file

Prepare project files

  1. Download all files in this repository to any location on your computer.
  2. Example: Create a folder C:\Users\사용자이름\Desktop\MCP and copy the files.

Check data file

  1. Make sure forest_fire_data.json file is in the folder.
  2. This file is an important file containing wildfire data.

Modify server configuration file

  1. Open forest_fire_mcp_server.py file with Notepad.
  2. Find FOREST_FIRE_DATA_PATH variable and change it to your actual path:
# 예시: FOREST_FIRE_DATA_PATH = "C:/Users/사용자이름/Desktop/MCP/forest_fire_data.json"
  1. Save and close the file.

Running the server

Method 1: Use the Run button next to the code

  1. Open forest_fire_mcp_server.py file.
  2. Click the ▶️ (Run) button displayed on the left side of the file contents.
    • Cursor AI automatically runs Python scripts.
    • No separate command input is required.

Method 2: Run directly from terminal

  1. In the Cursor AI menu terminal, click New Terminal.
  2. Type the following command and press Enter:
    python forest_fire_mcp_server.py

Verify server is running

  1. If you see the following message, then success:
산불정보 시각화 MCP 서버가 시작되었습니다.
  1. Don't close this terminal! The server needs to stay running.

Setting up the Claude desktop app

Install the Claude desktop app

  1. Download the installer from the Claude desktop app download page .
  2. Run the downloaded installation file.
  3. Follow the instructions in the installation wizard to complete the installation.

Setting up Claude MCP

  1. Launch the Claude app.
  2. In the File menu in the top right corner, click the Settings (⚙️) icon.
  3. Select the ‘Developer’ tab in the left menu.
  4. Click 'Edit Settings' and specify the file C:/Users/사용자이름/Desktop/MCP/claude_desktop_config.json .

Restart Claude desktop app

  1. Completely quit the Claude desktop app and then relaunch it.
  2. If you see a hammer 🔨 icon in the upper right corner, you have successfully connected to the MCP server.
    • If the hammer icon is gray, the MCP server is not running.
    • If the hammer icon is blue, the MCP server is connected properly.

Using the main features

You can use the server's features by entering the following commands in the Claude app:

  1. View Wildfire Data :
    강원도의 2021년 산불 데이터를 알려줘
  2. Wildfire Risk Analysis :
    강원도 고성 지역의 산불 위험도는 어떻게 되나요?
  3. Check it out on the map :
    강원도 고성의 산불 위치를 지도에서 보여줘

Additional information

Kakao Map API Key : This is set by default, so there is no need to modify it.

Map visualization : automatically opens in a web browser.

ID: 8dvreiu76f