MCP Security Tools Server
A production-ready HTTP API server for security testing and reconnaissance, integrating nmap, cariddi, paramspider, metasploit, and web scraping via FastAPI. It supports optional ngrok tunneling and exposes tools through REST endpoints.
README
MCP Security Tools Server
Production-ready HTTP API server untuk security testing & reconnaissance tools. Jalan atas FastAPI + uvicorn dengan support ngrok tunnel.
Fitur
- ✅ HTTP API endpoints — semua tools bisa dipanggil via REST
- ✅ Async-ready — FastAPI + pydantic
- ✅ Ngrok tunnel — expose server ke internet (optional)
- ✅ Tools integration: nmap, cariddi, paramspider, metasploit, web scraper
- ✅ Auto status check — cek tool mana yang tersedia di sistem
- ✅ Minimal dependencies — hanya 8 packages (vs 48 package sebelumnya)
- ✅ Tested — beneran jalan di Cloud Shell, local machine, Linux server
Quick Start
1. Clone & Install
git clone https://github.com/antonlarimaraton/mcp-accses.git
cd mcp-accses
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
2. Setup Config (opsional)
Copy .env.example ke .env:
cp .env.example .env
# Edit .env untuk isi API keys kalau diperlukan
Ngrok token (opsional, hanya kalau mau tunnel):
# Edit ngrok_config.json dan isi authtoken
nano ngrok_config.json
3. Run Server
Localhost saja:
python3 mcp_server.py
Dengan ngrok tunnel:
python3 mcp_server.py --ngrok
Custom port:
python3 mcp_server.py --port=9000
Server listening di http://localhost:8000 (atau custom port). API docs ada di /docs.
API Endpoints
Health & Status
GET /— Root endpoint, list semua endpointsGET /health— Health checkGET /status— Server status + tool availability
Security Tools
POST /tools/nmap— Network reconnaissancePOST /tools/cariddi— API endpoint discoveryPOST /tools/paramspider— Parameter extractionPOST /tools/scrape— Web scraping (requires SCRAPINGANT_API_KEY)POST /tools/metasploit— Exploitation framework
Contoh Penggunaan
Nmap scan:
curl -X POST http://localhost:8000/tools/nmap \
-H "Content-Type: application/json" \
-d '{"target": "192.168.1.1", "args": "-sV"}'
Cariddi (API discovery):
curl -X POST http://localhost:8000/tools/cariddi \
-H "Content-Type: application/json" \
-d '{"target": "https://api.example.com"}'
ParamSpider (parameter extraction):
curl -X POST http://localhost:8000/tools/paramspider \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
Web scraping:
curl -X POST http://localhost:8000/tools/scrape \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
Buka http://localhost:8000/docs di browser untuk interactive API documentation (Swagger UI).
Requirements
System Requirements
- OS: Linux (Ubuntu 20.04+), macOS, atau Windows (WSL)
- Python: 3.8+
- RAM: 512MB minimum
Optional Security Tools
Untuk menggunakan tool tertentu, install di system:
# Nmap
sudo apt-get install -y nmap
# Cariddi (requires Go)
go install github.com/edoardottt/cariddi/cmd/cariddi@latest
# ParamSpider (requires git)
git clone https://github.com/devanshbatham/paramspider.git tools/paramspider
# Metasploit Framework (heavy!)
# Lihat: https://docs.rapid7.com/metasploit/managing-the-database/
Configuration
Environment Variables (.env)
MCP_SERVER_PORT=8000
MCP_SERVER_HOST=0.0.0.0
SCRAPINGANT_API_KEY=your_key_here # opsional
GITHUB_API_KEY=your_token_here # opsional
Ngrok Configuration (ngrok_config.json)
{
"authtoken": "your_ngrok_token_here",
"region": "ap",
"log_level": "info"
}
Daftar ngrok gratis di: https://dashboard.ngrok.com
Troubleshooting
"connection refused" / Server tidak jalan
# Check Python version
python3 --version # Harus 3.8+
# Check dependencies
pip list | grep -E "fastapi|uvicorn|pydantic"
# Run dengan debug
python3 -u mcp_server.py
"Tool not found" (nmap, cariddi, etc)
- Server report status
tools.nmap: false, dll - Install tools secara manual (lihat section "Optional Security Tools" di atas)
Ngrok tunnel tidak jalan
# Check authtoken
cat ngrok_config.json | grep authtoken
# Test dengan CLI
ngrok http 8000
Permission denied
chmod +x mcp_server.py
python3 mcp_server.py # Tidak perlu sudo
Architecture
┌─────────────────────────────────────────────┐
│ FastAPI + Uvicorn (HTTP Server) │
├─────────────────────────────────────────────┤
│ ToolRunner (Core Logic) │
│ ├─ execute_nmap() │
│ ├─ execute_cariddi() │
│ ├─ execute_paramspider() │
│ ├─ scrape_with_api() │
│ ├─ execute_metasploit() │
│ └─ start_ngrok_tunnel() │
├─────────────────────────────────────────────┤
│ System Tools (optional) │
│ ├─ nmap CLI │
│ ├─ cariddi │
│ ├─ paramspider.py │
│ └─ msfconsole │
├─────────────────────────────────────────────┤
│ External APIs (optional) │
│ ├─ ScrapingAnt (web scraping) │
│ ├─ Ngrok (tunneling) │
│ └─ GitHub API │
└─────────────────────────────────────────────┘
Security Notes ⚠️
- Authorization Only — Hanya scan target yang kamu punya izin testing
- Legal Compliance — Pastikan comply dengan laws & regulations di region kamu
- API Keys — Jangan commit
.envke Git; gunakan.env.exampleuntuk template - Rate Limiting — Implement rate limit buat production usage
- Network — Gunakan VPN untuk remote testing
- Logging — Enable comprehensive logging untuk audit trail
Project Status
| Komponen | Status | Notes |
|---|---|---|
| HTTP Server (FastAPI) | ✅ Production | Tested di Cloud Shell, local, Linux |
| Nmap Integration | ✅ Working | Require system nmap |
| Cariddi Integration | ✅ Working | Require Go-installed tool |
| ParamSpider Integration | ✅ Working | Include di repo atau install manual |
| Metasploit Integration | ✅ Working | Require msfconsole installed |
| Web Scraper (ScrapingAnt) | ✅ Working | Require API key |
| Ngrok Tunneling | ✅ Working | Optional feature |
| Documentation | ✅ Complete | Instruksi jelas & tested |
File Structure
mcp-accses/
├── mcp_server.py # Main server (HTTP API)
├── mcp_config.json # Server configuration
├── ngrok_config.json # Ngrok tunnel config (optional)
├── .env.example # Environment variables template
├── requirements.txt # Python dependencies (8 packages)
├── README.md # Ini file
├── LICENSE # MIT License
└── tools/ # Optional: CLI tools
├── cariddi/
├── paramspider/
└── ...
License
MIT License — Lihat LICENSE file untuk detil.
IMPORTANT: Tools ini untuk authorized security testing only. Unauthorized access ke computer systems adalah illegal. Users bertanggung jawab atas compliance dengan semua applicable laws.
Support & Contributing
- Issue: https://github.com/antonlarimaraton/mcp-accses/issues
- Pull Requests welcome!
- Contact maintainers untuk pertanyaan
Version: 1.0.0 | Last Updated: 2025-01-01
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。