Tensorfire
MCP server for security-testing AI models, exposing garak vulnerability scanning and URL/MCP-endpoint scanning as callable tools. It lets agents probe LLM endpoints for jailbreaks, prompt injection, and data leakage, and classify URLs or screen remote MCP endpoints for prompt-injection payloads.
README
<picture> <source media="(prefers-color-scheme: dark)" srcset="images/lockup-on-dark-padded.png"> <img alt="Tensorfire" src="images/lockup-ink-red-1024.png" width="480"> </picture>
An MCP server, shipped as a container image, for security-testing AI models. It exposes two things behind one consistent tool interface:
- garak vulnerability scanning — probe any OpenAI-compatible LLM endpoint for jailbreaks, prompt injection, toxicity, and data leakage.
- URL / MCP-endpoint scanning — classify URLs for phishing/exfil traits and screen a remote MCP server's advertised tools for prompt-injection payloads.
Point any MCP client (an agent, an IDE, CI) at the server and it gets these as callable tools.
What Tensorfire is, and why we built it
AI security tooling is scattered across libraries that each bring their own CLI, config, and integration work. Wiring even one of them into an agent or a CI pipeline is repetitive glue.
Tensorfire puts that capability behind a single Model Context Protocol surface, so running a security test is a tool call rather than an integration project. This initial release keeps the scope deliberately small — an LLM vulnerability scan and URL/MCP screening — with room to add more tools over time.
Design principles:
- Graceful degradation. The server always starts and always advertises its catalog. If an optional dependency is missing, the tool returns a structured "dependency unavailable" result instead of crashing.
- Extensible. Tools are auto-discovered — dropping a module into
src/tensorfire/tools/adds a pack with no central wiring. - Secrets stay out of tool calls. Tools that hit a live model take the name of an environment variable holding the API key, never the key itself.
Tools
| Pack | Backed by | Tools |
|---|---|---|
garak |
garak | garak_list_probes, garak_scan |
mcp_url_scan |
built-in (MCP SDK) | classify_url, scan_mcp_endpoint |
prompt_injection |
built-in (offline) | scan_text_for_injection |
Plus tensorfire_catalog, which lists every pack and whether it's installed.
Clients should call it first.
Deploy with Docker
# Build and run. Serves streamable HTTP on http://localhost:8000/mcp.
docker compose up --build
docker-compose.yml passes target-model secrets from your shell environment
(OPENAI_API_KEY, OPENAI_BASE_URL) into the container and mounts ./workspace
read-only for any files your tools need to reach.
Without compose:
docker build -t tensorfire:latest .
docker run -p 8000:8000 \
-e OPENAI_API_KEY=your-key \
-e OPENAI_BASE_URL=https://api.openai.com/v1 \
tensorfire:latest
Deploy locally (no container)
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]" # installs the server + garak
tensorfire # serves http://localhost:8000/mcp
pip install pulls garak (and its ML dependencies), so the first install is
large. Everything runs in this one environment — there is no separate build
step.
Configuration
All optional, via environment variables:
| Variable | Default | Purpose |
|---|---|---|
TENSORFIRE_HOST |
0.0.0.0 |
bind address |
TENSORFIRE_PORT |
8000 |
port |
TENSORFIRE_TRANSPORT |
streamable-http |
set stdio for a stdio client |
TENSORFIRE_LOG_LEVEL |
INFO |
log verbosity |
Verify it's up
curl -fsS http://localhost:8000/health
# {"status":"ok","server":"tensorfire","packs_total":3,"packs_ready":3}
Use /health for liveness — never probe /mcp with a bare GET; it requires
the MCP handshake and returns 406 Not Acceptable by design.
Connecting a client
Any MCP client that supports streamable HTTP:
{ "mcpServers": { "tensorfire": { "url": "http://localhost:8000/mcp" } } }
Clients should call tensorfire_catalog first, then call tools by name.
Running a garak scan
garak_scan defaults to a local Ollama server — no API key required.
model— the Ollama model name (e.g.llama3.1,gemma4:26b-a4b-it-q8_0).base_url— only if Ollama isn't on127.0.0.1:11434(e.g.http://ollama:11434when the server runs in another container). It's normalized to thehost:portgarak's Ollama client expects.probes— comma-separated probe families (e.g."promptinject,dan"); omit for garak's default set. Usegarak_list_probesto see what's available.
Minimal call:
{ "model": "gemma4:26b-a4b-it-q8_0", "probes": "promptinject", "generations": 1 }
Testing an OpenAI-compatible endpoint instead
Set model_type to openai or openai.OpenAICompatible, base_url to the
endpoint, and api_key_env to the name of the env var (in the server's
environment) holding the key:
{
"model": "gpt-4o-mini",
"model_type": "openai",
"api_key_env": "OPENAI_API_KEY",
"probes": "promptinject"
}
API keys are never tool arguments. The agent passes api_key_env — the
name of an environment variable inside the Tensorfire container that holds the
key. Provision the actual secret via docker-compose.yml or -e.
Development
pip install -e ".[dev]"
pytest
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。