turath-mcp

turath-mcp

Access over 8,500 classical Arabic and Islamic books with full-text search, page-level reading, and author biographies through the turath.io API.

Category
访问服务器

README

turath-mcp

MCP server for turath.io — access thousands of classical Arabic and Islamic books via the Model Context Protocol.

Built on the public turath.io API, maintained by Nuqayah.

Features

  • 8,500+ books — classical Islamic texts: tafsir, hadith, fiqh, usul, Arabic language, biography, history, and more
  • No API key required — zero configuration, works out of the box
  • Full-text search — search across the entire catalog by keyword, author, category, or century
  • Page-level reading — retrieve any page from any book as plain text (with chapter headings)
  • Chapter navigation — every book includes a complete index of chapters with page numbers
  • Author biographies — comprehensive metadata including full name, death year, and biographical notes

Tools

turath_get_book_info

Get book metadata, chapter index, and page map.

Parameter Required Description
book_id ✅ Turath.io book ID (e.g., 9953 for al-Risala al-Qushayriyya)

Example:

turath_get_book_info({ book_id: 9953 })

turath_get_page

Get the text content of a specific page.

Parameter Required Description
book_id ✅ Turath.io book ID
page ✅ Printed page number to retrieve

Example:

turath_get_page({ book_id: 9953, page: 20 })

turath_search

Search books in the turath.io catalog by keyword.

Parameter Required Description
query ✅ Search keyword(s) in Arabic or English
category ❌ Filter by category ID
author ❌ Filter by author ID
book ❌ Restrict search to a specific book ID
page ❌ Paginate results (page number)

Example:

turath_search({ query: "الرسالة" })

turath_get_author

Get author biography and metadata.

Parameter Required Description
author_id ✅ Turath.io author ID (e.g., 125 for Abd al-Karim al-Qushayri)

Example:

turath_get_author({ author_id: 125 })

turath_get_book_file

Get full book JSON dump. Only available for books that have a JSON file on the CDN.

Parameter Required Description
book_id ✅ Turath.io book ID

Requirements

  • Node.js >= 22
  • An MCP-compatible client (OpenCode, Claude Code, Copilot, etc.)

Installation

Option 1: Clone & run

git clone https://github.com/opin22/turath-mcp
cd turath-mcp
npm install
npm start

Option 2: Use with OpenCode

Add to your opencode.json:

{
  "mcp": {
    "turath-mcp": {
      "type": "local",
      "command": ["npx", "--yes", "tsx", "/path/to/turath-mcp/src/index.ts"]
    }
  }
}

Option 3: Use with Claude Code / other MCP clients

Configure it in your MCP settings file:

{
  "mcpServers": {
    "turath-mcp": {
      "command": "npx",
      "args": ["--yes", "tsx", "/path/to/turath-mcp/src/index.ts"]
    }
  }
}

How to find book IDs

  1. Go to app.turath.io
  2. Search for a book
  3. Open a book and look at the URL: https://app.turath.io/book/9953
  4. The number (9953) is the book ID

Alternatively, use turath_search to find books by name and get their IDs from the results.

Ethics & Rate Limiting

This server wraps a public, free API. Please be respectful:

  • Avoid hammering the API with concurrent requests
  • Cache results when possible
  • If you build something that generates significant traffic, consider self-hosting

Data Source

All content is served from turath.io, a project by Nuqayah. The books are digitized classical Islamic texts — the vast majority are public domain.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选