# Model Context Contracts - MCP-Enabled Framework to Integrate LLMs With Blockchain Smart Contracts

arXiv: https://arxiv.org/abs/2510.19856 · HTML: https://mlsanity.com/paper/2510.19856/

## Key facts

- Cited by 10 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 21 Oct 2025.

## Built on by (most cited first, 10 of 10)

- [A Practical Guide for Designing, Developing, and Deploying Production-Grade Agentic AI Workflows](https://mlsanity.com/paper/2512.08769/) (2025)
- [Towards Responsible and Explainable AI Agents with Consensus-Driven Reasoning](https://mlsanity.com/paper/2512.21699/) (2025)
- [ASTRIDE: A Security Threat Modeling Platform for Agentic-AI Applications](https://mlsanity.com/paper/2512.04785/) (2025)
- [A Practical Guide to Agentic AI Transition in Organizations](https://mlsanity.com/paper/2602.10122/) (2026)
- [Flowr -- Scaling Up Retail Supply Chain Operations Through Agentic AI in Large Scale Supermarket Chains](https://mlsanity.com/paper/2604.05987/) (2026)
- [Think Before You Act -- A Neurocognitive Governance Model for Autonomous AI Agents](https://mlsanity.com/paper/2604.25684/) (2026)
- [Towards an Agent-First Web: Redesigning the Web for AI Agents](https://mlsanity.com/paper/2606.19116/) (2026)
- [An Agentic AI Control Plane for 6G Network Slice Orchestration, Monitoring, and Trading](https://mlsanity.com/paper/2602.13227/) (2026)
- [Train the Trainers -- An Agentic AI Framework for Peer-Based Mental Health Support in Battlefield Environments](https://mlsanity.com/paper/2605.16269/) (2026)
- [BaseCamp --- An Agentic AI Framework for Automating DNA Sequencing Data Pipelines](https://mlsanity.com/paper/2609.28557/) (2026)

## Abstract (arXiv)

In recent years, blockchain has experienced widespread adoption across various industries, becoming integral to numerous enterprise applications. Concurrently, the rise of generative AI and LLMs has transformed human-computer interactions, offering advanced capabilities in understanding and generating human-like text. The introduction of the MCP has further enhanced AI integration by standardizing communication between AI systems and external data sources. Despite these advancements, there is still no standardized method for seamlessly integrating LLM applications and blockchain. To address this concern, we propose "MCC: Model Context Contracts" a novel framework that enables LLMs to interact directly with blockchain smart contracts through MCP-like protocol. This integration allows AI agents to invoke blockchain smart contracts, facilitating more dynamic and context-aware interactions between users and blockchain networks. Essentially, it empowers users to interact with blockchain systems and perform transactions using queries in natural language. Within this proposed architecture, blockchain smart contracts can function as intelligent agents capable of recognizing user input in natural language and executing the corresponding transactions. To ensure that the LLM accurately interprets natural language inputs and maps them to the appropriate MCP functions, the LLM was fine-tuned using a custom dataset comprising user inputs paired with their corresponding MCP server functions. This fine-tuning process significantly improved the platform's performance and accuracy. To validate the effectiveness of MCC, we have developed an end-to-end prototype implemented on the Rahasak blockchain with the fine-tuned Llama-4 LLM. To the best of our knowledge, this research represents the first approach to using the concept of Model Context Protocol to integrate LLMs with blockchain.
