The SEO Tools MCP Server provides a seamless way for Large Language Models (LLMs) to interact with DataForSEO and other SEO tools through the Model Context Protocol. This server acts as a bridge, allowing natural language interactions to trigger SEO analysis, keyword research, backlink checks, and more.
To get started with the SEO Tools MCP Server:
# Clone the repository
git clone https://github.com/Skobyn/dataforseo-mcp-server.git
# Change to the project directory
cd dataforseo-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Before running the server, you need to set up your API credentials:
DataForSEO is the primary API service used by this server. You'll need to set these environment variables:
# Set environment variables for DataForSEO authentication
export DATAFORSEO_LOGIN="your_login"
export DATAFORSEO_PASSWORD="your_password"
If you want to use Local Falcon tools for local SEO:
# Set Local Falcon API key
export LOCALFALCON_API_KEY="your_localfalcon_api_key"
# Optional: Set custom Local Falcon API URL if needed
# export LOCALFALCON_API_URL="https://custom-localfalcon-url.com/api"
# After setting environment variables
npm start
# After setting all environment variables
npm start
The server exposes numerous SEO tools across different categories:
Search engine results data from various search engines:
serp_google_organic_live
- Get real-time Google organic search resultsserp_google_maps_live
- Get Google Maps search resultsFor keyword research and analysis:
keywords_google_ads_search_volume
- Get search volume for keywordskeywords_google_ads_keywords_for_site
- Get keyword suggestions for a domainkeywords_google_trends_explore
- Explore keyword trends over timeAdvanced SEO analytics:
labs_google_keyword_ideas
- Get keyword ideas based on seed keywordslabs_google_related_keywords
- Find related keywordslabs_google_domain_rank_overview
- Get domain ranking overviewFor backlink analysis:
backlinks_summary
- Get a summary of a domain's backlink profilebacklinks_backlinks
- Get a list of backlinks for a domainbacklinks_referring_domains
- Get referring domains for a targetFor local SEO analysis:
localfalcon_calculate_grid_points
- Calculate grid points around a base coordinatelocalfalcon_search_gmb_locations
- Search for Google My Business locationslocalfalcon_run_grid_search
- Run a full grid search for local rankingsThis server implements the Model Context Protocol, making it compatible with LLMs like Claude. To use it with your preferred LLM, you'll need to integrate it according to the platform's specific MCP implementation.
The server uses stdio as its transport layer, which simplifies integration with various LLM platforms.
Here's a simple example of how an LLM might interact with the server:
keywords_google_ads_search_volume
toolFor more detailed examples, check the examples
directory in the repository.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "dataforseo" '{"command":"npm","args":["start"],"env":{"DATAFORSEO_LOGIN":"","DATAFORSEO_PASSWORD":""}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"dataforseo": {
"command": "npm",
"args": [
"start"
],
"env": {
"DATAFORSEO_LOGIN": "",
"DATAFORSEO_PASSWORD": ""
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"dataforseo": {
"command": "npm",
"args": [
"start"
],
"env": {
"DATAFORSEO_LOGIN": "",
"DATAFORSEO_PASSWORD": ""
}
}
}
}
3. Restart Claude Desktop for the changes to take effect