Bosphorus

← Knowledge base

Web search with your own Tavily key, in chat, editor and API

Register Tavily's hosted search server once with no key of its own; each person searches the web on their own Tavily key from aimo, VS Code or a script.

ToolsWeb searchIdentityAPIChecked against the product on

Tavily is a web search service built for language models: it searches, reads pages and returns clean text with its sources. This article registers Tavily’s hosted tool server once, with no key of its own, so that every person searches on their own Tavily key, from the chat workspace, from the editor and from their own scripts. The platform holds no Tavily key at all, so nobody ever spends somebody else’s credits.

Every call quoted below was made against a live installation on 3 November 2026, with a key and without one, and the output shown is the output it gave.

Before you start: you need access to a Bosphorus installation and a platform key (an API key) on it. If you would like to try it, contact Morten or write to iletisim@morten.com.tr.

Who does what

Task Who Where
Register the Tavily server and declare the key variable Administrator Console, /mcp
Create a Tavily key Each person app.tavily.com
Save the key Each person Console, My variables (/vault)
Search from a chat Each person aimo, Integrations → Tools
Search from the editor Each person aimo for VS Code
Search from a script Each person the gateway’s REST call, with a personal API key

What you get

Five tools, each described here in Tavily’s own words:

Tool What it does
tavily_search Search the web for current information on any topic.
tavily_extract Extract content from URLs.
tavily_crawl Crawl a website starting from a URL.
tavily_map Map a website’s structure.
tavily_research Perform comprehensive research on a given topic or question.

Part A: the administrator

A1. Register the server

On the console’s /mcp page, open Register a server and enter:

Field Value
Name Tavily web search
URL (streamable HTTP endpoint) https://mcp.tavily.com/mcp/
Description Web search on your own Tavily key
Auth none, with Secret left empty
Identity require user (signed assertion) ticked

Then press Register & sync. Expect this first sync to fail: Tavily refuses even the MCP handshake without a key, and this server has none, so the row shows error with:

mcp http 401 on initialize — this server has no shared key: declare a per-person variable on the Variables tab, set your own value on /vault, then Sync tools

A2. Declare the key variable

On the Variables tab of /mcp, declare:

Field Value
Server Tavily web search
Variable TAVILY_API_KEY
Delivery header (third-party server)
Header Authorization
Template Bearer ${value}
Required ticked
Secret ticked
Description Your own Tavily API key (tvly-…)

In one line, this is what the gateway does on each person’s calls:

TAVILY_API_KEY  ->  Authorization: Bearer ${value}

A3. Fill the tool list with your own key

Save your own Tavily key first (steps B1 and B2 below). Then press Sync tools on the row: discovery runs with your key, the status turns ok and the five tools are cached. From then on, a person who has not saved a key still sees the five tools, served from that cached list, and is told how to add a key the first time they use one.

A4. Leave it off by default in aimo

On the Open WebUI mirror tab, leave Default-on in aimo unticked for this server and press Sync aimo now. Every tool switched on in a chat describes itself to the model on every message, and every Tavily call spends the person’s own credits, so people switch it on when they want to search.

Part B: each person

B1. Create a Tavily key

Sign in at app.tavily.com and copy an API key from the dashboard. Tavily keys start with tvly-.

B2. Save it on My variables

Sign in to the console and open My variables (/vault). Under Tavily web search, paste the key into TAVILY_API_KEY and press Save. The page confirms with a short fingerprint and never shows the value again. The key reaches Tavily only on your calls.

B3. Search from a chat

In aimo, open the chat’s Integrations menu, choose Tools and switch on Tavily web search (in the Turkish interface: Entegrasyonlar → Araçlar). Then ask, for example, Search the web: how long is the Bosphorus Bridge? The model answers from the pages Tavily found and can name them.

B4. Search from the editor

In aimo for VS Code the model finds Tavily’s tools on demand. To load them directly, pin the tavily server with AIMO: Choose Tool Servers; they then appear as mcp__tavily__tavily_search and so on.

B5. Search from a script

A script calls the tool as you, so it needs your personal API key, not a team key: create one on My API key as described in Call the API with your own keys. With the key in BOSPHORUS_KEY:

GW=https://ai.corp.example
curl -s $GW/api/mcp/tavily/tools/tavily_search \
  -H "Authorization: Bearer $BOSPHORUS_KEY" -H 'Content-Type: application/json' \
  -d '{"query":"Bosphorus Bridge length","max_results":3}' \
  | jq -r '.result | fromjson | .auth_mode, .results[].url'
keyed
https://bridgeinfo.net/bridge/index.php?ID=161
https://en.wikipedia.org/wiki/Bosphorus_Bridge
https://www.safaraq.com/en/turkey/blog/information-bosphorus-bridge

keyed is Tavily’s own confirmation that the search ran on your key. The full answer also carries each result’s title, a text excerpt and a relevance score; the pages it finds will change over time.

Large results

tavily_extract and tavily_crawl return whole pages as text, and that text goes into the model’s context. Measured on the installation: a three-result search returned about 3,400 characters, and extracting one encyclopaedia page returned about 62,700 characters, roughly 16,000 tokens. Prefer tavily_search for a quick fact, extract only the pages you need, and keep a crawl’s limit and max_depth small.

When something is missing

Situation What happens
You have not saved a key The tool answers This tool needs your own TAVILY_API_KEY for “Tavily web search”, and none is set. Set it once at …/vault?server=tavily …, and nothing is sent to Tavily.
The key is wrong or was revoked Tavily answers Unauthorized: missing or invalid API key. inside the tool result. Create a new key and replace the value on My variables.
A script gets this mcp server requires a user identity The script used a team or service key. Use your personal key (B5).
The tools are not in aimo’s list An administrator has not pressed Sync aimo now since registering the server (A4).

Why no platform key

Your own GitHub key uses the same pattern for a code host.