Back to Home
MDalamin5 icon

End-to-End-Agentic-Ai-Automation-Lab

by MDalamin5

Overview

This MCP Server provides an API gateway for an AutoGen multi-agent system to interact with Notion via the Model Context Protocol (MCP), enabling AI-driven automation of Notion tasks and public exposure through ngrok.

Installation

Run Command
uvicorn 11-MCP-based-End-to-End-Industry-Grade-Products/src/api:app --host 0.0.0.0 --port 7001

Environment Variables

  • NOTION_API_KEY
  • NGROK_AUTH_TOKEN
  • OLLAMA_HOST
  • OLLAMA_MODEL

Security Notes

The primary security risk stems from exposing the FastAPI `/run` endpoint publicly via ngrok with `allow_origins=["*"]` (global CORS) and no apparent authentication. This allows anyone to send arbitrary tasks to the AI agent, which can then use its Notion tools (e.g., create, update, delete pages/databases). While API keys are env-loaded (good), the unauthenticated access to the agent's capabilities makes the system highly vulnerable to unauthorized Notion manipulation or data exfiltration. Additionally, `npx mcp-remote` executes external Node.js code, which carries an inherent risk if the source (https://mcp.notion.com/mcp) or the `npx` environment itself were compromised.

Similar Servers

Stats

Interest Score44
Security Score3
Cost ClassLow
Avg Tokens1000
Stars41
Forks21
Last Update2026-01-18

Tags

Agentic AIAutoGenNotion AutomationAPI GatewayMCP Integration