scaffsearch

Web search for AI agents

Three ways to plug Scaff Search into an agent. All are free and need no key.

Last updated 2026-11-29

Requests are logged for research, including MCP client name and version. Privacy & logging.

Remote MCP server

Streamable HTTP transport at https://search.scaff.dev/mcp. Stateless, no auth. One tool: web_search(query, num?, lang?).

Claude Code

claude mcp add --transport http scaff-search https://search.scaff.dev/mcp

Generic MCP client config

{
  "mcpServers": {
    "scaff-search": { "type": "http", "url": "https://search.scaff.dev/mcp" }
  }
}

Raw JSON-RPC

curl -s https://search.scaff.dev/mcp -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"web_search","arguments":{"query":"sqlite wal mode"}}}'

Function calling (OpenAI / Anthropic tool schema)

{
  "name": "web_search",
  "description": "Search the web. Returns title, url and snippet for each result.",
  "parameters": {
    "type": "object",
    "properties": {
      "query": { "type": "string" },
      "num":   { "type": "integer", "minimum": 1, "maximum": 20 }
    },
    "required": ["query"]
  }
}

Implement it as GET https://search.scaff.dev/api/search?q={query}&num={num} and return results to the model. For Anthropic's API use the same object with input_schema in place of parameters.

LangChain tool

import requests
from langchain_core.tools import tool

@tool
def web_search(query: str, num: int = 5) -> list[dict]:
    """Search the web and return title, url and snippet for each result."""
    r = requests.get("https://search.scaff.dev/api/search", params={"q": query, "num": num}, timeout=20)
    r.raise_for_status()
    return r.json()["results"]

Machine-readable discovery