🤖 AI Summary
Large language models (LLMs) exhibit data hallucination and lack real-time, verifiable access to financial information, limiting their reliability in financial analysis. Method: This paper proposes QuantMCP—a novel framework that pioneers the adaptation of the Model Context Protocol (MCP) to finance, establishing a standardized, secure, and controllable tool-calling protocol. QuantMCP enables LLMs to retrieve, verify, and inject structured, multi-source financial data in real time via compliant APIs (e.g., Wind, yfinance). It integrates tool-augmented reasoning with finance-specific prompt engineering to enhance factual grounding and interpretability. Contribution/Results: QuantMCP substantially mitigates hallucination and achieves high-precision querying and automated interpretation. Experiments demonstrate a 32.7% improvement in factual accuracy across financial tasks—including investment research Q&A and risk metric computation—establishing a scalable, auditable paradigm for trustworthy LLM deployment in financial decision-making.
📝 Abstract
Large Language Models (LLMs) hold immense promise for revolutionizing financial analysis and decision-making, yet their direct application is often hampered by issues of data hallucination and lack of access to real-time, verifiable financial information. This paper introduces QuantMCP, a novel framework designed to rigorously ground LLMs in financial reality. By leveraging the Model Context Protocol (MCP) for standardized and secure tool invocation, QuantMCP enables LLMs to accurately interface with a diverse array of Python-accessible financial data APIs (e.g., Wind, yfinance). Users can interact via natural language to precisely retrieve up-to-date financial data, thereby overcoming LLM's inherent limitations in factual data recall. More critically, once furnished with this verified, structured data, the LLM's analytical capabilities are unlocked, empowering it to perform sophisticated data interpretation, generate insights, and ultimately support more informed financial decision-making processes. QuantMCP provides a robust, extensible, and secure bridge between conversational AI and the complex world of financial data, aiming to enhance both the reliability and the analytical depth of LLM applications in finance.