> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tavily.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replit

> Add Tavily web search, extraction, crawling, and research to Replit through the Tavily MCP server.

[Replit](https://replit.com) turns ideas into apps, sites, and everyday work, on the [web, in the Desktop App, and in the Mobile App](https://docs.replit.com/welcome). Add Tavily's hosted [MCP server](https://docs.tavily.com/documentation/mcp.md) to give Replit Agent live web search, extraction, crawling, and research (`tavily_search`, `tavily_extract`, `tavily_crawl`, `tavily_map`, `tavily_research`) in Chat.

## Remote MCP server

Create a [Replit](https://replit.com) account and get a [Tavily API key](https://app.tavily.com).

**1. Add the server**

Choose one of the following ways to add Tavily.

> [tab] Add to Replit button
>
> Click **Add to Replit** and confirm the install.
>
> [Add to Replit](https://replit.com/integrations?mcp=eyJkaXNwbGF5TmFtZSI6IlRhdmlseSIsImJhc2VVcmwiOiJodHRwczovL21jcC50YXZpbHkuY29tL21jcC8ifQ==)

> [tab] Integrations
>
> In your Replit Workspace, select **Integrations** in the sidebar. Search for Tavily and click **Sign in**.

> [tab] Custom MCP server
>
> Open **Settings → Integrations → Your integrations**, choose **Add custom → Add personal MCP server**, and enter:
>
> | Field | Value |
> | - | - |
> | **Display name** | `Tavily` |
> | **MCP Server URL** | `https://mcp.tavily.com/mcp/` |
>
> Click **Test & save**.
>
> ![Replit's Connect Tavily dialog with the display name Tavily, the MCP Server URL, and Advanced settings open with an Authorization custom header](https://mintcdn.com/tavilyai/AGFEN4hxgqAQ2F9r/images/replit-custom-mcp-server.webp?fit=max\&auto=format\&n=AGFEN4hxgqAQ2F9r\&q=85\&s=cad56469b40488961385a481d6129c37)
>
> The Custom MCP server dialog over the Integrations page. Advanced settings are open to show where a header goes; you only need one for API-key authentication.

**2. Authenticate**

Replit opens Tavily's sign-in flow. Sign in to Tavily in your browser, then return to Replit. Tavily now shows as connected under **Your integrations**.

**3. Try it**

In Chat, ask:

> Use Tavily to find three AI product announcements from the past seven days. Add a "Latest AI News" section to my app with a title, one-sentence summary, date, and source link for each.

Approve the tool call if Replit Agent asks. Tavily tool calls and source links in the response confirm it worked.

### Use an API key

To skip OAuth, add Tavily with the **Custom MCP server** option from above and open **Advanced settings** before you click **Test & save**. Add this header:

| Header | Value |
| - | - |
| `Authorization` | `Bearer YOUR_TAVILY_API_KEY` |

Replace the placeholder with your key, and enter it only in the header field.

### Keyless access

For limited Search and Extract access without signing in, add the header `X-Tavily-Access-Mode` with the value `keyless` under **Advanced settings** in the **Custom MCP server** option. See [keyless access](https://docs.tavily.com/documentation/keyless.md) for limits and supported tools.

## Troubleshooting

* **Sign-in doesn't complete.** Start the sign-in again from **Your integrations**, and finish Tavily's sign-in in the browser tab Replit opens.
* **Replit Agent doesn't use Tavily.** Confirm Tavily shows as connected, then name it in your prompt, for example "Use Tavily to…".
* **Replit Agent says a tool was rejected.** Replit scans every MCP tool before it runs and blocks any it flags as unsafe. Ask Replit Agent which tool was rejected and why.
* **OAuth uses the wrong key.** Tavily uses the key named `mcp_auth_default`, so rename a key in the [Tavily dashboard](https://app.tavily.com). See [API key selection](https://docs.tavily.com/documentation/mcp.md#oauth-authentication).

## Resources

* [Replit integrations](https://docs.replit.com/home/integrations)
* [Connect Replit through MCP](https://docs.replit.com/build/connect-via-mcp)
* [Replit MCP server list](https://docs.replit.com/features/mcp/overview)
* [Tavily MCP server](https://docs.tavily.com/documentation/mcp.md)
