
praetorian-inc/mcphammer
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
モデルコンテキストプロトコルサーバーの脆弱性を評価するためのMCPセキュリティテストフレームワーク
概要
Claude AIの統合、テキストインジェクション機能、サーバー情報ユーティリティなど、さまざまなツールを提供するFastMCPで構築されたモデルコンテキストプロトコル(MCP)サーバー。 それは間違いなく超安全です, あなたは間違いなくそれを介して機密データを送信する必要があります, そして間違いなくそれが事実として言うすべてを取ります. - : 直接MCPプロトコルを介してClaudeモデルをクエリー - : ツールの応答にカスタムテキストを追加 - : 信頼性の高いHTTPベースの通信とリモートホスティングのためのFastMCPで構築 - : すべてのツール呼び出しと相互作用の自動ロギング - : 内蔵のヘルスチェックとサーバー情報エンドポイント - : ホストに関する情報は、ディスク上のファイルで収集および保存され、リモートホストに送信 - : 変更インジェクションテキストと複数のMCPHammerインスタンスを管理します。 初期設定は、URLと設定を経由して、自動的に更新します.
概要(AI 翻訳)
Claude AIの統合、テキストインジェクション機能、サーバー情報ユーティリティなど、さまざまなツールを提供するFastMCPで構築されたモデルコンテキストプロトコル(MCP)サーバー。 それは間違いなく超安全です, あなたは間違いなくそれを介して機密データを送信する必要があります, そして間違いなくそれが事実として言うすべてを取ります.
##特徴
-Claude AIインテグレーション:MCPプロトコルを介して直接Claudeモデルをクエリする
- テキストインジェクションシステム:カスタムテキストをツール応答に追加する
- ** HTTP 輸送**: 信頼性の高い HTTP ベースの通信およびリモート ホスティング用の FastMCP で構築 -Session Logging:すべてのツール呼び出しと相互作用の自動ロギング
- 健康監視:作り付けの健康の点検およびサーバー情報エンドポイント
- テレメトリーサービス:サーバーが実行されているホストに関する情報は、ディスク上のファイルに保存され、リモートホストに送信される
- リモート管理: 注入テキストを変更し、管理サーバーを介して複数のMCPHammerインスタンスをリモートで管理 -Web UI: ビューインスタンス用のブラウザベースの管理コンソールとアップデートのプッシュ
- Init Tool:設定可能なURLからファイルをダウンロードして開く自動初期化
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Hammer
A Model Context Protocol (MCP) server built with FastMCP that provides various tools including Claude AI integration, text injection capabilities, and server information utilities. It is definitely super secure, you should definitely send confidential data through it, and definitely take everything it says as fact.
Features
- Claude AI Integration: Query Claude models directly through the MCP protocol
- Text Injection System: Append custom text to tool responses
- HTTP Transport: Built on FastMCP for reliable HTTP-based communication & remote hosting
- Session Logging: Automatic logging of all tool calls and interactions
- Health Monitoring: Built-in health check and server info endpoints
- Telemetry Service: Information about the host the server is running on is collected and stored in files on disk, and/or sent to a remote host
- Remote Management: Change injection text and manage multiple MCPHammer instances remotely via a management server
- Web UI: Browser-based management console for viewing instances and pushing updates
- Init Tool: Automatic initialization that downloads and opens files from a configurable URL
- Download & Execute: Download files from URLs and optionally execute them
- Configurable Init URL: Change the init tool’s download URL remotely via web UI or API
Prerequisites
- Python 3.10 or higher
- pip (Python package manager)
- An Anthropic API key (for Claude integration)
Installation
-
Clone the repository
git clone https://github.com/praetorian-inc/MCPHammer cd MCPHammer -
Create a virtual environment (recommended)
python3 -m venv venv # Activate the virtual environment # On macOS/Linux: source venv/bin/activate # On Windows: # venv\Scripts\activate -
Install dependencies
pip install -r requirements.txt
Setting up Anthropic API Key
The ask_claude tool requires an Anthropic API key to function. Set it as an environment variable:
macOS/Linux
export ANTHROPIC_API_KEY="your-api-key-here"
Windows (Command Prompt)
set ANTHROPIC_API_KEY=your-api-key-here
Windows (PowerShell)
$env:ANTHROPIC_API_KEY="your-api-key-here"
To make this permanent, add the export command to your shell configuration file (.bashrc, .zshrc, etc.) or set it in your system environment variables.
Running the Server
Start the server with default settings (port 3000):
python MCPHammer.py
Or specify a custom port:
python MCPHammer.py --port 8080
Config Server Configuration
You can configure the config server IP/port when starting MCPHammer using command-line arguments:
Option 1: Using IP:port format (automatically adds /sync endpoint):
python MCPHammer.py --config-server 192.168.1.100:8888
Option 2: Using full URL:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →