Fofa MCP Server

FOFA 搜索引擎 MCP 工具服务器,让 AI 助手直接调用 FOFA API 进行网络资产搜索

Remote serverstreamable-http

What is the Fofa MCP server?

Connect Fofa to Claude, Cursor or any other MCP client and it stops being a tab you switch to. FOFA 搜索引擎 MCP 工具服务器,让 AI 助手直接调用 FOFA API 进行网络资产搜索. The fofa mcp server is what makes that connection.

What the server does

FOFA 搜索引擎的 MCP (Model Context Protocol) 工具服务器,让 AI 助手能够直接调用 FOFA API 进行网络资产搜索。

Installation

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • query — string
  • fields — string
  • host — string
  • detail — boolean
  • Cursor — The Cursor tool exposed by this server
  • fofa_search — The fofa_search tool exposed by this server
  • fofa_export — The fofa_export tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: FOFA_API_KEY, FOFA_BASE_URL, SERVER_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Fofa's toolset — query, fields, host and 4 more — is a fair guide to whether it matches your workflow. It is maintained by lulaide; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
querystring
fieldsstring
hoststring
detailboolean
CursorThe Cursor tool exposed by this server.
fofa_searchThe fofa_search tool exposed by this server.
fofa_exportThe fofa_export tool exposed by this server.

How to install the Fofa MCP server

{
  "mcpServers": {
    "fofa": {
      "command": "npx",
      "args": ["fofa-mcp"],
      "env": {
        "FOFA_API_KEY": "your-api-key",
        "FOFA_BASE_URL": "https://fofa.info"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
FOFA_API_KEYCredential the server authenticates with.Yes
FOFA_BASE_URLEndpoint or connection string the server talks to.Yes
SERVER_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Fofa to query.
  • Use Fofa to fields.
  • Use Fofa to host.

Frequently asked questions

It connects Fofa to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (query, fields, host, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Fofa directly.