Sermons MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Sermons MCP Server
Lets an AI assistant browse, search and read Friday khutbas from the UAE General Authority of Islamic Affairs and Endowments (Awqaf), 2015 - to date, through the open JSON API of Sermons by Islamic Network. It is a Model Context Protocol (MCP) server built with FastMCP.
Once connected you can ask things like:
"What was the latest khutba about? Give me the main points."
"Search the khutbas for anything about Dhul Hijjah, then tell me what the khutba says about the ten days."
"List the khutbas from July 2021."
"What advice did the khutba on Imam Malik give about seeking knowledge?"
The server has no AI of its own. It fetches the sermon text, and your AI assistant summarizes it and answers your questions from that text.
Answers are generated by an AI from the sermon text. Check the original khutba, and ask a qualified scholar for religious rulings.
Tools
Tool | What it does |
| Full text of the most recent Friday khutba |
| Titles, dates and available languages for a year or month. |
| Full text of one khutba. |
| Searches khutba titles across all years by default |
language is en, ar or ur. PDFs are not available in every language for every khutba. When one is
missing, the tool says which languages are.
Related MCP server: hadith-mcp
How it works
The API is a set of static JSON files listing each khutba and its files (mp3, doc, pdf) on a CDN.
The server finds the khutba in that index, downloads the PDF, and extracts the text with
pypdf.The text goes back to your AI assistant.
Nothing is stored: no sermon text, PDFs or audio are kept in this repository or on the server.
Quick start
git clone https://github.com/mailmirza/sermons-mcp-server.git
cd sermons-mcp-server
python -m venv venv
source venv/bin/activate # Windows PowerShell: .\venv\Scripts\Activate.ps1
pip install -r requirements.txt
python server.py # stdio mode: it waits for an MCP clientTest it with the MCP Inspector. Let the Inspector launch the server, and do not type into the server's own terminal:
npx @modelcontextprotocol/inspector python server.pyUse it from an MCP client
Local (stdio). For Claude Desktop, add this to claude_desktop_config.json (use full paths; on Windows
use venv\\Scripts\\python.exe with double backslashes):
{
"mcpServers": {
"sermons": {
"command": "/full/path/to/venv/bin/python",
"args": ["/full/path/to/sermons-mcp-server/server.py"]
}
}
}Over the network (HTTP). Run with MCP_TRANSPORT=http. Claude's custom connector dialog expects an
https:// URL, so put the server behind a reverse proxy with a certificate. See
docs/deployment.md. Please deploy your own copy rather than pointing many people at one.
Configuration
Variable | Meaning |
|
|
| Bind address for HTTP, default |
| HTTP port, default |
Limits
search_khutbasmatches titles only. Searching inside sermon text would mean downloading every PDF.Each search makes one request per year, so a full-archive search is about a dozen requests.
The only source today is UAE Awqaf. The API has no data for 2017.
PDF text extraction is imperfect, especially for Arabic with diacritics and mixed Arabic and English text. The English text read cleanly in testing.
Lessons learned
The same API returns different JSON shapes. A month is
{"sermons": [...]}, but a year is a list of per-month batches:[{"sermons": [...]}, {"sermons": [...]}, ...]. Parsing it as one flat list silently returned nothing. Look at real responses before writing parsing code.stdio and
print()do not mix. stdout carries the protocol; print tosys.stderrand never type into the terminal of a running stdio server. Inspector shows stderr in its Console panel.Docstrings are instructions. FastMCP turns them into the schema the model reads.
Isolate bugs with a tiny script. A 20-line standalone script that fetched one year and printed the titles found the parsing bug faster than debugging through the MCP layer.
Windows notes. The command is
python, notpython3. IfActivate.ps1is blocked, runSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned.
Data attribution
Sermon data comes from the open API of Sermons by Islamic Network, and the PDFs from its CDN. The khutbas are published by the General Authority of Islamic Affairs and Endowments (UAE), and copyright remains with the source.
This project is not affiliated with or endorsed by Islamic Network or the UAE Awqaf.
Keep attribution if you build on it, check the API's terms, and be considerate with request volume.
License
The code is MIT. The sermons themselves are not covered by it.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and cite UAE law (federal, Dubai, Abu Dhabi, DIFC, ADGM) with verifiable citations.
Read-only UAE legal information: official routes, practical guides, free tools and FAQs.
Ayatollah Khamenei corpus: fatwas, lectures, knowledge graph. Arabic/Persian. Research access.
Semantic search across 6,236 Quran verses and 12,416 authentic Hadiths for Islamic guidance.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI assistants with comprehensive access to Islamic resources including Quran verses with translations, Tafsir commentary, Hadith collections, and audio recitations. Enables users to explore Islamic texts, get daily inspiration, and access scholarly interpretations through natural language queries.1829 npm10MIT
- AlicenseNot gradedqualityDmaintenanceEnables fetching and searching canonical hadith texts (Arabic and English) with cross-references and citation-safe URLs for assistants, built on FastMCP.3GPL 3.0
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to retrieve canonical Quran text, translations, scholarly tafsir, full-text search, and word-level morphology from verified Quran data.-
- AlicenseAqualityCmaintenanceEnables an assistant to retrieve Quranic verses in Uthmani Arabic with any of hundreds of translations, look up and search ten major hadith collections, and compute prayer times offline from the sun's position. Every quotation comes back with its exact reference so answers can be verified rather than paraphrased from memory.7MIT