MCPSERV.CLUB
NoeSamaille

Tavily MCP Server

MCP Server

FastAPI SSE server for Tavily search and extraction

Stale(50)
1stars
2views
Updated Jun 9, 2025

About

A lightweight FastAPI-based MCP server that authenticates API keys, exposes endpoints for Tavily search and content extraction, and streams results via Server-Sent Events using fastapi-mcp.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Tavily MCP Server Overview

The Tavily MCP Server bridges the gap between a powerful web‑search API and AI assistants that rely on the Model Context Protocol. By exposing Tavily’s search and content extraction capabilities through a FastAPI‑based SSE endpoint, the server lets Claude or other MCP clients fetch up‑to‑date information without leaving their conversational context. This solves the common problem of AI assistants being stuck with static knowledge bases, enabling them to browse the web on demand and cite real sources in their responses.

At its core, the server authenticates every request with an API key and forwards search or extraction queries to Tavily. The endpoint accepts a rich set of parameters—query text, depth (basic or advanced), topic filters, time ranges, and domain whitelists or blacklists—allowing developers to fine‑tune results for relevance and freshness. The endpoint pulls structured content from arbitrary URLs, optionally including images and controlling extraction depth. Both endpoints return a unified object, which can be streamed to the client via Server‑Sent Events for real‑time feedback.

Key features of this MCP server include:

  • SSE integration: Continuous streaming of search results lets AI assistants present progressive information, improving user experience in long conversations.
  • Fine‑grained control: Parameters such as , , and domain filters give developers precise command over the scope of queries.
  • Content extraction: The extract endpoint transforms raw URLs into consumable text blocks, enabling AI agents to read and summarize web pages on the fly.
  • Secure API key handling: Dual‑key authentication protects both the server itself and the underlying Tavily service.

Typical use cases span from building a knowledge‑base‑augmented chatbot that can fetch the latest news, to creating a research assistant that pulls in academic abstracts or product specifications from the web. In enterprise settings, the server can be deployed behind a corporate VPN, ensuring that AI tools access only approved domains while still benefiting from real‑time data. By packaging Tavily’s functionality as an MCP endpoint, developers can integrate web browsing into existing AI workflows with minimal friction—simply register the server’s URL as a tool, and the assistant can call it like any other native function.