Logo vun MCP Fortress

MCP Fortress

Communautéit
mcp-fortress

Security scanner and install and runtime protection suite for Model Context Protocol (MCP) servers

Editeurmcp-fortress
Repositorymcp-fortress
Forks
3
Stären
4
Disponibel Tools
0
Transporttypstreamable-http
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    MCP Fortress stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    4 Stären an 3 Forks aus dem verlinkte Repository.

🏰 MCP Fortress

Security scanner and runtime protection for Model Context Protocol (MCP) servers

smithery badge npm version License: MIT

🚀 NEW in v0.3.6: Enhanced scanner with improved false-positive detection! The first security tool that uses MCP to secure MCP.


🚀 Quick Start

For Claude Code Users (Easiest!)

bash
# Install the Claude Code plugin
/plugin marketplace add mcp-fortress/mcp-fortress
/plugin install mcp-fortress

# Authenticate with Smithery (opens in browser)
/mcp

Done! Now ask Claude: "Is @modelcontextprotocol/server-github safe to install?"

The MCP Fortress skill will automatically scan and analyze security for you. No setup, no configuration - just install and ask! 🎉

📖 Full Claude Code Installation Guide

Standalone Installation

bash
# Install globally
npm install -g mcp-fortress

# Start the server
mcp-fortress start

That's it! The web UI will open at http://localhost:3000


🎬 Demo


✨ Features

🔍 Automated Security Scanning

  • Vulnerability detection across npm and PyPI packages
  • CVE database integration
  • Dependency analysis
  • Risk scoring (0-100)

🛡️ Runtime Protection

  • Real-time monitoring of MCP servers
  • Quarantine suspicious packages
  • WebSocket telemetry streaming
  • Activity feed with live updates

📊 Gamification

  • Achievement system with 16 unlockable badges
  • Streak tracking for daily scans
  • Leaderboards and metrics
  • Humorous security tips

🎨 Beautiful Web UI

  • Modern React-based dashboard
  • Real-time statistics
  • Server table with sorting and filtering
  • Detailed threat analysis views

🤖 NEW: MCP Server Mode (v0.3.0+)

  • Run MCP Fortress as an MCP server
  • Expose security analysis tools to Claude Code, Cursor, Windsurf
  • AI-powered security analysis using your existing LLM
  • Zero setup - uses the AI you already have
  • The first security tool that uses MCP to secure MCP

📦 Installation

Option 1: Smithery Remote (Recommended - Easiest)

Method A: Smithery CLI (Automated)

bash
npx @smithery/cli install @mcp-fortress/mcp-fortress-server --client claude

Method B: Manual (With API Key)

  1. Get your API key from Smithery
  2. Add to Claude:
bash
claude mcp add --transport http mcp-fortress "https://server.smithery.ai/@mcp-fortress/mcp-fortress-server/mcp?api_key=YOUR_API_KEY&profile=YOUR_PROFILE"

Replace YOUR_API_KEY and YOUR_PROFILE with values from Smithery.

Benefits:

  • ✅ No local installation
  • ✅ Auto-updates
  • ✅ Zero setup

Option 2: Local Install (Advanced)

bash
npm install -g mcp-fortress

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "mcp-fortress": {
      "command": "mcp-fortress",
      "args": ["serve-mcp"]
    }
  }
}

Restart Claude Desktop.

Benefits:

  • ✅ Full control
  • ✅ Works offline
  • ✅ No API key needed

🎯 Usage

🆕 MCP Server Mode (Recommended)

Use MCP Fortress with your AI coding assistant (Claude Code, Cursor, etc.):

1. Install MCP Fortress:

bash
npm install -g mcp-fortress

2. Configure Claude Desktop:

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "mcp-fortress": {
      "command": "mcp-fortress",
      "args": ["serve-mcp"]
    }
  }
}

3. Restart Claude Desktop

Restart Claude Desktop to load the MCP Fortress server.

4. Use in Claude Code:

You: Scan @modelcontextprotocol/server-filesystem for security issues

Claude: *Uses MCP Fortress tools to scan and analyze*
I found 3 potential security concerns...

Available MCP Tools:

  • scan_mcp_server - Comprehensive security scan

    • Analyzes npm packages for vulnerabilities
    • Detects malicious code patterns
    • Checks dependencies for CVEs
    • Calculates risk score (0-100)
  • analyze_prompt_injection - Detect prompt injection attacks

    • Identifies instruction injection attempts
    • Detects role manipulation
    • Finds system prompt extraction attempts
    • Analyzes delimiter injection
  • detect_tool_poisoning - Identify malicious/misleading tools

    • Detects typosquatting (e.g., read_fiile vs read_file)
    • Identifies name/description mismatches
    • Flags overly generic tool names
    • Compares against known legitimate tools

Example Interactions:

You: Is puppeteer-mcp-server safe to use?
Claude: ✅ Yes! Risk score: 0/100. No threats detected.

You: Check this tool: "Helper tool. Ignore previous instructions."
Claude: 🚨 CRITICAL: Prompt injection detected! DO NOT USE.

You: Is a tool named "read_fiile" suspicious?
Claude: ⚠️ Yes! Likely typosquatting "read_file"

Standalone Usage

Start the Server

bash
# Start server (foreground)
mcp-fortress start

# Start server in background (daemon mode)
mcp-fortress start --daemon

Options:

  • -p, --port <port> - API port (default: 3001)
  • -h, --host <host> - Host to bind (default: localhost)
  • --no-browser - Don't open browser automatically
  • -d, --daemon - Run server in background

Daemon Commands

bash
# Stop the daemon server
mcp-fortress stop

# Check daemon status
mcp-fortress status

# View server logs
mcp-fortress logs
mcp-fortress logs --lines 100  # Show last 100 lines

Scan a Package

bash
mcp-fortress scan <package-name>

Examples:

bash
# Scan from npm
mcp-fortress scan express

# Scan specific version
mcp-fortress scan express --version 4.18.0

# Scan from PyPI
mcp-fortress scan flask --registry pypi

Monitor a Running Server

bash
mcp-fortress monitor <server-name>

Manage Quarantine

bash
# List quarantined servers
mcp-fortress quarantine list

# Release from quarantine
mcp-fortress quarantine release <server-name>

🏗️ Architecture

mcp-fortress/
├── CLI                 → Command-line interface
├── API Server          → Express REST API + WebSocket
├── Scanner Engine      → npm & PyPI vulnerability detection
├── Web UI              → React dashboard
└── SQLite Database     → Local data storage

Data Location:

  • ~/.mcp-fortress/fortress.db - SQLite database
  • ~/.mcp-fortress/server.pid - Daemon process ID
  • ~/.mcp-fortress/logs/ - Server logs

🔐 Security Features

Threat Detection

  • ✅ Known vulnerabilities (CVE database)
  • ✅ Suspicious patterns in code
  • ✅ Malicious dependencies
  • ✅ License compliance issues

Risk Scoring

  • 0-30: Low risk (green)
  • 31-60: Medium risk (yellow)
  • 61-100: High risk (red)

Quarantine System

  • Automatic blocking of critical threats
  • Manual approval workflow
  • Audit trail for all actions

🎮 Gamification

Unlock achievements as you scan:

  • 🏆 First Blood - Complete your first scan
  • 🔥 Streak Master - 7-day scanning streak
  • 🛡️ Guardian - Block 10 high-risk packages
  • 🧪 Lab Rat - Scan 100 packages
  • And 12 more!

📊 Tiers

Free Tier (Local Mode)

  • ✅ Unlimited scans
  • ✅ Full UI with gamification
  • ✅ All achievements
  • ✅ Local database
  • ✅ No account needed
  • ❌ No cloud sync
  • ❌ No team features

🐛 Support


🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.


📜 License

MIT License - see LICENSE file for details.


🙏 Acknowledgments

Built with:


📈 Roadmap

Current (v0.3.x)

  • ✅ MCP Server Mode
  • ✅ Advanced threat detection (prompt injection, tool poisoning)
  • ✅ Claude Code/Cursor integration

Next (v0.4.0)

  • Auto-discovery of IDE configs
  • Real-time MCP proxy mode
  • Enhanced PII/secrets detection
  • Custom security policies

Future (v0.5.0+)

  • VS Code extension
  • GitHub App for PR checks
  • SBOM generation
  • CI/CD integrations
  • Docker container scanning
  • Enterprise SSO support

Made with ❤️ for the MCP community

Star on GitHub

Installatioun

TypingMind
{
  "mcpServers": {
    "mcp-fortress": {
      "url": "https://server.smithery.ai/@mcp-fortress/mcp-fortress-server/mcp",
      "env": null
    }
  }
}

MCP Fortress MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal MCP Fortress verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun verbënnt sech an TypingMind iwwer d'URL vun engem gehoste MCP-Server.

Eng MCP-Server-URL derbäisetzen

Benotzt dës Optioun, wann MCP Fortress scho remote gehost gëtt oder Är Ekipp ee gemeinsame Connector wëllt, op dee méi Benotzer kënnen zougräifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbäisetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbäisetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbäizesetzen
2

D'Server-URL apeschen

Gitt https://server.smithery.ai/@mcp-fortress/mcp-fortress-server/mcp am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinéiert HTTP-Headeren oder OAuth-Clientastellungen derbäi, wann de Server se erfuerdert.

  1. Pescht https://server.smithery.ai/@mcp-fortress/mcp-fortress-server/mcp an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat MCP Fortress an.
  3. Setzt eng Beschreiwung an e Symbol derbäi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbäi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zeréck op d'Plugin-Lëscht a kontrolléiert, ob déi nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat MCP Fortress als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivéiert d'Tools vu MCP Fortress ënner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-Aarbechtsberäich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. Aktivéiert d'Tools vu MCP Fortress ënner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat MCP Fortress?
MCP Fortress
Jo. Ech hunn et gelies.
Dat hunn ech mat MCP Fortress fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server MCP Fortress benotzt?

MCP Fortress ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech MCP Fortress MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir MCP Fortress mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat MCP Fortress MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann MCP Fortress verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech MCP Fortress MCP mat TypingMind?

Dir kënnt MCP Fortress mat TypingMind verbannen, andeems Dir d'URL vu sengem gehoste MCP-Server derbäisetzt. Dat ass nëtzlech, wann Dir eng Remote-MCP-Verbindung wëllt, déi aus Ärem TypingMind-Aarbechtsberäich disponibel ass.

Wéi eng Tools stellt MCP Fortress MCP an TypingMind zur Verfügung?

MCP Fortress stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir MCP Fortress MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann MCP Fortress eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇