Tavily MCP
Lets your AI agent search the web in real time and extract, map and crawl web pages with Tavily.
2.5k stars on GitHubby TavilyLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add tavily -e TAVILY_API_KEY="<your value>" -- npx -y tavily-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
TAVILY_API_KEY | Your Tavily API key from tavily.com | Yes |
DEFAULT_PARAMETERS | JSON string with default search parameters (e.g., {"include_images": true, "max_results": 15}) | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Search the web for this week's news on solar subsidies.
Extract the main text from these three URLs.
What it is
This server connects your agent to Tavily's search service. It can run live web searches, pull content out of pages, map a website's structure and crawl a site. You can use Tavily's hosted server or run it locally.
What it can do
tavily-search: real-time web searchtavily-extract: extract content from web pages- Map: build a structured map of a website
- Crawl: explore a website systematically
When to use
- βΊWhen you need current information that is not in the model's training data.
- βΊWhen you want the text of specific web pages pulled out cleanly.
- βΊWhen you want to explore all the pages of a website.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
tavily-best-practicesHelps your agent use the Tavily search API well, covering web search, page extraction, site crawling, and research in apps and AI workflows.tavily-webLets your agent search the web and extract information from websites. It's useful for getting current data and analyzing online content.tavily-webLets your agent search the web for current information, pull content from web addresses and crawl sites using the Tavily API.Frequently asked questions
Do I need an API key?
Yes, or you can sign in with OAuth. A Tavily API key can be obtained with a free account.
Can I use it without installing?
Yes. Use the remote server at https://mcp.tavily.com/mcp/ with your key.
How do I run it locally?
Run npx -y tavily-mcp@latest with TAVILY_API_KEY set. Node.js v20+ is required.
Can I set default search options?
Yes, through the DEFAULT_PARAMETERS setting, for example max_results or search_depth.
Which clients are covered?
The readme shows Claude Code, Cursor and Claude Desktop, and it works with other MCP clients.
Can I clear a stuck OAuth login?
Yes. Run rm -rf ~/.mcp-auth and sign in again.
If it does not work
- βΊCheck that your Tavily API key is correct in the URL or TAVILY_API_KEY.
- βΊRun
node --versionto confirm Node.js is v20 or higher. - βΊIf OAuth is stuck, delete ~/.mcp-auth and reconnect.
5 new skills a week. 1 minute to read.