# Drop-in endpoints

Source: https://grounder.net/docs/drop-in

> Point Tavily or Brave request code at Grounder by changing the base URL and key. Each question is answered from sources chosen by hand.

## Swap the base URL

Already on Tavily or Brave? Swap the base URL and send your search key (or a `search`-scoped OAuth access token) in the same authorization header; keep your request and response handling. These endpoints accept each provider’s request format and return its response shape, routed by Grounder.

**base URL** (Diff)

```diff
# Tavily
- https://api.tavily.com/search
+ https://api.grounder.net/compat/tavily/search

# Brave
- https://api.search.brave.com/res/v1/web/search
+ https://api.grounder.net/compat/brave/res/v1/web/search
```

A drop-in takes what its original request can say. Tavily’s honors `query`, `include_domains`, `exclude_domains` and `include_raw_content`, and ignores the rest, `max_results` included. Its `answer` stays empty, because Grounder returns sources and writes no answer. Brave’s honors `q` with its `site:` operators and `search_lang`, and ignores the rest, `count` included. Each returns up to 5 results.

Both add a `grounder` block beside the original fields. The results identify their source and carry licensing information. For the full response or reading a page, use [`POST /v1/search`](https://grounder.net/docs/api/search).

## Claude Desktop’s web search

Claude Desktop on third-party inference can send the model’s web searches to a search server you name, in place of its provider’s. Point that at Grounder: `POST https://api.grounder.net/compat/claude-desktop/search` takes the body Desktop sends, `{"q": "<search terms>"}`, and answers `{"results": [{"title", "url", "snippet"}]}` with up to 5 results, each snippet the result’s whole text, which Desktop cuts to its own 600 characters. It answers inside Desktop’s 15 seconds: a search still running at 12 seconds is stopped and answers a `503` instead of leaving Desktop waiting.

Desktop uses the address exactly as written and sends the headers you give it, so the key goes in `headers` or a `headersHelper`, as `Authorization: Bearer <key>`. Use a [search-only key](https://grounder.net/docs/api#base): it is the same on every device that gets the configuration, and a search-only key can search and do nothing else on your account. In the configuration, under `managedMcpServers`:

**managedMcpServers** (JSON)

```json
{
  "name": "Web search",
  "server": "websearch",
  "provider": "custom",
  "customUrl": "https://api.grounder.net/compat/claude-desktop/search",
  "headers": { "Authorization": "Bearer gr-…" },
  "toolPolicy": { "web_search": "allow" }
}
```

Add it in the app under Connectors, Web search, with the provider set to custom; Desktop’s [web search page](https://claude.com/docs/third-party/claude-desktop/web-tools) has the rest. Each search counts as any search does: the 50 free searches a day, then your credit.
