# Interacting with IoT Data Spaces Using LLMs and the Model Context Protocol

**Authors:** Aristea Athanasopoulou, Nikos Fotiou, Avraam Chatzopoulos

PMC · DOI: 10.3390/s26041193 · 2026-02-12

## TL;DR

This paper introduces a system that allows humans to access IoT data using natural language by combining large language models with a data-sharing protocol.

## Contribution

The novel integration of LLMs and the Model Context Protocol enables natural-language access to IoT data spaces.

## Key findings

- The proposed architecture successfully provides natural-language access to IoT data spaces.
- Experimental results show high accuracy, including for complex prompts requiring advanced reasoning.

## Abstract

The rapid proliferation of the Internet of Things (IoT) systems has resulted in large volumes of heterogeneous data that are often difficult to access and exploit due to limited interoperability and complex application programming interfaces. Data spaces address these challenges by providing governed environments for secure and semantically interoperable data sharing, commonly relying on standardized interfaces such as the ETSI NGSI-LD API. While powerful, these interfaces are primarily designed for machine-to-machine interaction and remain difficult to use directly by human operators. In this paper, we propose an architecture that enables natural-language access to IoT data stored in a data space by integrating Large Language Models (LLMs) with the Model Context Protocol (MCP). Experimental results using fastMCP and OpenAI API to access a FIWARE-based data space demonstrate that our solution offers accuracy even for prompts that require advanced reasoning.

## Full-text entities

- **Genes:** CD46 (CD46 molecule) [NCBI Gene 4179] {aka AHUS2, MCP, MIC10, TLX, TRA2.10}
- **Diseases:** LLM (MESH:D007806), Hallucinations (MESH:D006212), injury to (MESH:D014947)
- **Chemicals:** CO2 (MESH:D002245), water (MESH:D014867), DPoP (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12943870/full.md

---
Source: https://tomesphere.com/paper/PMC12943870