Tavily MCP connector
OAuth 2.1/DCR SearchAIDeveloper 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.
url string required The root URL to begin the crawl allow_external boolean optional Whether to return external links in the final response extract_depth string optional Advanced extraction retrieves more data, including tables and embedded content, with higher success but may increase latency format string optional The format of the extracted web page content. markdown returns content in markdown format. text returns plain text and may increase latency. include_favicon boolean optional Whether to include the favicon URL for each result instructions string optional Natural language instructions for the crawler. Instructions specify which types of pages the crawler should return. limit integer optional Total number of links the crawler will process before stopping max_breadth integer optional Max number of links to follow per level of the tree (i.e., per page) max_depth integer optional Max depth of the crawl. Defines how far from the base URL the crawler can explore. select_domains array optional Regex patterns to restrict crawling to specific domains or subdomains (e.g., ^docs\.example\.com$) select_paths array optional Regex 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.
urls array required List of URLs to extract content from extract_depth string optional Use 'advanced' for LinkedIn, protected sites, or tables/embedded content format string optional Output format include_favicon boolean optional Include favicon URLs include_images boolean optional Include images from pages query string optional Query to rerank content chunks by relevance tavilymcp_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.
url string required The root URL to begin the mapping allow_external boolean optional Whether to return external links in the final response instructions string optional Natural language instructions for the crawler limit integer optional Total number of links the crawler will process before stopping max_breadth integer optional Max number of links to follow per level of the tree (i.e., per page) max_depth integer optional Max depth of the mapping. Defines how far from the base URL the crawler can explore select_domains array optional Regex patterns to restrict crawling to specific domains or subdomains (e.g., ^docs\.example\.com$) select_paths array optional Regex 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.
input string required A comprehensive description of the research task model string optional Defines the degree of depth of the research. 'mini' is good for narrow tasks with few subtopics. 'pro' is good for broad tasks with many subtopics tavilymcp_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.
query string required Search query country string optional Boost 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_date string optional Will return all results before the specified end date. Required to be written in the format YYYY-MM-DD exact_match string optional Only return results containing the exact phrase(s) in quotes in your query exclude_domains array optional List of domains to specifically exclude, if the user asks to exclude a domain set this to the domain of the site include_domains array optional A 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 site include_favicon boolean optional Whether to include the favicon URL for each result include_image_descriptions boolean optional Include a list of query-related images and their descriptions in the response include_images boolean optional Include a list of query-related images in the response include_raw_content boolean optional Include the cleaned and parsed HTML content of each search result max_results integer optional The maximum number of search results to return search_depth string optional The 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 else start_date string optional Will return all results after the specified start date. Required to be written in the format YYYY-MM-DD. time_range string optional The time range back from the current date to include in the search results topic string optional The category of the search. This will determine which of our agents will be used for the search