Skip to main content
Glama
metehan777

Semrush MCP Server

by metehan777

domain_adwords

Analyze Google Ads keywords for any domain to identify paid search strategies and competitor advertising approaches.

Instructions

Get paid search (Google Ads) keywords for a domain

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes
databaseNo
limitNo

Implementation Reference

  • Handler logic for the 'domain_adwords' tool: parses input arguments using the schema and calls the Semrush API with appropriate parameters to fetch paid search keywords data.
    case 'domain_adwords': {
      const { domain, database, limit } = DomainAdwordsSchema.parse(args);
      data = await callSemrushAPI('domain_adwords', {
        domain,
        database,
        display_limit: limit,
        export_columns: 'Ph,Po,Pp,Pd,Nq,Cp,Ur,Tr,Tc,Co,Nr,Td,Avg,Sym,Sp',
      });
      break;
  • Zod schema defining the input parameters for the domain_adwords tool: domain (required), database (default 'us'), and limit (default 10).
    const DomainAdwordsSchema = z.object({
      domain: z.string().describe('Domain to analyze'),
      database: z.string().default('us').describe('Database code'),
      limit: z.coerce.number().default(10).describe('Number of results'),
    });
  • src/index.ts:219-227 (registration)
    Tool registration in the ListTools response, specifying name, description, and inputSchema based on DomainAdwordsSchema.
    {
      name: 'domain_adwords',
      description: 'Get paid search (Google Ads) keywords for a domain',
      inputSchema: {
        type: 'object',
        properties: DomainAdwordsSchema.shape,
        required: ['domain'],
      },
    },

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/metehan777/semrush-mcp'

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