tavily_ai_tavily_mcp

tavily_ai_tavily_mcp

by tavily-ai
A server enabling AI assistants like Claude to integrate with Tavily's search and data extraction tools for real-time web access.

Tavily MCP Server for Claude

Overview

The Tavily MCP Server for Claude is an implementation of the Model Context Protocol (MCP) developed by Anthropic. It enables seamless integration between AI assistants like Claude and Tavily's advanced search and data extraction tools. This integration provides real-time access to web information, complete with sophisticated filtering options and domain-specific search features.

Key Features

  • Seamless Interaction: Integrates with tavily-search and tavily-extract tools.
  • Real-Time Web Search: Access to up-to-date web information.
  • Data Extraction: Intelligent extraction of content from web pages.

Prerequisites

Before getting started, ensure you have the following:
- Tavily API Key: Sign up for a free account here.
- Claude Desktop or Cursor: Download Claude Desktop or Cursor.
- Node.js: Version 20 or higher. Verify installation with node --version.
- Git: Required for cloning the repository. Install via:
- macOS: brew install git
- Linux (Debian/Ubuntu): sudo apt install git
- Linux (RedHat/CentOS): sudo yum install git
- Windows: Download Git for Windows.

Installation

Running with NPX

npx -y [email protected]

Installing via Smithery

npx -y @smithery/cli install @tavily-ai/tavily-mcp --client claude

Git Installation

  1. Clone the repository:
    shell git clone https://github.com/tavily-ai/tavily-mcp.git cd tavily-mcp
  2. Install dependencies:
    shell npm install
  3. Build the project:
    shell npm run build

Configuration

Configuring Cline

  1. Open Cline in VS Code.
  2. Navigate to the "MCP Servers" tab and search for "Tavily".
  3. Click "Install" and enter your Tavily API key.

Alternatively, manually configure by editing the cline_mcp_settings.json file:

{
  "mcpServers": {
    "tavily-mcp": {
      "command": "npx",
      "args": ["-y", "[email protected]"],
      "env": {
        "TAVILY_API_KEY": "your-api-key-here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Configuring Cursor

  1. Open Cursor Settings.
  2. Navigate to Features > MCP Servers.
  3. Add a new server with the following command:
    shell env TAVILY_API_KEY=your-api-key npx -y [email protected]

Configuring Claude Desktop

For macOS:

touch "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"

For Windows:

code %APPDATA%\Claude\claude_desktop_config.json

Add the Tavily server configuration:

{
  "mcpServers": {
    "tavily-mcp": {
      "command": "npx",
      "args": ["-y", "[email protected]"],
      "env": {
        "TAVILY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Usage

Tavily Search Examples

  1. General Web Search:
    Can you search for recent developments in quantum computing?
  2. News Search:
    Search for news articles about AI startups from the last 7 days.
  3. Domain-Specific Search:
    Search for climate change research on nature.com and sciencedirect.com.

Tavily Extract Examples

  1. Extract Article Content:
    Extract the main content from this article: https://example.com/article

Combining Search and Extract

Search for news articles about AI startups from the last 7 days and extract the main content from each article to generate a detailed report.

Troubleshooting

Common Issues

  1. Server Not Found:
  2. Verify Node.js and npm installations.
  3. Check the Claude Desktop configuration syntax.
  4. NPX Issues:
  5. Use the full path to the npx executable.
  6. API Key Issues:
  7. Confirm the Tavily API key is valid and correctly configured.

Acknowledgments

  • Model Context Protocol: For the MCP specification.
  • Anthropic: For Claude Desktop.

License

This project is licensed under the MIT License.

Features & Capabilities

Categories
mcp_server model_context_protocol javascript claude search api_integration docker

Implementation Details

Stats

0 Views
190 GitHub Stars

Repository Info

tavily-ai Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300