MCP Tavily
A Model Context Protocol (MCP) server implementation for Tavily API, providing advanced search and content extraction capabilities.
Features
- Multiple Search Tools:
search
: Basic search functionality with customizable optionssearchContext
: Context-aware search for better relevancesearchQNA
: Question and answer focused search
- Content Extraction: Extract content from URLs with configurable options
- Rich Configuration Options: Extensive options for search depth, filtering, and content inclusion
Usage with MCP
Add the Tavily MCP server to your MCP configuration:
Note: Make sure to replace
your-api-key
with your actual Tavily API key. You can also set it as an environment variableTAVILY_API_KEY
before running the server.
API Reference
Search Tools
The server provides three search tools that can be called through MCP:
1. Basic Search
2. Context Search
3. Q&A Search
Extract Tool
Search Options
All search tools share these options:
Extract Options
Response Format
All tools return responses in the following format:
For search results, each item includes:
- Title
- Content
- URL
For extracted content, each item includes:
- URL
- Raw content
- Failed URLs list (if any)
Error Handling
All tools include proper error handling and will throw descriptive error messages if something goes wrong.
Installation
Installing via Smithery
To install Tavily API Server for Claude Desktop automatically via Smithery:
Manual Installation
Or use it directly with npx:
Prerequisites
- Node.js 16 or higher
- npm or yarn
- Tavily API key (get one from Tavily)
Setup
- Clone the repository
- Install dependencies:
- Set your Tavily API key:
Building
Debugging with MCP Inspector
For development and debugging, we recommend using MCP Inspector, a powerful development tool for MCP servers.
The Inspector provides a user interface for:
- Testing tool calls
- Viewing server responses
- Debugging tool execution
- Monitoring server state
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
This project is licensed under the MIT License.
Support
For any questions or issues:
- Tavily API: refer to the Tavily documentation
- MCP integration: refer to the MCP documentation
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
豊富なカスタマイズおよび統合オプションを備え、Tavily API を使用した高度な検索とコンテンツ抽出を可能にするモデル コンテキスト プロトコル サーバーです。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.Last updated -43
- -securityAlicense-qualityA Model Context Protocol server that performs comprehensive web research by combining Tavily Search and Crawl APIs to gather extensive information and provide structured JSON output tailored for LLMs to create detailed markdown documents.Last updated -4221MIT License
- AsecurityAlicenseAqualityA Model Context Protocol compliant server that facilitates comprehensive web research by utilizing Tavily's Search and Crawl APIs to gather and structure data for high-quality markdown document creation.Last updated -14210MIT License
- -securityFlicense-qualityA Model Context Protocol server that enables web search capabilities using the Tavily API, allowing AI models to retrieve current information from the internet through natural language commands.Last updated -