Skip to main content
Glama
UpendraNath

Tavily Web Search MCP Server

by UpendraNath

web_search

Search the web for information using natural language queries to find relevant data and answers through the Tavily API.

Instructions

Search the web for information about the given query

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Implementation Reference

  • server.py:15-19 (handler)
    The web_search tool handler: registered via @mcp.tool(), accepts a query string, performs web search using TavilyClient.get_search_context(), and returns the search results.
    @mcp.tool() def web_search(query: str) -> str: """Search the web for information about the given query""" search_results = client.get_search_context(query=query) return search_results

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/UpendraNath/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server