FofaMap
FofaMap v2.0 是一款基于 Python3 开发的全网首个 AI 驱动红队资产测绘智能体。在延续原有 FOFA 数据采集、存活检测、统计聚合、图标 Hash 及批量查询等核心功能的基础上,2.0 版本原生支持 MCP 协议,可无缝接入 Cursor、Claude 等 AI 平台。其核心内置了 AI 自我反思机制,能根据查询结果自动调优语法,并智能联动 Nuclei 推荐精准扫描策略,实现从“被动采集”到“主动智能决策”的红队作业进化。
What is FofaMap?
FofaMap is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to fofamap v2.0 是一款基于 python3 开发的全网首个 ai 驱动红队资产测绘智能体。在延续原有 fofa 数据采集、存活检测、统计聚合、图标 hash 及批量查询等核心功能的基础上,2.0 版本原生支持 mcp 协议,可无缝接入 cursor、claude 等 ai 平台。其核心内置了 ai 自我反思机制,能根据查询结果自动调优语法,并智能联动 nuclei 推荐精准扫描策略,实现...
FofaMap v2.0 是一款基于 Python3 开发的全网首个 AI 驱动红队资产测绘智能体。在延续原有 FOFA 数据采集、存活检测、统计聚合、图标 Hash 及批量查询等核心功能的基础上,2.0 版本原生支持 MCP 协议,可无缝接入 Cursor、Claude 等 AI 平台。其核心内置了 AI 自我反思机制,能根据查询结果自动调优语法,并智能联动 Nuclei 推荐精准扫描策略,实现从“被动采集”到“主动智能决策”的红队作业进化。
This server falls under the Security category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- FofaMap v2.0 是一款基于 Python3 开发的全网首个 AI 驱动红队资产测绘智能体。在延续原有 FOFA
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx fofamapConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use FofaMap
FofaMap v2.0 is an AI-driven red team asset mapping agent (资产测绘) that provides MCP protocol support for seamless integration with Cursor, Claude, and other AI platforms. It scans and maps network assets using FOFA data, performs intelligent syntax optimization with self-reflection, and can recommend Nuclei scanning strategies for penetration testing—bringing enterprise security reconnaissance into your AI workflow.
Prerequisites
- Python 3.8+ installed
- FOFA API account and API key (fofa.info)
- Node.js 14+ for MCP server
- An MCP client such as Claude Desktop or Cursor
- Nuclei installed (optional, for scan recommendations)
Get FOFA API credentials
Sign up at fofa.info and obtain your API key from the account settings.
Install FofaMap
Use npx to install FofaMap v2.0.
npx fofamapConfigure FOFA credentials
Set up your FOFA API key as an environment variable for FofaMap to use.
Add FofaMap to your MCP configuration
Edit your MCP client's configuration file to include FofaMap.
{
"mcpServers": {
"fofamap": {
"command": "npx",
"args": ["fofamap"],
"env": {
"FOFA_API_KEY": "your-fofa-api-key",
"FOFA_API_EMAIL": "[email protected]"
}
}
}
}Restart your MCP client
After updating the configuration with FOFA credentials, restart Claude Desktop or Cursor.
Test asset mapping
Ask your AI assistant to perform asset reconnaissance on a target organization to verify the connection works.
FofaMap Examples
MCP Configuration
Add FofaMap to your configuration.
{
"mcpServers": {
"fofamap": {
"command": "npx",
"args": ["fofamap"],
"env": {
"FOFA_API_KEY": "your-key",
"FOFA_API_EMAIL": "[email protected]"
}
}
}
}Prompts to try
Example prompts for using FofaMap with Claude.
- Map all web servers for the target.com domain using FOFA data
- Identify assets running outdated web frameworks and suggest Nuclei scan strategies
- Analyze the attack surface and prioritize high-risk assets for penetration testingTroubleshooting FofaMap
FOFA API authentication fails
Verify your FOFA API key and email are correct. Check that your FOFA account is active. Regenerate API key if needed from fofa.info settings.
Asset mapping returns no results
Verify the target domain/IP is public and indexed by FOFA. Try with a different search term. Check your FOFA API usage limits and plan.
Nuclei recommendations not appearing
Ensure Nuclei is installed on your system if you want scan recommendations. Verify the MCP server has access to Nuclei. Check FofaMap documentation for integration setup.
Frequently Asked Questions about FofaMap
What is FofaMap?
FofaMap is a Model Context Protocol (MCP) server that fofamap v2.0 是一款基于 python3 开发的全网首个 ai 驱动红队资产测绘智能体。在延续原有 fofa 数据采集、存活检测、统计聚合、图标 hash 及批量查询等核心功能的基础上,2.0 版本原生支持 mcp 协议,可无缝接入 cursor、claude 等 ai 平台。其核心内置了 ai 自我反思机制,能根据查询结果自动调优语法,并智能联动 nuclei 推荐精准扫描策略,实现从“被动采集”到“主动智能决策”的红队作业进化。 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install FofaMap?
Follow the installation instructions on the FofaMap GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with FofaMap?
FofaMap works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is FofaMap free to use?
Yes, FofaMap is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
FofaMap Alternatives — Similar Security Servers
Looking for alternatives to FofaMap? Here are other popular security servers you can use with Claude, Cursor, and VS Code.
Casdoor MCP Server
★ 13.6kAn open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD
ghidraMCP
★ 9.0kAn Model Context Protocol server that enables LLMs to autonomously reverse engineer applications by exposing Ghidra's decompilation and analysis tools. It allows AI agents to list code structures, rename methods, and analyze binaries directly through
Hooker
★ 5.1k🔥🔥 hooker is a Frida-based reverse engineering toolkit for Android. It offers a user-friendly CLI, universal scripts, auto hook generation, memory roaming to detect activities/services, one-click SOCKS5 proxy setup, Frida JustTrustMe, and BoringSSL u
UniDBG
★ 5.0kAllows you to emulate an Android native library, and an experimental iOS emulation
Enscan
★ 4.4k一款基于各大企业信息API的工具,解决在遇到的各种针对国内企业信息收集难题。一键收集控股公司ICP备案、APP、小程序、微信公众号等信息聚合导出。支持MCP接入
Anything Analyzer
★ 2.6k全能协议分析工具:浏览器抓包 + MITM 代理 + 指纹伪装 + AI 分析 + MCP Server 无缝对接 AI Agent/IDE | All-in-one protocol analysis toolkit — built-in browser capture, MITM proxy, JS hooks, fingerprint spoofing, AI analysis & MCP server for agent integration
Browse More Security MCP Servers
Explore all security servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up FofaMap in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use FofaMap?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.