Bridging LLM and GIS via Model Context Protocol for Conversational Flood Data Analysis
2026-09-02 , Conference Management Room6

This study proposes a Conversational GIS system that integrates LLM with MCP, allowing non-technical users to access and analyze geospatial data through natural language, supporting flood risk analysis and lowering technical barriers for GIS interaction.


Currently, geographic information systems (GIS) are commonly developed and provided through Application Programming Interfaces (APIs). This approach allows different systems to access and exchange spatial data in a flexible way. However, using APIs usually requires knowledge of programming, API requests, and an understanding of spatial data structures and geospatial analysis processes. As a result, accessing and using GIS data is still difficult for general users, data analysts, or policy makers who do not have a background in software development.

This study proposes an approach to integrate Large Language Models (LLMs) with GIS using the Model Context Protocol (MCP) architecture to create a conversational interface for accessing, searching, and analyzing geospatial data. The goal is to change the traditional way of interacting with GIS from direct API calls to communication through natural language.

The proposed system architecture consists of three main layers.
1. Conversational Layer – This layer uses an LLM to receive and interpret user questions written in natural language and understand the context of geospatial-related queries.
2. MCP Integration Layer – This layer acts as an intermediary that manages context and converts user questions into commands that can call geospatial tools or services. It uses the MCP communication structure to connect the LLM with external services in a systematic way.
3. Geospatial Processing Layer – This layer includes APIs and geospatial processing modules for spatial data retrieval, spatial statistics calculation, analysis, and flood risk assessment.

In this study, several geospatial datasets related to flood analysis are integrated into the system. These datasets include Digital Elevation Model (DEM) data for terrain analysis, rainfall data, soil data, and historical flood data for flood risk assessment and identifying potential flood areas. In addition, population and household data are used to evaluate the potential impact on communities and infrastructure. Other supporting spatial datasets such as administrative boundaries, road networks, schools, and hospitals are also included to provide contextual analysis of flood-prone areas.

With this architecture, users can ask questions using natural language, such as identifying flood-risk areas, retrieving population or infrastructure information, specifying geographic coordinates, or obtaining statistical data for a specific area. The system interprets the question, analyzes its context, and converts it into appropriate geospatial processing tasks. The results are then returned as structured data such as GeoJSON or statistical information, which can be further used in GIS systems or map visualization platforms.

The proposed approach reduces the complexity of accessing geospatial data and lowers the technical barriers for users. It also improves interaction with GIS analysis systems through natural language. Furthermore, this work demonstrates the potential of integrating artificial intelligence with geospatial infrastructure to support the concept of Conversational GIS, which transforms traditional API-based geospatial services into interactive systems that allow users to communicate with spatial data more naturally. This approach may represent an important direction for future geospatial platforms.


Level of technical complexity: 1 - beginner Indicate what is (are) the open source project(s) essential in your talk:
  • chainlit
  • mongodb
  • ollama
I make my conference contribution available under the CC BY 4.0 license. The conference contribution comprises the abstract, the text contribution for the conference proceedings, the presentation materials as well as the video recording and live transmission of the presentation:

A Geospatial Data Engineer, passionate about writing clean, efficient code and continuously exploring new technologies to improve my craft.