quran_cloud_mcp_server
by marwanWaly
The quran_cloud_mcp_server is an MCP (Machine Comprehension Platform) server designed to help LLMs (Large Language Models) access the Quran API (https://alquran.cloud/api) and reduce hallucination when working with Quran text. It enables models to retrieve only the necessary data, improving efficiency and accuracy.
Last updated: N/A
What is quran_cloud_mcp_server?
This server acts as a middleware between LLMs and the alquran.cloud API, allowing the LLM to query and retrieve specific Quranic verses or information without having to process the entire text. This reduces hallucination and improves the accuracy of responses related to the Quran.
How to use quran_cloud_mcp_server?
- Clone the repository. 2. Set up a virtual environment. 3. Install the required Python packages. 4. Configure the OpenAI API key in a .env file. 5. Run the server using
python client.py
. 6. Optionally, connect the server to Claude desktop application by configuring theclaude_desktop_config.json
file with the server details.
Key features of quran_cloud_mcp_server
Reduces LLM hallucination with Quranic text
Provides contextual retrieval of Quranic data
Connects LLMs to the alquran.cloud API
Easy installation and setup
Integration with Claude desktop application
Use cases of quran_cloud_mcp_server
Answering questions about the Quran using LLMs
Developing Quranic study tools
Building AI-powered Islamic applications
Improving the accuracy of Quran-related information in LLM responses
Integrating Quranic knowledge into conversational AI agents
FAQ from quran_cloud_mcp_server
What is hallucination in LLMs?
What is hallucination in LLMs?
Hallucination refers to the generation of incorrect or nonsensical information by an LLM, especially when dealing with factual data.
Why is it important to reduce hallucination when working with Quran text?
Why is it important to reduce hallucination when working with Quran text?
Accuracy is crucial when dealing with religious texts like the Quran. Hallucination can lead to misinterpretations and inaccuracies, which can have significant consequences.
What is an MCP server?
What is an MCP server?
MCP stands for Machine Comprehension Platform. It acts as an intermediary between an LLM and a data source, allowing the LLM to retrieve specific information more efficiently.
How does this server reduce hallucination?
How does this server reduce hallucination?
By providing the LLM with only the relevant Quranic verses or information, the server reduces the likelihood of the LLM generating incorrect or fabricated content.
Can I use this server with other LLMs besides Claude?
Can I use this server with other LLMs besides Claude?
Yes, while the README provides instructions for Claude, the server can be adapted for use with other LLMs that support external API integration.