DEV Community

Onatade Abdulmajeed
Onatade Abdulmajeed

Posted on

Building an AI Blog Generator with Node.js, OpenAI & Notion MCP

Notion MCP Challenge Submission 🧠

This is a submission for the Notion MCP Challenge


What I Built

I built an AI-powered Blog Generator that takes a user’s topic, generates a structured blog outline using OpenAI, and automatically stores the result inside a Notion database.

The system works as a CLI tool built with Node.js and integrates both OpenAI API and Notion API to automate content creation workflows.

This project demonstrates how AI can be combined with productivity tools to remove manual writing effort and streamline content generation.


Video Demo

Watch the full demo here:

https://youtu.be/0e8DcL7EjuY


GitHub Repository

https://github.com/Spider1201/AI-Blog


How I Used Notion MCP

I used Notion as the final output layer of my AI system.

Here’s how it works:

  • After generating a blog outline using OpenAI, the content is processed in Node.js
  • A new page is created inside a structured database
  • Properties like title and status are automatically filled

This effectively turns Notion into an AI-powered content storage system.

What this unlocks:

  • Automated documentation
  • AI-powered content pipelines
  • Structured knowledge storage
  • Zero manual copy-paste workflow

Tech Stack

  • Node.js
  • OpenAI API (GPT-4o-mini)
  • Notion MCP
  • dotenv
  • prompt-sync

Key Features

  • AI-generated blog outlines
  • Automatic Notion page creation
  • CLI-based interaction
  • Clean structured output system

What I Learned

This project helped me understand:

  • How to integrate multiple APIs in a real workflow
  • Prompt engineering for structured AI outputs
  • Working with Notion as a backend database
  • Handling API limitations and data chunking
  • Building automation tools with Node.js

Conclusion

This project shows how AI can transform simple workflows into automated systems. By combining OpenAI with Notion, I was able to build a tool that turns ideas into structured content instantly.

Excited to keep improving this and building more AI-powered tools

Top comments (0)