DEV Community

Baruna Abirawa
Baruna Abirawa

Posted on

Life Doc AI: Transforming Notion Journals into Cinematic Documentaries

Notion MCP Challenge Submission 🧠

This is a submission for the Notion MCP Challenge

What I Built

Life Doc AI is a Python-based intelligent web application that transforms your Notion workspaceβ€”specifically your Life Events and Journal Entriesβ€”into a beautifully structured, cinematic documentary of your personal journey.

Instead of looking at raw text or Kanban boards, Life Doc AI uses the Notion Model Context Protocol (MCP) to securely fetch your milestones and reflections, and relies on an AI Agent (powered by OpenAI GPT-4o with robust rule-based fallbacks) to process them. The result is a Premium Streamlit UI that presents:

  • πŸ“œ The Story of You: An AI-crafted, dramatic narrative of your life.
  • ⏳ Chronological Timeline: Analyzing the dots and connecting your journey.
  • πŸ“š Era Chapters: Automatically grouping your life into meaningful, thematic chapters.
  • πŸ’‘ Psychological Insights: Extracting hidden patterns, your most active years, and measuring your resilience.

Video Demo

Show us the code

Here is the complete open-source repository on GitHub!

🎬 Life Doc AI

Transform your Notion journals and life events into an AI-crafted cinematic documentary of your personal journey.

Life Doc AI connects to your Notion workspace via the Model Context Protocol (MCP), reads your life events and journal entries, and generates a beautiful documentary narrative β€” complete with timeline, chapters, and psychological insights.

✨ Features

  • πŸ”Œ Notion MCP Integration β€” Communicates with Notion through MCP protocol (JSON-RPC over HTTP)
  • πŸ“– Life Events Timeline β€” Chronological visualization of your milestones
  • πŸ“š Auto-Generated Chapters β€” Groups your life into meaningful eras
  • πŸ’‘ Psychological Insights β€” Analyzes patterns, most active years, and impact metrics
  • πŸ“œ AI Narrative β€” Crafts a cinematic story from your data (via OpenAI GPT-4 or built-in generator)
  • 🎨 Premium UI β€” Dark theme with glassmorphism, gradient accents, and smooth animations

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     MCP Protocol     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     Notion API    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Streamlit App    β”‚ ◄──────────────────► β”‚  Python
…

How I Used Notion MCP

The Notion MCP was the absolute core of this project, bridging the gap between my private workspace and my AI generation engine securely.

I built a custom Python MCP Server (mcp/mcp_server.py) that wraps the Notion REST API and exposes tools like notion_query_database over a JSON-RPC HTTP transport layer.
When the user clicks "Generate", the Streamlit UI (acting as the MCP Client) fires a remote procedure call to the local server. The MCP Server negotiates with Notion, retrieves the Life Events and Journal Entries databases, and returns a clean, structured JSON payload.

The Developer Journey

This project represents the culmination of my recent developer journey. A few weeks ago, I was figuring out static web portfolios. That evolved into mastering containerized FastAPI backends, and eventually wrestling with complex NLP text preprocessing errors.

When the Notion MCP Challenge was announced, I realized I could combine all those skills:

  • The backend architecture knowledge helped me build a robust, thread-safe Python MCP Server.
  • The NLP experience allowed me to craft intelligent prompts and structured LLM parsing.
  • The web development skills helped me design a "Glassmorphism" Dark Theme Premium UI in Streamlit (.streamlit/config.toml).

Life Doc AI doesn't just read data; it understands it. The Notion MCP unlocked the ability to treat Notion not just as a note-taking app, but as the engine of a person's life story.

Top comments (0)