Sponsored by Deepsite.site

Semrush MCP Server

Created By
mrkooblu8 months ago
A Model Context Protocol (MCP) server implementation that provides tools for accessing Semrush API data.
Content

Semrush MCP Server

A Model Context Protocol (MCP) server implementation that provides tools for accessing Semrush API data.

Features

The Semrush MCP server provides tools for:

  • Domain Analytics

    • Domain overview information
    • Organic and paid keywords analysis
    • Competitor analysis
  • Keyword Analytics

    • Keyword overview data
    • Related keyword discovery
  • Backlink Analysis

    • Backlink data
    • Referring domains analysis
  • Traffic Analytics

    • Traffic summary for domains
    • Traffic sources analysis
    • (Note: Requires .Trends API subscription)

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Create a .env file with your Semrush API key:
    SEMRUSH_API_KEY=your_api_key_here
    
  4. Build the project:
    npm run build
    
  5. Start the server:
    npm run start
    

Environment Variables

VariableDescriptionDefault
SEMRUSH_API_KEYYour Semrush API key(Required)
API_CACHE_TTL_SECONDSTime to cache API responses300
API_RATE_LIMIT_PER_SECONDMaximum API requests per second10
NODE_ENVEnvironment (development/production)development
PORTServer port3000
LOG_LEVELLogging levelinfo

Available Tools

Tool NameDescriptionRequired Parameters
semrush_domain_overviewGet domain overview datadomain, [database]
semrush_domain_organic_keywordsGet organic keywords for domaindomain, [database], [limit]
semrush_domain_paid_keywordsGet paid keywords for domaindomain, [database], [limit]
semrush_competitorsGet organic search competitorsdomain, [database], [limit]
semrush_backlinksGet backlinks for a domain/URLtarget, [limit]
semrush_backlinks_domainsGet referring domainstarget, [limit]
semrush_keyword_overviewGet keyword overview datakeyword, [database]
semrush_related_keywordsFind related keywordskeyword, [database], [limit]
semrush_keyword_overview_single_dbGet detailed keyword data for specific databasekeyword, database
semrush_batch_keyword_overviewAnalyze up to 100 keywords at oncekeywords, database
semrush_keyword_organic_resultsGet domains ranking in organic resultskeyword, database, [limit]
semrush_keyword_paid_resultsGet domains in paid search resultskeyword, database, [limit]
semrush_keyword_ads_historyGet 12-month history of domains bidding on keywordkeyword, database, [limit]
semrush_broad_match_keywordsGet broad matches and alternate search querieskeyword, database, [limit]
semrush_phrase_questionsGet question-based keywordskeyword, database, [limit]
semrush_keyword_difficultyGet difficulty index for ranking in top 10keywords, database
semrush_traffic_summaryGet traffic summary data for domainsdomains, [country]
semrush_traffic_sourcesGet traffic sources datadomain, [country]
semrush_api_units_balanceCheck API units balancecheck: true

Parameters in [brackets] are optional.

API Units Consumption

API requests to Semrush consume API units from your account. Different types of requests have different costs. You can check your API units balance using the semrush_api_units_balance tool.

Keyword Reports API Units Consumption

ToolAPI Units per Line
semrush_keyword_overview10
semrush_keyword_overview_single_db10
semrush_batch_keyword_overview10
semrush_keyword_organic_results10
semrush_keyword_paid_results20
semrush_related_keywords40
semrush_keyword_ads_history100
semrush_broad_match_keywords20
semrush_phrase_questions40
semrush_keyword_difficulty50

Adding to Cursor or Claude

To add this MCP server to Cursor or Claude:

Cursor

  1. In Cursor, go to Settings > MCP Servers
  2. Click "Add Server"
  3. Configure the server with the following settings:
    • Name: Semrush MCP (or any name you prefer)
    • Type: command
    • Command: node
    • Arguments: /path/to/semrush-mcp/dist/index.js (replace with your actual path)
    • Environment Variables:
      • SEMRUSH_API_KEY: Your Semrush API key
      • Other optional variables as needed
  4. Click "Save"

Claude Desktop

Configure the MCP server in the Claude Desktop settings following the documentation.

Development

To run the server in development mode:

npm run dev

Security Notes

  • Never share your Semrush API key publicly
  • API key provides access to your API units balance
  • Exposing credentials can lead to unauthorized API usage and unexpected charges

License

MIT

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp