A Model Context Protocol (MCP) server implementation that provides tools for accessing Semrush API data.
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)
- 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
| 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 |