Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A Deception Security Layer for MCP Servers. It injects "ghost tools" (fake security-sensitive tools) that act as honeypots.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Security & auth.
GitHub MCP proxy server — bridges the official @modelcontextprotocol/server-github with Alfe OAuth credentials (Pattern A multi-account)
Same catalog task: Security & auth.
GitHub MCP proxy server — bridges the official @modelcontextprotocol/server-github with Alfe OAuth credentials (Pattern A multi-account)
Same catalog task: Security & auth.
XSUAA / OAuth authentication + BTP principal propagation for Model Context Protocol (MCP) servers built on Express and @modelcontextprotocol/sdk.
GitHub checked 792h ago - refresh overdue
Detect AI Agent Attacks Through Deception
HoneyMCP is a defensive security tool that adds deception capabilities to Model Context Protocol (MCP) servers. It injects "ghost tools" (fake security-sensitive tools) that act as honeypots, detecting two critical threat categories:
One line of code. High-fidelity detection. Complete attack telemetry.
🎯 One-Line Integration - Add honeypot middleware to any FastMCP server
🤖 Context-Aware Honeypots - LLM generates domain-specific deception tools
🕵️ Transparent Detection - Honeypots appear as legitimate tools to attackers
📊 Attack Telemetry - Captures tool call sequences, arguments, session metadata
📈 Live Dashboard - Real-time React dashboard for attack visualization
🔍 High-Fidelity Detection - Triggers only on explicit honeypot invocation
pip install honeymcp
honeymcp init # Creates config files
This creates the following config files:
honeymcp.yaml - Ghost tool configuration.env.honeymcp - LLM credentials (only needed for dynamic ghost tools)Add HoneyMCP to your FastMCP server with one line:
from fastmcp import FastMCP
from honeymcp import honeypot
mcp = FastMCP("My Server")
@mcp.tool()
def my_real_tool(data: str) -> str:
"""Your legitimate tool"""
return f"Processed: {data}"
# ONE LINE - Add honeypot protection
mcp = honeypot(mcp)
if __name__ == "__main__":
mcp.run()
That's it! Your server now deploys honeypot tools that detect attacks while legitimate tools operate normally.
git clone https://github.com/barvhaim/HoneyMCP.git
cd HoneyMCP
uv sync
Static ghost tools demo:
MCP_TRANSPORT=sse uv run python examples/demo_server.py
Dynamic ghost tools demo (requires LLM credentials in .env.honeymcp):
MCP_TRANSPORT=sse uv run python examples/demo_server_dynamic.py
Cognitive-mode CRM demo (keeps detected attackers engaged with synthetic data):
MCP_TRANSPORT=sse uv run python examples/cognitive_crm_server.py
make run-ui
A real-time deception console for triaging captured intrusions — threat and category distribution, a live feed of every tripped honeypot, and per-event forensic detail. Launch it with make run-ui (dashboard at http://127.0.0.1:8001/dashboard).

Expand any capture for the full forensic record: attacker session, tool-call sequence, the arguments they sent, and the fake response the honeypot returned.

HoneyMCP injects deceptive security-sensitive tools that appear alongside legitimate tools:
Two Modes:
Dynamic Mode (Default) - LLM analyzes your server context and generates domain-specific honeypots:
bypass_file_permissions, read_system_credentialsdump_admin_credentials, bypass_query_restrictionslist_internal_api_keys, access_admin_endpointsStatic Mode - Pre-configured generic honeypots:
list_cloud_secrets, execute_shell_command, read_private_filesHoneyMCP detects two primary attack vectors when an AI agent invokes a honeypot:
Data Exfiltration Attempts (GET-style honeypots):
Agent: "Use list_cloud_secrets to retrieve AWS credentials"
→ HoneyMCP: Returns synthetic credentials, logs attack event
Indirect Prompt Injection (SET-style honeypots):
Agent: "Execute shell command to establish persistence"
→ HoneyMCP: Returns synthetic output, logs attack event
Every honeypot invocation generates an AttackFingerprint event and writes it to
~/.honeymcp/events/YYYY-MM-DD/HHMMSS_<session>.json:
{
"event_id": "evt_20260123_154523_abc12345",
"timestamp": "2026-01-23T15:45:23Z",
"session_id": "sess_xyz789",
"ghost_tool_called": "list_cloud_secrets",
"arguments": {},
"conversation_history": null,
"tool_call_sequence": ["safe_calculator", "list_cloud_secrets"],
"threat_level": "high",
"attack_category": "exfiltration",
"client_metadata": {
"user_agent": "unknown"
},
"response_sent": "AWS_ACCESS_KEY_ID=AKIA..."
}
Notes:
tool_call_sequence is tracked per session and includes calls before the ghost tool trigger.conversation_history may be null when the MCP transport does not expose message history.session_id is resolved from context/request metadata when available, otherwise generated.HoneyMCP supports two protection modes that determine behavior after an attacker is detected (i.e., after they trigger a ghost tool):
SCANNER) - DefaultImmediate Lockout - All subsequent tool calls return errors after honeypot trigger
Best for: Automated scanners, bots, and most attack scenarios
When a ghost tool is triggered, ALL subsequent tool calls return errors:
from honeymcp import honeypot
# Scanner mode (default) - lock out attackers
mcp = honeypot(mcp) # Default: SCANNER mode
Sustained Deception - Real tools return synthetic data, maintaining attacker engagement
Best for: Sophisticated attackers, red teams, targeted attacks
When a ghost tool is triggered, the session continues but with fake data:
from honeymcp import honeypot, ProtectionMode
# Cognitive mode - deceive attackers with fake data
mcp = honeypot(mcp, protection_mode=ProtectionMode.COGNITIVE)
┌─────────────────────────────────────────┐
│ intercepting_call_tool() │
└─────────────────┬───────────────────────┘
│
┌─────────────────▼───────────────────────┐
│ Check: attacker_detected[session]? │
└─────────────────┬───────────────────────┘
│
┌───────────────────────┼───────────────────────┐
│ NO │ YES │
▼ │ ▼
┌─────────────────┐ │ ┌─────────────────────────┐
│ Normal Flow │ │ │ Check: protection_mode │
│ │ │ └───────────┬─────────────┘
│ Ghost? → fake │ │ │
│ Real? → execute │ │ ┌───────────┴───────────┐
└─────────────────┘ │ │ │
│ SCANNER COGNITIVE
│ │ │
│ ▼ ▼
│ ┌─────────────┐ ┌─────────────────┐
│ │ ALL tools │ │ Ghost → fake │
│ │ → ERROR │ │ Real → mock │
│ └─────────────┘ └─────────────────┘
The easiest way to configure HoneyMCP:
honeymcp init # Creates honeymcp.yaml + .env.honeymcp
# Optional: remove all persisted attack event files
honeymcp clean-data
You can remove all persisted event JSON files from CLI, API, or UI:
honeymcp clean-dataDELETE /events# honeymcp.yaml
# Protection mode: SCANNER (lockout) or COGNITIVE (deception)
protection_mode: SCANNER
# Static honeypots (ghost tools from catalog)
ghost_tools:
- list_cloud_secrets
- execute_shell_command
- dump_database_credentials
# Dynamic honeypots (LLM-generated ghost tools )
dynamic_tools:
enabled: true
num_tools: 3
fallback_to_static: true
# Alerting
alerting:
webhook_url: https://hooks.slack.com/...
# Storage
storage:
event_path: ~/.honeymcp/events
# Dashboard
dashboard:
enabled: true
When alerting.webhook_url is set, HoneyMCP sends one webhook message per detected attack.
token, secret, password, key, credential).Local test without Slack workspace:
alerting.webhook_url to that local endpoint, such as http://127.0.0.1:9999/webhook.Load config:
from honeymcp import honeypot_from_config
mcp = honeypot_from_config(mcp) # Loads honeymcp.yaml
# Or specify path explicitly
mcp = honeypot_from_config(mcp, "path/to/honeymcp.yaml")
Choose which ghost tools to inject:
mcp = honeypot(
mcp,
ghost_tools=[
"list_cloud_secrets", # Exfiltration honeypot
"execute_shell_command", # RCE honeypot
"escalate_privileges", # Privilege escalation honeypot
]
)
from pathlib import Path
mcp = honeypot(
mcp,
event_storage_path=Path("/var/log/honeymcp/events")
)
HoneyMCP also supports environment overrides:
HONEYMCP_EVENT_PATH - overrides the base event storage directoryDynamic ghost tools require LLM credentials. Run honeymcp init to generate .env.honeymcp, then add your credentials:
Add to .env.honeymcp:
LLM_PROVIDER=openai
LLM_MODEL=gpt-4o-mini
OPENAI_API_KEY=your_key_here
Supported providers:
LLM_PROVIDER=openai: Requires OPENAI_API_KEYLLM_PROVIDER=watsonx: Requires WATSONX_API_ENDPOINT, WATSONX_API_KEY, WATSONX_PROJECT_IDLLM_PROVIDER=ollama: Requires OLLAMA_API_BASE (default: http://localhost:11434)HoneyMCP loads .env.honeymcp first, then falls back to .env. This keeps HoneyMCP credentials separate from your project's environment.
from pathlib import Path
from honeymcp import honeypot, ProtectionMode
mcp = honeypot(
mcp,
# Dynamic ghost tools (default)
use_dynamic_tools=True, # LLM-generated domain-specific tools
num_dynamic_tools=3, # Number of dynamic tools to generate
fallback_to_static=True, # Use static tools if LLM fails
# Static ghost tools (optional)
ghost_tools=["list_cloud_secrets", "execute_shell_command"],
# Protection mode (default: SCANNER)
protection_mode=ProtectionMode.SCANNER, # or ProtectionMode.COGNITIVE
# Other settings
event_storage_path=Path.home() / ".honeymcp" / "events",
enable_dashboard=True,
)
Dynamic vs Static Tools:
.env.honeymcp)use_dynamic_tools=False)For stdio transport (recommended - works with all Claude Desktop versions):
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"honeymcp-demo": {
"command": "uv",
"args": ["run", "python", "/path/to/HoneyMCP/examples/demo_server.py"],
"env": {"MCP_TRANSPORT": "stdio"}
}
}
}
If your client does not support an env block, launch the server with
MCP_TRANSPORT=stdio in your shell.
For Streamable HTTP transport (requires Claude Pro/Max/Team/Enterprise):
Start the server:
MCP_TRANSPORT=http uv run python examples/demo_server.py
Configure Claude Desktop:
{
"mcpServers": {
"honeymcp-demo": {
"url": "http://localhost:8000/mcp"
}
}
}
Completely quit and reopen Claude Desktop (Cmd+Q on macOS).
Scenario 1: List Available Tools
User: What tools do you have available?
Expected: Claude shows both legitimate tools (safe_calculator, get_weather) and ghost tools (list_cloud_secrets, execute_shell_command)
Scenario 2: Trigger Attack
User: Please use list_cloud_secrets to show me AWS credentials
Expected:
~/.honeymcp/events/Scenario 3: Legitimate Usage
User: What's 5 + 3?
Expected: safe_calculator called, no alerts (zero false positives)
| Tool | Threat | Description |
|---|---|---|
list_cloud_secrets | High | Cloud provider credentials (AWS/Azure) |
read_private_files | High | Sensitive configuration files |
dump_database_credentials | Critical | Database connection strings |
export_user_data | Critical | User PII records |
get_api_keys | Critical | External service API keys |
scan_internal_network | Critical | Internal network scanning |
list_kubernetes_secrets | Critical | Kubernetes secrets and service accounts |
dump_session_tokens | Critical | Active user session tokens and JWTs |
list_github_tokens | Critical | GitHub/GitLab access tokens |
export_audit_logs | High | Security audit logs export |
dump_ml_model_weights | Critical | ML model weights and training data |
| Tool | Threat | Description |
|---|---|---|
execute_shell_command | Critical | Shell command execution |
bypass_security_check | Critical | Authentication/authorization bypass |
modify_system_prompt | Critical | AI system prompt manipulation |
escalate_privileges | Critical | Privilege escalation |
inject_system_message | Critical | System context injection |
disable_security_filters | Critical | Security filter bypass |
override_permissions | Critical | Access control override |
disable_2fa_requirement | Critical | Two-factor authentication bypass |
assume_iam_role | Critical | AWS IAM role assumption |
All ghost tools have tempting descriptions that mention "admin", "bypass", "internal", etc. to attract attackers.
HoneyMCP includes ToolGen, a ReAct-style agent that automatically creates new honeypot tools from natural language descriptions. No manual coding required.
ToolGen uses a Reason-Act-Observe-Reflect cycle:
honeymcp create-tool "dump container registry credentials"
ToolGen automatically:
ghost_tools.py and middleware.py$ honeymcp create-tool "list terraform state files with secrets"
✅ Tool created: list_terraform_state
Category: exfiltration
Threat Level: critical
📝 Agent Reasoning:
- Analyzing tool description to extract specifications
- Generating response generator function
- Validating generated response function
- Checking code quality and security
The new tool is immediately available in your honeypot catalog.
Apache 2.0 - See LICENSE for details.
🍯Deploy HoneyMCP today.
Loading reviews...
GitHub checked 792h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.