Skip to main content
Glama
ravinwebsurgeon

DataForSEO MCP Server

keywords_data_google_trends_categories

Access Google Trends categories to identify trending topics for keyword research and content strategy development.

Instructions

This endpoint will provide you list of Google Trends Categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handle method implements the core logic of the 'keywords_data_google_trends_categories' tool by making a GET request to the DataForSEO '/v3/keywords_data/google_trends/categories/live' endpoint to retrieve the list of Google Trends categories.
    async handle(params: any): Promise<any> { try { const response = await this.dataForSEOClient.makeRequest('/v3/keywords_data/google_trends/categories/live', 'GET'); return this.validateAndFormatResponse(response); } catch (error) { return this.formatErrorResponse(error); } }
  • Defines the Zod schema for input parameters, which is empty as this tool requires no input parameters.
    getParams(): z.ZodRawShape { return { }; }
  • The getTools method instantiates the GoogleTrendsCategoriesTool and registers it along with other tools by mapping each to a ToolDefinition object containing name, description, params schema, and handler function.
    getTools(): Record<string, ToolDefinition> { const tools = [ new GoogleAdsSearchVolumeTool(this.dataForSEOClient), new DataForSeoTrendsDemographyTool(this.dataForSEOClient), new DataForSeoTrendsSubregionInterestsTool(this.dataForSEOClient), new DataForSeoTrendsExploreTool(this.dataForSEOClient), new GoogleTrendsCategoriesTool(this.dataForSEOClient), new GoogleTrendsExploreTool(this.dataForSEOClient), // Add more tools here ]; return tools.reduce((acc, tool) => ({ ...acc, [tool.getName()]: { description: tool.getDescription(), params: tool.getParams(), handler: (params: any) => tool.handle(params), }, }), {}); }
Install Server

Other Tools

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/ravinwebsurgeon/seo-mcp'

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