Skip to content
LangChain

HadithDB for LangChain

io.github.iadnanmukhtar/hadithdb

Search and retrieve Quran ayahs, tafsir commentary, hadith, and detailed hadith records.

client:LangChain transport:streamable-http

Install HadithDB in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "hadithdb": {
            "transport": "streamable_http",
            "url": "https://hadithunlocked.com/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

HadithDB in other clients