Skip to main content
Glama
metehan777

Semrush MCP Server

by metehan777

domain_overview

Analyze domain performance by retrieving organic traffic data, keyword rankings, and authority metrics for SEO assessment.

Instructions

Get domain analytics overview including organic traffic, keywords, and authority score

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes
databaseNo

Implementation Reference

  • Handler function for the 'domain_overview' tool. It parses the input arguments using DomainOverviewSchema and calls the Semrush API with the 'domain_ranks' report type, requesting specific columns like organic traffic (Or,Ot,Oc), ad traffic (Ad,At,Ac), authority score (Sh), and more.
    case 'domain_overview': { const { domain, database } = DomainOverviewSchema.parse(args); data = await callSemrushAPI('domain_ranks', { domain, database, export_columns: 'Db,Dn,Rk,Or,Ot,Oc,Ad,At,Ac,Sh,Sv', }); break; }
  • Zod schema for validating inputs to the domain_overview tool: requires 'domain' string, optional 'database' string defaulting to 'us'.
    const DomainOverviewSchema = z.object({ domain: z.string().describe('Domain to analyze'), database: z.string().default('us').describe('Database code (e.g., us, uk, ca)'), });
  • src/index.ts:174-182 (registration)
    Registration of the 'domain_overview' tool in the MCP server's listTools response, including name, description, and input schema derived from DomainOverviewSchema.
    { name: 'domain_overview', description: 'Get domain analytics overview including organic traffic, keywords, and authority score', inputSchema: { type: 'object', properties: DomainOverviewSchema.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