MCP Fortressのロゴ

MCP Fortress

コミュニティ
mcp-fortress

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

公開者mcp-fortress
リポジトリmcp-fortress
フォーク
3
スター
4
利用可能なツール
0
通信方式streamable-http
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    MCP Fortressは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには4件のスターと3件のフォークがあります。

🏰 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

インストール

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

MCP FortressのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度MCP Fortressに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、TypingMindでリモートホストされたMCPサーバーのURLを使って接続します。

MCPサーバーのURLを追加

MCP Fortressがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にhttps://server.smithery.ai/@mcp-fortress/mcp-fortress-server/mcpを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にhttps://server.smithery.ai/@mcp-fortress/mcp-fortress-server/mcpを貼り付けてください。
  2. MCP Fortressの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. MCP Fortressの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でMCP Fortressのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でMCP Fortressのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
MCP Fortressを使ってこのタスクを手伝ってもらえますか?
MCP Fortress
はい、読みました。
MCP Fortressで調べた結果をお伝えします。

よくある質問

MCP Fortress MCPサーバーは何に使いますか?

MCP Fortressは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMCP Fortress MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMCP Fortressを利用できます。

TypingMindでMCP Fortress MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。MCP Fortressを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

MCP Fortress MCPをTypingMindに接続するにはどうすればよいですか?

ホストされているMCP FortressのMCPサーバーURLを追加すると、TypingMindに接続できます。TypingMindのワークスペースから利用できるリモートMCP接続が必要な場合に便利です。

TypingMindでMCP Fortress MCPのどのようなツールを利用できますか?

MCP FortressはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

MCP Fortress MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。MCP Fortressで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇