Autonomous Content Publishing & Imagery Command Center built for the Notion MCP Challenge.
DevRel Empire turns Notion into a headless, autonomous publishing engine. By leveraging the official Notion MCP Server, it transforms simple bullet points into comprehensive multi-platform articles with AI-generated cover images, social drafts (Twitter/LinkedIn), and zero-click distribution.
This project is built to demonstrate the power of the Model Context Protocol (MCP) in a cloud-native, serverless environment.
- Native Tool Usage: Interacts with Notion using
API-post-searchfor intelligent page discovery,API-patch-pagefor status-driven state management, andAPI-create-a-commentfor cross-platform link reporting. - Zero-Trust Auth: Runs the
@notionhq/notion-mcp-serverpackage natively inside a Google Cloud Run container, dynamically injecting credentials per-request over a secure Stdio transport. - Protocol Depth: Implements a hybrid architecture using full JSON-RPC 2.0 to the MCP server for logic, and the standard REST SDK for granular multi-block structural updates (like appending AI drafts).
- Two-Stage Autonomous Workflow:
- Phase 1 (Drafting): Set status to
Generate AI Content. Gemini 2.5 expands your notes and Imagen 3 generates a custom cover image hosted on Google Cloud Storage (GCS). Results appear directly in your Notion page. - Phase 2 (Publishing): Review the draft and flip status to
Publish Now. The system instantly distributes your content to DEV.to and Hashnode, and leaves a comment with the live links.
- Phase 1 (Drafting): Set status to
- AI-Powered Imagery: Fully automated cover image generation using Imagen 3, with high-performance hosting on GCS.
- SaaS Management Dashboard: A premium, glassmorphism-style React dashboard (Vite/TypeScript) to securely manage your API keys and monitor the "Empire" status.
- Notion MCP: Native protocol integration for discovery and state orchestration.
- Google Gemini 2.5 Flash: Text expansion and social media drafting.
- Imagen 3: High-fidelity AI cover image generation.
- Google Cloud Run: Serverless compute for the backend "Command Center".
- Google Cloud Scheduler: Automated polling (1-min intervals).
- Vite & TypeScript: Premium management UI.
You will need:
- Notion API Token (
NOTION_API_TOKEN) - Notion Database ID (
NOTION_DATABASE_ID) - Google Gemini / Vertex AI Key (
GEMINI_API_KEY) - DEV.to/Hashnode API Keys (
DEV_API_KEY,HASHNODE_API_KEY) - Google Cloud Storage Bucket (
GCS_BUCKET_NAME)
- Install Dependencies:
npm install - Notion Template: Duplicate our Official Notion Template to get the necessary properties (
Status,Platforms,Title). - Dashboard Access: Access the live SaaS dashboard to input your keys:
https://devrel-empire-788395886100.us-central1.run.app - Autonomous Polling: Ensure Google Cloud Scheduler is configured to hit the
/executeendpoint URL of your Cloud Run service.
MIT License. Built with passion for the Notion MCP Hackathon.