MCP Tavily
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
This server cannot be installed
A Model Context Protocol server enabling advanced search and content extraction using the Tavily API, with rich customization and integration options.