
SpiderFoot MCP Server
Enables interaction with SpiderFoot OSINT reconnaissance tools through MCP, allowing users to manage scans, retrieve modules and event types, access scan data, and export results. Supports both starting new scans and analyzing existing reconnaissance data through natural language.
README
SpiderFoot MCP Server (TypeScript)
An MCP server that exposes key SpiderFoot functionality (running locally in Docker) as tools via the Model Context Protocol.
- Wraps the SpiderFoot web UI/API on
http://127.0.0.1:5001
(seespiderfoot/docker-compose.yml
). - No authentication required by default; optional Digest auth placeholders are present for future use.
- Starting scans is allowed by default; toggle with
ALLOW_START_SCAN
.
Requirements
- Node.js 18+ (recommended 20+)
- A local SpiderFoot container exposing port 5001 (e.g.
docker-compose up
in thespiderfoot/
repo)
Setup
- Install dependencies:
npm install
- Copy environment file and adjust as needed:
cp .env.example .env
Key variables:
SPIDERFOOT_BASE_URL
(default:http://127.0.0.1:5001
)ALLOW_START_SCAN
(default:true
)SPIDERFOOT_USER
/SPIDERFOOT_PASS
(optional – only if you enable Digest auth on SpiderFoot)
Development
Run in watch mode (stdio transport):
npm run dev
Run in watch mode (HTTP transport):
npm run dev:http
Type-check and build:
npm run typecheck
npm run build
Start from compiled output:
npm start # stdio transport
npm run start:http # HTTP transport (dist/index-http.js)
Tools
The server registers the following tools:
spiderfoot_ping
– GET/ping
spiderfoot_modules
– GET/modules
spiderfoot_event_types
– GET/eventtypes
spiderfoot_scans
– GET/scanlist
spiderfoot_scan_info
– GET/scanopts?id=<sid>
spiderfoot_start_scan
– POST/startscan
(guarded byALLOW_START_SCAN
)spiderfoot_scan_data
– POST/scaneventresults
spiderfoot_scan_data_unique
– POST/scaneventresultsunique
spiderfoot_scan_logs
– POST/scanlog
spiderfoot_export_json
– POST/scanexportjsonmulti
Dangerous endpoints like /query
are intentionally omitted.
HTTP vs stdio transports
src/index.ts
uses the stdio transport (StdioServerTransport
). This is commonly used when an IDE/agent launches your process and communicates via stdio.src/index-http.ts
uses the Streamable HTTP transport, listening on/:port/mcp
(default port3000
). Use this for remote/HTTP-based MCP clients.
Environment variable for HTTP port:
MCP_HTTP_PORT
(default:3000
)
Docker usage
This repo includes a Dockerfile
and docker-compose.yml
to run the MCP server in Docker.
Build the image:
docker build -t spiderfoot-mcp:local .
Run with Docker directly:
docker run --rm -p 3000:3000 \
-e SPIDERFOOT_BASE_URL=http://host.docker.internal:5001 \
-e ALLOW_START_SCAN=true \
-e MCP_HTTP_PORT=3000 \
--name spiderfoot-mcp spiderfoot-mcp:local
Or with Compose:
docker-compose up --build
Compose file (docker-compose.yml
) configures:
- Service:
spiderfoot-mcp
- Port mapping:
3000:3000
- Default env points to your host’s SpiderFoot at
http://host.docker.internal:5001
Notes:
- On Linux, replace
host.docker.internal
with your host IP or use the container network to reach your SpiderFoot service. - Ensure SpiderFoot is reachable on port
5001
from inside the MCP container.
Environment variables
SPIDERFOOT_BASE_URL
— Base URL of your SpiderFoot web UI/API.ALLOW_START_SCAN
—true|false
. Enables/disablesspiderfoot_start_scan
tool. Defaulttrue
.SPIDERFOOT_USER
,SPIDERFOOT_PASS
— Optional HTTP Digest credentials if you enable auth in SpiderFoot.MCP_HTTP_PORT
— Port for HTTP transport (if usingindex-http.ts
). Default3000
.
Project layout
src/index.ts
— MCP server (stdio transport) and tool registration.src/index-http.ts
— MCP server (HTTP transport) with session management.src/spiderfootClient.ts
— Axios-based client for SpiderFoot endpoints.Dockerfile
— Multi-stage image: builds TS → runs HTTP server.docker-compose.yml
— Runs container with env defaults.
Using with IDEs and MCP-compatible clients
This section provides JSON-based configuration examples for connecting this MCP server from popular IDEs and tools. Two transport modes are supported:
- Stdio transport: the IDE launches your local process
- HTTP transport: the IDE connects to a running server at
http://localhost:5002/mcp
(Docker with compose) orhttp://localhost:3000/mcp
when runningnpm run dev:http
locally
You can use both; add two separate entries if your IDE supports it.
Docker-based JSON (stdio inside container)
If you prefer your IDE to launch the MCP server inside Docker (without needing a long-running compose service), use this stdio-in-container configuration. It runs the stdio entrypoint (dist/index.js
) and communicates over stdin/stdout.
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
],
"env": {}
}
}
}
Copy-paste Claude Desktop block (Docker stdio + HTTP):
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
},
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
Notes:
- Make sure you have built the image (
docker build -t spiderfoot-mcp:local .
ordocker-compose build
). - This approach does not expose a port; it uses stdio via Docker (
-i
). - The host SpiderFoot URL is passed via
-e SPIDERFOOT_BASE_URL=http://host.docker.internal:5001
.
Common configuration examples
Stdio (local process)
{
"mcpServers": {
"spiderfoot-mcp-stdio": {
"type": "stdio",
"command": "node",
"args": [
"./node_modules/tsx/dist/cli.mjs",
"src/index.ts"
],
"cwd": "C:/dev-env.local/project-repos/Spiderfoot-MCP-Agent",
"env": {
"SPIDERFOOT_BASE_URL": "http://127.0.0.1:5001",
"ALLOW_START_SCAN": "true"
}
}
}
}
HTTP (connect to running server)
{
"mcpServers": {
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
Notes:
- If you prefer
npm start
instead oftsx
, updatecommand
/args
accordingly, e.g.command: "npm", args: ["run", "dev"]
. - On Windows, keep forward slashes in
cwd
or escape backslashes (e.g.,C:\\dev-env.local\\project-repos\\Spiderfoot-MCP-Agent
). - Ensure SpiderFoot is reachable at
SPIDERFOOT_BASE_URL
from the MCP server.
Windsurf
Steps:
- Open
Settings
→MCP
(or Tools/Integrations section that manages MCP servers). - Add a new server entry.
- Paste one of the JSON examples above into your MCP server configuration, merging with any existing
mcpServers
entries. Recommended options:- Docker stdio:
spiderfoot-mcp-docker-stdio
(usescommand: docker
) - HTTP:
serverUrl
tohttp://localhost:5002/mcp
- Docker stdio:
- Save settings.
- Start the server if using HTTP mode (Docker Compose or
npm run dev:http
). For stdio, Windsurf will launch it automatically when needed.
Windsurf – Option 2: HTTP via serverUrl
{
"mcpServers": {
"spiderfoot-mcp-http": {
"serverUrl": "http://localhost:5002/mcp"
}
}
}
Windsurf – Option 1: Docker stdio
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
}
}
}
Notes:
- Make sure you have built the image (
docker build -t spiderfoot-mcp:local .
ordocker-compose build
). - This approach does not expose a port; it uses stdio via Docker (
-i
). - The host SpiderFoot URL is passed via
-e SPIDERFOOT_BASE_URL=http://host.docker.internal:5001
.
Cursor
Steps:
- Open Cursor settings for MCP integrations.
- Add a new MCP server.
- Use the Docker stdio JSON to launch in a container, or the HTTP example to connect to
http://localhost:5002/mcp
. - Save and test by listing tools from the MCP panel.
Cursor – Option 1: Docker stdio
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
}
}
}
Cursor – Option 2: HTTP
{
"mcpServers": {
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
Claude Desktop
Claude Desktop reads a JSON configuration file that can include the mcpServers
map shown above.
Typical configuration file locations:
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
Add or merge one of the following under a top-level mcpServers
object if your extension reads from it, or under the extension-specific key (e.g., "cline.mcpServers"
).
Claude Desktop – Option 1: Docker stdio
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
}
}
}
Claude Desktop – Option 2: HTTP
{
"mcpServers": {
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
VS Code (Continue)
Configuration is typically stored in VS Code settings.json
.
Common locations:
- Windows:
%APPDATA%/Code/User/settings.json
- macOS:
~/Library/Application Support/Code/User/settings.json
- Linux:
~/.config/Code/User/settings.json
Add or merge the following under a top-level mcpServers
object if your extension reads from it, or under the extension-specific key (e.g., "continue.mcpServers"
).
VS Code (Continue) – Option 1: Docker stdio
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
}
}
}
VS Code (Continue) – Option 2: HTTP
{
"mcpServers": {
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
Notes:
- Some VS Code MCP extensions expect a namespaced key (e.g.,
continue.mcpServers
). If so, copy the object assigned tomcpServers
above into that namespaced setting. - Ensure the working directory (
cwd
) points atSpiderfoot-MCP-Agent/
.
VS Code (Cline)
VS Code (Cline) – Option 1: Docker stdio
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
}
}
}
VS Code (Cline) – Option 2: HTTP
{
"mcpServers": {
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
JetBrains (Continue plugin)
Open your JetBrains IDE settings → Continue → MCP (or Tools/Integrations) and add a server using the same JSON entries shown above.
If your IDE stores a JSON configuration file, place the same mcpServers
map in that file and restart the IDE. Use stdio or HTTP entries per your preference.
JetBrains (Continue) – Option 1: Docker stdio
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
}
}
}
JetBrains (Continue) – Option 2: HTTP
{
"mcpServers": {
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
Zed
Open Zed settings JSON (e.g., ~/.config/zed/settings.json
) and add an MCP servers map. For many setups, a root-level mcpServers
object works; otherwise, consult Zed’s MCP documentation for the exact key.
Zed – Option 1: Docker stdio
{
"mcpServers": {
"spiderfoot-mcp-docker-stdio": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--add-host=host.docker.internal:host-gateway",
"-e",
"SPIDERFOOT_BASE_URL=http://host.docker.internal:5001",
"spiderfoot-mcp:local",
"node",
"dist/index.js"
]
}
}
}
Zed – Option 2: HTTP
{
"mcpServers": {
"spiderfoot-mcp-http": {
"type": "http",
"url": "http://localhost:5002/mcp"
}
}
}
MCP Inspector (testing)
- Stdio: run
npm run dev
and point Inspector to that command. - HTTP: run Docker Compose (or
npm run dev:http
) and connect Inspector tohttp://localhost:5002/mcp
.
Notes
- Source files are in
src/
:src/index.ts
– MCP server definition and tool registration (stdio).src/index-http.ts
– Streamable HTTP transport variant.src/spiderfootClient.ts
– HTTP wrapper around SpiderFoot endpoints usingaxios
.
- The project uses ESM (
"type": "module"
), TypeScript 5, and zod for input validation. - Default behavior allows starting scans; disable by setting
ALLOW_START_SCAN=false
.
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。