mcp-server

mcp-server is an agent for coding agents from AI-Hydro/swatplus-builder. It costs 0 tokens per session (1,589 once invoked), scanned A, original, MIT.

An MCP server for SWATPlus Builder. MCP is a standard way for an AI assistant to call an application's typed tools instead of writing free-form commands.

In plain words
What is it for?
Use it to start SWATPlus Builder as a server, verify its Python environment, and register it with an agent client such as Claude Desktop or Claude Code.
Why use it?
It gives an agent a checked interface for operating the SWATPlus Builder pipeline and reports missing setup during a pre-flight check.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ai-hydro/swatplus-builder/mcp-server
Clone the repo
git clone --depth 1 https://github.com/AI-Hydro/swatplus-builder

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-server

README.md
[![agentmods](https://agentmods.dev/badge/agents/ai-hydro/swatplus-builder/mcp-server.svg)](https://agentmods.dev/agents/ai-hydro/swatplus-builder/mcp-server)
Your own site
<a href="https://agentmods.dev/agents/ai-hydro/swatplus-builder/mcp-server"><img src="https://agentmods.dev/badge/agents/ai-hydro/swatplus-builder/mcp-server.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01589
Opus 5 $0.00000 $0.00794
Sonnet 5 $0.00000 $0.00318
Haiku 4.5 $0.00000 $0.00159

Measured 3d ago against content hash c1be0ca5e786, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs_site/agents/mcp-server.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP server

swatplus-builder exposes a Model Context Protocol (MCP) tool server so an AI agent operates the pipeline through typed tools rather than free-form code. This is the design's intended mode: the agent operates, the package governs.

Start the server

pip install "swatplus-builder[mcp]"
swat mcp                 # stdio transport

Before starting, run a pre-flight check to confirm the server and all tools load correctly in your active Python environment:

swat mcp-check           # exits 0 if ready, 1 if not
swat mcp-check --json    # machine-readable output

This is especially useful when you have multiple Python environments (conda, venv, pyenv) — mcp-check tells you exactly which import is missing and in which environment, rather than failing silently when the server spawns.

Register it with an agent client

Claude Desktop / Claude Code (claude_desktop_config.json) — recommended form (when engine is installed via swat setup engine --path, no env vars needed):

{
  "mcpServers": {
    "swatplus-builder": {
      "command": "swat",
      "args": ["mcp"]
    }
  }
}

If you installed the engine manually via SWATPLUS_EXE instead:

{
  "mcpServers": {
    "swatplus-builder": {
      "command": "swat",
      "args": ["mcp"],
      "env": {
        "SWATPLUS_EXE": "/path/to/swatplus_exe"
      }
    }
  }
}

!!! tip "Mixed conda/venv environments" If you get ModuleNotFoundError: No module named 'mcp' when the server starts, the swat binary is resolving from a different Python than where mcp is installed. Pin the exact Python interpreter instead:

```json
{
  "mcpServers": {
    "swatplus-builder": {
      "command": "/opt/miniconda3/bin/python",
      "args": ["-m", "swatplus_builder.mcp.server"],
      "env": {
        "SWATPLUS_EXE": "/usr/local/bin/swatplus_exe",
        "SWATPLUS_BUILDER_ARTIFACTS": "/data/artifacts"
      }
    }
  }
}
```

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 190 lines · 0 tokens per session scan A c1be0ca5e786

Subscribe to this mod's changes

mcp-server is an agent published in the GitHub repository AI-Hydro/swatplus-builder (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,589 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.