Sybil MCP
Monitors Notion databases in real-time to detect project risks, such as delayed engineering tasks overlapping with marketing campaign launches. It automatically generates alerts in a Notion Alert Center and allows users to perform on-demand risk analysis through Claude.
README
<p align="center"> <img src="logo.png" alt="Sybil MCP — Notion Risk Intelligence Server" width="400"/> </p>
🧠 Sybil MCP — Notion Risk Intelligence Server
Sybil is an MCP (Model Context Protocol) server that monitors your Notion databases in real time and detects financial risks: when an Engineering task is delayed and overlaps with a Marketing campaign launch, Sybil automatically creates an alert in your Notion Alert Center.
⚡ Quick Start
You don't need to run anything manually. Claude Desktop manages the server automatically.
- Make sure your
claude_desktop_config.jsonis configured (see Configuration section) - Open Claude Desktop — the server starts on its own in the background
- Ask Claude: "What risks does Sybil detect?"
⚠️ Never run
node index.jsmanually while Claude Desktop is open. It would create two server instances running in parallel and duplicate alerts in Notion.
🏗️ Architecture
┌─────────────────────────────────────────────────────────────┐
│ Claude Desktop │
│ │
│ ┌─────────────┐ MCP Protocol ┌────────────────────┐ │
│ │ Claude AI │ ◄──────────────► │ Sybil MCP Server │ │
│ │ (chat) │ (stdin/stdout) │ (node index.js) │ │
│ └─────────────┘ └────────┬───────────┘ │
│ │ │
└─────────────────────────────────────────────┼───────────────┘
│ HTTPS
┌─────────▼──────────┐
│ Notion API │
│ ┌──────────────┐ │
│ │ Engineering │ │
│ │ Database │ │
│ ├──────────────┤ │
│ │ Marketing │ │
│ │ Database │ │
│ ├──────────────┤ │
│ │ Alert Center │ │
│ │ Database │ │
│ └──────────────┘ │
└────────────────────┘
Components
| Component | Description |
|---|---|
| Claude Desktop | Manages the MCP server lifecycle automatically |
| Sybil MCP Server | Node.js process running in the background. Monitors Notion every 10 seconds |
| Notion API | Data source and destination for alerts. All via HTTPS |
.sybil-alerts.json |
Local file that remembers which alerts have already been created (persists across restarts) |
.sybil-lock |
Lock file that prevents two server instances from running simultaneously |
🔄 How It Works Internally
1. Automatic startup
When you open Claude Desktop, it reads claude_desktop_config.json and launches node index.js automatically. The server:
- Loads the alert history from
.sybil-alerts.json(if it exists) - Connects to Claude via MCP (stdin/stdout)
- Starts background monitoring immediately
2. Background monitoring every 10 seconds (no token usage)
The server runs a watch cycle every 10 seconds, completely independent from Claude:
Every 10s:
1. Read Engineering DB → look for tasks with status "Delayed"
2. Read Marketing DB → (in parallel with step 1)
3. For each delayed task × campaign:
- Is Launch Date <= Due Date? → risk detected
- Already in .sybil-alerts.json? → skip (no duplicates)
- Already exists in Notion (filter query)? → skip
- If not found: create comment + row in Alert Center
🔑 This cycle does NOT consume Claude tokens. It makes direct HTTP calls to the Notion API.
3. Tool call from Claude (tokens ARE used here)
When you ask Claude about risks, Claude calls the check_sybil_risk tool. This:
- Runs the same analysis cycle immediately on demand
- Returns a text summary to Claude
- Claude uses that text to respond to you
Only this step uses tokens (the processing of Claude's response in your conversation).
4. Anti-duplicate protection (3 layers)
To prevent duplicate alerts from being created in Notion:
| Layer | Mechanism | Purpose |
|---|---|---|
| Layer 1 | isProcessing flag |
Prevents two cycles from running concurrently |
| Layer 2 | .sybil-alerts.json (disk) |
Remembers alerts across server restarts |
| Layer 3 | Notion filter query | Confirms against Notion if the file doesn't have it |
⚙️ Configuration
The Claude Desktop config file is located at:
C:\Users\[YOUR_USER]\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"sybil": {
"command": "node",
"args": ["C:/Users/USUARIO/Desktop/sybil-mcp/index.js"],
"env": {
"NOTION_TOKEN": "your_token_here",
"ID_ENGINEERING": "your_engineering_database_id",
"ID_MARKETING": "your_marketing_database_id",
"ID_ALERTAS": "your_alert_center_database_id",
"ID_SALES": "your_sales_database_id"
}
}
}
}
Environment variables can also be defined in a
.envfile in the project folder.
🔧 How to Update the Code
After making changes to index.js:
- Save the file
- Fully quit Claude Desktop
- Right-click the system tray icon → Quit
- (Do not just close the window)
- Reopen Claude Desktop
- Claude will automatically start the server with the new code
✅ To confirm the new code is active, ask Claude: "Check risks with Sybil". You'll see no new duplicates appear in the Notion Alert Center.
📁 Project Files
sybil-mcp/
├── index.js ← Main MCP server
├── .env ← Environment variables (do not commit to git)
├── .sybil-alerts.json ← Alert history (auto-generated)
├── .sybil-lock ← Active process lock (auto-generated)
├── .gitignore
└── README.md
Auto-generated files
| File | Description | Can I delete it? |
|---|---|---|
.sybil-alerts.json |
History of already-created alerts | Yes, but the server will recreate alerts on next run |
.sybil-lock |
Indicates an active server instance | Only if the server crashed and left it behind |
🩺 Troubleshooting
Duplicate alerts still appearing in Notion?
- Make sure only ONE instance of Claude Desktop is open
- Fully restart Claude Desktop (Quit, don't just close the window)
- Delete
.sybil-alerts.jsonif it contains stale data from previous buggy sessions
No alerts appearing in Notion?
- Verify your
NOTION_TOKENhas access to all 3 databases - Confirm Engineering tasks have exactly the status
"Delayed" - Confirm Marketing campaigns have a
Launch Dateset
Claude says it can't find the check_sybil_risk tool?
- Restart Claude Desktop to reload the MCP server
- Verify the path in
claude_desktop_config.jsonis correct
💡 Does background monitoring consume tokens?
No. The setInterval running every 10 seconds makes direct HTTP calls to the Notion API. Claude is not involved in that process.
Tokens are only consumed when:
- You send a message to Claude in the chat
- Claude decides to call the
check_sybil_risktool to answer you
Background monitoring is completely free in terms of Claude tokens.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。