Setting Up the Official DataForSEO MCP Server: Simple Guide
The DataForSEO MCP server is a powerful tool that allows the seamless integration of DataForSEO APIs and enables advanced SEO data analytics capabilities.This simple guide will walk you through the process of setting up and using the official DataForSEO MCP server.
What is DataForSEO MCP server?
DataForSEO MCP server is the implementation of the Model Context Protocol, allowing AI tools to obtain and process data from DataForSEO. In a nuthsell, this MCP server is a bridge between AI models and our APIs, so that you can easily extract data and turn it into insights without writing a single line of code.
Note that we designed and tested this version of the DataForSEO MCP server using the Claude AI model and interface.
Prerequisites
Before getting started, make sure:
Installation
You can install DataForSEO MCP server in a few simple steps in your MacOS Terminal or Windows Command Prompt.
- Clone the repository:
git clone https://github.com/dataforseo/mcp-server-typescript
- Change the project’s directory:
cd mcp-server-typescript
- Install dependencies:
npm install
- Set up environment variables:
export DATAFORSEO_USERNAME=your_username
export DATAFORSEO_PASSWORD=your_password
export ENABLED_MODULES="SERP,KEYWORDS_DATA,ONPAGE,DATAFORSEO_LABS"
Once the server is installed, you can build and run the project with the following commands:
npm run build
node build/index.js
Connect Claude with DataForSEO MCP Server
You can connect DataForSEO MCP server with various AI models, but in this guide we will consider Claude in particular.
To configure DataForSEO MCP server in Claude, open Developer Settings and select Edit Config. Open the JSON file with a name similar to ‘claude_desktop_config’ and paste the following setup:
{
"mcpServers": {
"dataforseo": {
"command": "node",
"args": [
"path_to_your_project\\build\\index.js"
],
"env": {
"DATAFORSEO_USERNAME": "your_user_name",
"DATAFORSEO_PASSWORD": "your_password"
}
}
}
}
Note that you have to specify your own path in the args
array and input your DataForSEO API login and password in the env
object.