Tavily MCP connector
OAuth 2.1/DCRSearchAIDeveloper ToolsConnect to Tavily MCP. Search the web, crawl websites, extract content, map site structure, and run deep research using Tavily's AI-powered search API.
Tavily MCP connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set your credentials”Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret> -
Authorize and make your first call
Section titled “Authorize and make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'tavilymcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Tavily MCP:', link)process.stdout.write('Press Enter after authorizing...')await new Promise(r => process.stdin.once('data', r))// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'tavilymcp_tavily_search',toolInput: { query: 'YOUR_QUERY' },})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "tavilymcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Tavily MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={"query":"YOUR_QUERY"},tool_name="tavilymcp_tavily_search",connection_name=connection_name,identifier=identifier,)print(result)
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- Search tavily — Search the web for current information and return snippets with source URLs
- Research tavily — Run comprehensive multi-source research on a topic or question
- Map tavily — Map a website’s URL structure starting from a base URL
- Extract tavily — Extract raw content from one or more URLs in markdown or plain text format
- Crawl tavily — Crawl a website from a starting URL and extract page content with configurable depth and breadth
Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
tavilymcp_tavily_crawl#Crawl a website from a starting URL and extract page content with configurable depth and breadth.11 params
Crawl a website from a starting URL and extract page content with configurable depth and breadth.
urlstringrequiredThe root URL to begin the crawlallow_externalbooleanoptionalWhether to return external links in the final responseextract_depthstringoptionalAdvanced extraction retrieves more data, including tables and embedded content, with higher success but may increase latencyformatstringoptionalThe format of the extracted web page content. markdown returns content in markdown format. text returns plain text and may increase latency.include_faviconbooleanoptionalWhether to include the favicon URL for each resultinstructionsstringoptionalNatural language instructions for the crawler. Instructions specify which types of pages the crawler should return.limitintegeroptionalTotal number of links the crawler will process before stoppingmax_breadthintegeroptionalMax number of links to follow per level of the tree (i.e., per page)max_depthintegeroptionalMax depth of the crawl. Defines how far from the base URL the crawler can explore.select_domainsarrayoptionalRegex patterns to restrict crawling to specific domains or subdomains (e.g., ^docs\.example\.com$)select_pathsarrayoptionalRegex patterns to select only URLs with specific path patterns (e.g., /docs/.*, /api/v1.*)tavilymcp_tavily_extract#Extract raw content from one or more URLs in markdown or plain text format.6 params
Extract raw content from one or more URLs in markdown or plain text format.
urlsarrayrequiredList of URLs to extract content fromextract_depthstringoptionalUse 'advanced' for LinkedIn, protected sites, or tables/embedded contentformatstringoptionalOutput formatinclude_faviconbooleanoptionalInclude favicon URLsinclude_imagesbooleanoptionalInclude images from pagesquerystringoptionalQuery to rerank content chunks by relevancetavilymcp_tavily_map#Map a website's URL structure starting from a base URL.8 params
Map a website's URL structure starting from a base URL.
urlstringrequiredThe root URL to begin the mappingallow_externalbooleanoptionalWhether to return external links in the final responseinstructionsstringoptionalNatural language instructions for the crawlerlimitintegeroptionalTotal number of links the crawler will process before stoppingmax_breadthintegeroptionalMax number of links to follow per level of the tree (i.e., per page)max_depthintegeroptionalMax depth of the mapping. Defines how far from the base URL the crawler can exploreselect_domainsarrayoptionalRegex patterns to restrict crawling to specific domains or subdomains (e.g., ^docs\.example\.com$)select_pathsarrayoptionalRegex patterns to select only URLs with specific path patterns (e.g., /docs/.*, /api/v1.*)tavilymcp_tavily_research#Run comprehensive multi-source research on a topic or question.2 params
Run comprehensive multi-source research on a topic or question.
inputstringrequiredA comprehensive description of the research taskmodelstringoptionalDefines the degree of depth of the research. 'mini' is good for narrow tasks with few subtopics. 'pro' is good for broad tasks with many subtopicstavilymcp_tavily_search#Search the web for current information and return snippets with source URLs.15 params
Search the web for current information and return snippets with source URLs.
querystringrequiredSearch querycountrystringoptionalBoost search results from a specific country. Must be a full country name (e.g., 'United States', 'Japan', 'Germany'). ISO country codes (e.g., 'us', 'jp') are not supported. Available only if topic is general. See https://docs.tavily.com/documentation/api-reference/search for the full list of supported countries.end_datestringoptionalWill return all results before the specified end date. Required to be written in the format YYYY-MM-DDexact_matchstringoptionalOnly return results containing the exact phrase(s) in quotes in your queryexclude_domainsarrayoptionalList of domains to specifically exclude, if the user asks to exclude a domain set this to the domain of the siteinclude_domainsarrayoptionalA list of domains to specifically include in the search results, if the user asks to search on specific sites set this to the domain of the siteinclude_faviconbooleanoptionalWhether to include the favicon URL for each resultinclude_image_descriptionsbooleanoptionalInclude a list of query-related images and their descriptions in the responseinclude_imagesbooleanoptionalInclude a list of query-related images in the responseinclude_raw_contentbooleanoptionalInclude the cleaned and parsed HTML content of each search resultmax_resultsintegeroptionalThe maximum number of search results to returnsearch_depthstringoptionalThe depth of the search. 'basic' for generic results, 'advanced' for more thorough search, 'fast' for optimized low latency with high relevance, 'ultra-fast' for prioritizing latency above all elsestart_datestringoptionalWill return all results after the specified start date. Required to be written in the format YYYY-MM-DD.time_rangestringoptionalThe time range back from the current date to include in the search resultstopicstringoptionalThe category of the search. This will determine which of our agents will be used for the search