Skip to content

MCP server

apps/mcp exposes sortie over the Model Context Protocol (stdio), so any MCP-capable agent — Claude Code included — can use the web like an API:

ToolWhat it does
web_outlineDistill a URL into title + interactive-element outline + visible text. No LLM key needed.
web_searchWeb search via SearXNG or the browser-engine fallback chain. No LLM key needed.
web_fetchFetch a URL — HTML or PDF — as clean main-content Markdown. No LLM key needed.
web_extractSchema-grounded semantic extraction from a URL (uses the configured provider).
run_agentMulti-step browser agent: goal + startUrl in, schema-validated output out.
run_saved_queryReplay a saved query by name (optional URL/instruction override); persisted as a real run.

web_extract and run_agent also accept a profile parameter to start from a saved login session.

{
"mcpServers": {
"sortie": {
"command": "node",
"args": ["apps/mcp/dist/index.js"]
}
}
}

(A ready-made .mcp.json ships at the repo root.)

For run_agent credentials, prefer env: references — {"PASSWORD": "env:SHOP_PASSWORD"} is resolved from the server’s environment at call time, so secrets never travel through the MCP client, and (as everywhere in sortie) the model only ever sees {{cred:NAME}} placeholders.