基于 MCP (Model Control Protocol)的 FOFA API 查询服务器,提供简单易用的 FOFA 数据查询接口。
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"fofa-mcp-server": {
"env": {
"FOFA_KEY": "API KEY"
},
"args": [
"/path/to/fofa-mcp-server/main.py"
],
"command": "python3"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
基于 MCP (Model Control Protocol)的 FOFA API 查询服务器,提供简单易用的 FOFA 数据查询接口。
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in security
An evil MCP server used for redteam testing
Proof primitive for AI agents on MultiversX. Anchor file hashes on-chain as verifiable proofs.
AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Security-first platform for AI agents. 38 specialized agents, 15 AI-powered extensions, zero-knowledge multi-agent orchestration. SENTINEL WAF, Ed25519 auth, 2.6M grounding facts.
MCP Security Weekly
Get CVE alerts and security updates for Fofa Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
基于 MCP (Model Control Protocol)的 FOFA API 查询服务器,提供简单易用的 FOFA 数据查询接口。
git clone https://github.com/intbjw/fofa-mcp-server.git
cd fofa-mcp-server
pip install -r requirements.txt
或者使用 Poetry:
poetry install
使用 cline 进行配置,在 vscode 中下载插件


我这里选择的阿里云的qwen-coder,也可以使用本地大模型。

编写配置文件

{
"mcpServers": {
"fofa-mcp-server": {
"command": "python3",
"args": [
"/path/to/fofa-mcp-server/main.py"
],
"env": {
"FOFA_KEY": "API KEY"
}
}
}
}
提示fofa-mcp-server MCP server connected 配置成功

fofa_search_tool(query: str, fields: str = "", size: int = 50) -> dict
参数说明:
query: FOFA 查询语句fields: 查询字段,可选值:
size: 返回结果数量,默认 50 条返回数据格式:
{
"summary": str, # 查询统计信息
"data": List[Dict] # 查询结果列表
}
fofa_userinfo_tool() -> dict
返回 FOFA 账户的详细信息。
包含基础字段,以及:
欢迎提交 Issue 和 Pull Request!