Ahmed Hmeid Contact
All work 02 · Knowledge graph and MCP server

SeerahBook

The life of the Prophet ﷺ as a connected, sourced knowledge graph you can browse, or plug into your AI.

What it is

SeerahBook turns 100+ hours of transcribed lectures (Sheikh Yasir Qadhi's 101-part Seerah series) and the classical works they cite into a graph of people, events, tribes, places and Qur'an verses. Every claim links back to its source, and disputed material is labelled, not smoothed over. It is a website, iOS and Android apps, a public API and an open MCP server.

  • 526people, 376 of them companions
  • 422events, with phases and outcomes
  • 3,252sayings and actions, each sourced
  • 28MCP tools, open with no key

Key features

  • Storylines

    Curated, chaptered reading paths through the graph, with "The Life of the Prophet ﷺ" as the front page.

  • People and events

    Profiles with tribe, family, events and linked verses. Event pages with summaries, phases, outcomes and threaded first-person sayings and actions.

  • Connections

    Pick any two people and see how they were related, preferring family and marriage ties over looser links.

  • Map, tribes and Qur'an

    35 cities and 70 places on a map, 82 tribes, and 621 verses linked to the events and people they relate to.

  • A source on every claim

    Tap to see the citation and the original wording. Disputes are labelled by kind, and reconstructed wording is marked as such.

  • Connect your AI

    An open MCP server for Claude, ChatGPT and Gemini, plus a REST API with OpenAPI docs. No sign-up, no key.

In action

The home page presents the Seerah of the Prophet Muhammad ﷺ as an interconnected network.
The Life of the Prophet ﷺ storyline walks through twelve landmark chapters in reading order.
The Battle of Badr page threads 107 sourced sayings and actions into twelve phases.
Every saying has an "i" button that shows its lecture episode and the original wording from the classical source.
Abu Bakr RA's profile shows his connection to the Prophet ﷺ and his family ties.
Connections finds the multi-hop family path between any two people, here Abu Bakr RA and Abu Jahl.
The map plots the cities and places of the Seerah across Arabia and beyond.
The open MCP server connects Claude, ChatGPT or Gemini to the graph with one URL and no key.
On a phone, each event's sayings read as a threaded, sourced feed.
Person profiles on mobile show the Arabic name, collections and biography.
Connect your AI

Answers with a source, not from memory

Add SeerahBook to Claude, ChatGPT or Gemini as a connector, and your assistant answers from the graph with citations. This is a real response from the live server.

claude mcp add --transport http seerahbook https://seerahbook.com/api/mcp

How was Ali ibn Abi Talib related to Abu Sufyan?

find_relationship_path

{ "from_slug": "ali-ibn-abi-talib", "to_slug": "abu-sufyan-ibn-harb" }
connected
true
hop
Cousin → Abu Sufyan ibn Harb
note
"Third cousin; the closest relative to Abu Sufyan in Madinah at the time of his mission there."
source
Lecture, episode 76
Under the hood

The parts that aren't obvious

  1. An extraction pipeline written as agent skills

    Ingestion is a set of versioned Claude Code skills (about 4,300 lines): import, batch import, hygiene, validation and fact-check. A batch runs lecture by lecture, unattended, with a clean-up pass every five lectures.

  2. Validation against the source text

    A validation skill re-derives every fact on a person or event from the transcripts that cite it, in parallel and checkpointed so a full sweep can resume. A fact-check pass compares against the classical texts.

  3. Rules of respect enforced by the database

    A trigger stops any words of the Prophet ﷺ being marked as dramatised. Arabic names need a source URL. Avatars are featureless silhouettes.

  4. Weighted relationship paths

    Shortest paths over the family graph are weighted so that kinship and marriage beat social ties, which reads like an answer, not a technicality.

  5. A live schema with shipped apps

    Mobile apps already in stores read the same database, so migrations are additive only and renamed records keep their old addresses.

Built with

Web
  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • Leaflet
Mobile
  • Expo
  • React Native
  • EAS
  • Over-the-air updates
Data
  • Supabase Postgres
  • Full-text search
  • pg_trgm
AI and APIs
  • MCP server
  • REST + OpenAPI
  • Claude Code skills
Hosting
  • DigitalOcean App Platform
  • PostHog