- Semrush MCP Server
Semrush MCP Server
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
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile with your Semrush API key:SEMRUSH_API_KEY=your_api_key_here - Build the project:
npm run build - Start the server:
npm run start
Environment Variables
| Variable | Description | Default |
|---|---|---|
SEMRUSH_API_KEY | Your Semrush API key | (Required) |
API_CACHE_TTL_SECONDS | Time to cache API responses | 300 |
API_RATE_LIMIT_PER_SECOND | Maximum API requests per second | 10 |
NODE_ENV | Environment (development/production) | development |
PORT | Server port | 3000 |
LOG_LEVEL | Logging level | info |
Available Tools
| Tool Name | Description | Required Parameters |
|---|---|---|
semrush_domain_overview | Get domain overview data | domain, [database] |
semrush_domain_organic_keywords | Get organic keywords for domain | domain, [database], [limit] |
semrush_domain_paid_keywords | Get paid keywords for domain | domain, [database], [limit] |
semrush_competitors | Get organic search competitors | domain, [database], [limit] |
semrush_backlinks | Get backlinks for a domain/URL | target, [limit] |
semrush_backlinks_domains | Get referring domains | target, [limit] |
semrush_keyword_overview | Get keyword overview data | keyword, [database] |
semrush_related_keywords | Find related keywords | keyword, [database], [limit] |
semrush_keyword_overview_single_db | Get detailed keyword data for specific database | keyword, database |
semrush_batch_keyword_overview | Analyze up to 100 keywords at once | keywords, database |
semrush_keyword_organic_results | Get domains ranking in organic results | keyword, database, [limit] |
semrush_keyword_paid_results | Get domains in paid search results | keyword, database, [limit] |
semrush_keyword_ads_history | Get 12-month history of domains bidding on keyword | keyword, database, [limit] |
semrush_broad_match_keywords | Get broad matches and alternate search queries | keyword, database, [limit] |
semrush_phrase_questions | Get question-based keywords | keyword, database, [limit] |
semrush_keyword_difficulty | Get difficulty index for ranking in top 10 | keywords, database |
semrush_traffic_summary | Get traffic summary data for domains | domains, [country] |
semrush_traffic_sources | Get traffic sources data | domain, [country] |
semrush_api_units_balance | Check API units balance | check: 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
| Tool | API Units per Line |
|---|---|
semrush_keyword_overview | 10 |
semrush_keyword_overview_single_db | 10 |
semrush_batch_keyword_overview | 10 |
semrush_keyword_organic_results | 10 |
semrush_keyword_paid_results | 20 |
semrush_related_keywords | 40 |
semrush_keyword_ads_history | 100 |
semrush_broad_match_keywords | 20 |
semrush_phrase_questions | 40 |
semrush_keyword_difficulty | 50 |
Adding to Cursor or Claude
To add this MCP server to Cursor or Claude:
Cursor
- In Cursor, go to Settings > MCP Servers
- Click "Add Server"
- 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
- Name:
- 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
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
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.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
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.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Tavily Mcp
Amap Maps高德地图官方 MCP Server
Serper MCP ServerA Serper MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Playwright McpPlaywright MCP server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
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.
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
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"