Sybil MCP

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.

Category
Visit Server

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.

  1. Make sure your claude_desktop_config.json is configured (see Configuration section)
  2. Open Claude Desktop — the server starts on its own in the background
  3. Ask Claude: "What risks does Sybil detect?"

āš ļø Never run node index.js manually 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 .env file in the project folder.


šŸ”§ How to Update the Code

After making changes to index.js:

  1. Save the file
  2. Fully quit Claude Desktop
    • Right-click the system tray icon → Quit
    • (Do not just close the window)
  3. Reopen Claude Desktop
  4. 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.json if it contains stale data from previous buggy sessions

No alerts appearing in Notion?

  • Verify your NOTION_TOKEN has access to all 3 databases
  • Confirm Engineering tasks have exactly the status "Delayed"
  • Confirm Marketing campaigns have a Launch Date set

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.json is 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_risk tool to answer you

Background monitoring is completely free in terms of Claude tokens.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured