DEV Community

Yash Sonawane
Yash Sonawane

Posted on

NotionOps AI โ€” I Built an AI DevOps Brain That Lives Inside Notion ๐Ÿง 

Notion MCP Challenge Submission ๐Ÿง 

This is a submission for the Notion MCP Challenge


What I Built

Every developer knows this pain:

Itโ€™s 11 PM. A production bug hits.

You jump between GitHub โ†’ Jira โ†’ Slack โ†’ Notion โ†’ Terminalโ€ฆ
Five tools. Zero clarity.

This constant context switching is a hidden tax on every engineering team.

So I built NotionOps AI โ€” an AI-powered DevOps brain that lives inside Notion.

๐Ÿ‘‰ It automatically connects:

  • GitHub activity
  • AI analysis (Claude)
  • Notion workspace

And turns them into a single source of truth.


What It Does

  • Every commit, PR, and issue โ†’ automatically becomes a task
  • Critical issues โ†’ instantly become incidents
  • Deployments โ†’ logged without manual work
  • Daily standups โ†’ generated automatically

Notion becomes your teamโ€™s central nervous system. AI does the rest.


Live Demo Flow

  1. Developer pushes: hotfix: null pointer in payment gateway
  2. GitHub webhook triggers
  3. AI detects CRITICAL severity
  4. A P0 incident page is created in Notion
  5. A high-priority task is generated
  6. AI standup updates automatically next morning

๐Ÿ’ก Result:
No manual updates. No missed incidents. No confusion.


Show us the code

๐Ÿ‘‰ GitHub Repository:
https://github.com/yashsonawane25/NotionOps-AI

Repo includes:

  • MCP server (10 tools)
  • FastAPI webhook system
  • AI analysis engine
  • Notion integration layer
  • Local simulation script

How I Used Notion MCP

Notion MCP is the core backbone of this system โ€” not just an add-on.

I designed a 4-database architecture inside Notion:


1. Tasks Database

  • Auto-created from GitHub events
  • Includes priority, category, and status
  • No manual input required

2. Deployments Database

  • Tracks every deployment
  • Stores environment, version, and status

3. Incidents Database

  • Auto-created for critical issues
  • Includes severity (P0/P1), description, and logs

4. AI Digest Database

  • Daily standups generated automatically
  • AI reads tasks โ†’ writes summary

MCP Tools (Core Innovation)

I exposed 10 tools via MCP, including:

  • analyze_commit
  • analyze_pr
  • create_task
  • log_incident
  • log_deployment
  • generate_standup
  • query_project
  • process_github_push

๐Ÿ”ฅ Killer Feature: process_github_push

One function does everything:

โžก๏ธ Analyze commit
โžก๏ธ Create task
โžก๏ธ Detect severity
โžก๏ธ Trigger incident (if critical)


๐Ÿง  AI Query Feature (Game Changer)

You can literally ask:

โ€œWhat are our highest priority tasks?โ€

And get a real-time answer from Notion.

No dashboards. No filters. Just ask.


Architecture

GitHub Webhook
      โ”‚
      โ–ผ
FastAPI Server
      โ”‚
      โ–ผ
Claude AI Analysis
      โ”‚
      โ–ผ
MCP Server
      โ”‚
      โ–ผ
Notion API
Enter fullscreen mode Exit fullscreen mode

Tech Stack

  • Python
  • FastAPI
  • MCP SDK
  • Claude API (Anthropic)
  • Notion API
  • Pydantic

Running It Yourself

git clone https://github.com/yashsonawane25/NotionOps-AI
cd NotionOps-AI
pip install -r requirements.txt
cp .env.example .env

# Add your API keys

uvicorn webhook_server:app --reload --port 8000

# Run simulation
python test_simulate.py
Enter fullscreen mode Exit fullscreen mode

What I Learned

  • MCP forces clean, modular design
  • Async processing is critical for webhooks
  • Notion works surprisingly well as a DevOps backend
  • Simulation scripts save massive dev time

Whatโ€™s Next

  • Bidirectional sync (Notion โ†’ GitHub)
  • AI-based velocity tracking
  • Weekly executive reports
  • On-call automation

Final Thought

I didnโ€™t want to build a demo.

I built something I would actually use in a real DevOps team.

NotionOps AI = GitHub + AI + Notion โ†’ Fully automated DevOps workflow

The best DevOps system is the one that worksโ€ฆ even when you donโ€™t.


Credits

Built by Yash Sonawane
B.Tech โ€” GH Raisoni College of Engineering & Management, Pune

GitHub: https://github.com/yashsonawane25


Tags

notion mcp devops ai python hackathon automation github claude

Top comments (0)