Skip to main content
Glama
metehan777

Semrush MCP Server

by metehan777

keyword_overview

Analyze keyword metrics like search volume, difficulty, and CPC to inform SEO strategy and content planning.

Instructions

Get keyword metrics including search volume, difficulty, and CPC

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phraseYes
databaseNo

Implementation Reference

  • The handler logic for the 'keyword_overview' tool. It parses the input arguments using KeywordOverviewSchema and calls the Semrush API with the 'phrase_all' report type to retrieve keyword metrics.
    case 'keyword_overview': { const { phrase, database } = KeywordOverviewSchema.parse(args); data = await callSemrushAPI('phrase_all', { phrase, database, export_columns: 'Ph,Nq,Cp,Co,Nr,Td', }); break; }
  • Zod schema defining the input parameters for the keyword_overview tool: 'phrase' (required string) and 'database' (optional string, defaults to 'us').
    const KeywordOverviewSchema = z.object({ phrase: z.string().describe('Keyword phrase to analyze'), database: z.string().default('us').describe('Database code'), });
  • src/index.ts:183-191 (registration)
    Registration of the 'keyword_overview' tool in the MCP server's tool list, specifying name, description, and input schema derived from KeywordOverviewSchema.
    { name: 'keyword_overview', description: 'Get keyword metrics including search volume, difficulty, and CPC', inputSchema: { type: 'object', properties: KeywordOverviewSchema.shape, required: ['phrase'], }, },

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