Google Trends API for LangChain
ai.trendsapi/google-trends
Google Trends search interest over time with growth metrics. Free key at trendsapi.ai
client:LangChain
transport:streamable-http
Install Google Trends API in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"google-trends": {
"transport": "streamable_http",
"url": "https://google-trends.api.trendsapi.ai/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs