Skip to main content
Glama

DataForSEO MCP Server

by Skobyn

DataForSEO MCP Server

A stdio-based Model Context Protocol (MCP) server for DataForSEO API.

Installation

You can run directly with npx:

npx @skobyn/mcp-dataforseo --config '{"username":"your_username","password":"your_password"}'

Or install globally:

npm install -g @skobyn/mcp-dataforseo mcp-dataforseo --config '{"username":"your_username","password":"your_password"}'

Usage

Send JSON requests to stdin and receive JSON responses from stdout:

echo '{"type":"dataforseo_serp","keyword":"artificial intelligence"}' | npx @skobyn/mcp-dataforseo --config '{"username":"your_username","password":"your_password"}'

Supported Request Types

SERP API

{ "type": "dataforseo_serp", "keyword": "artificial intelligence", "location_code": 2840, "language_code": "en", "device": "desktop", "os": "windows" }

Keywords Data API

{ "type": "dataforseo_keywords_data", "keywords": ["seo", "search engine optimization"], "location_code": 2840, "language_code": "en" }
{ "type": "dataforseo_backlinks", "target": "example.com", "limit": 100 }

On-Page API

{ "type": "dataforseo_onpage", "url": "https://example.com", "check_spell": true, "enable_javascript": true }

Domain Analytics API

{ "type": "dataforseo_domain_analytics", "domain": "example.com" }

App Data API

{ "type": "dataforseo_app_data", "app_id": "com.example.app" }

Merchant API

{ "type": "dataforseo_merchant", "keyword": "bluetooth speakers", "location_code": 2840, "language_code": "en" }

Business Data API

{ "type": "dataforseo_business_data", "keyword": "pizza delivery", "location_code": 2840, "language_code": "en" }

Integration Example

Here's how to use this MCP server in your Node.js code:

const { spawn } = require('child_process'); // Start the MCP server const server = spawn('npx', ['@skobyn/mcp-dataforseo', '--config', '{"username":"your_username","password":"your_password"}']); // Define the request const request = { type: 'dataforseo_serp', keyword: 'artificial intelligence' }; // Send the request server.stdin.write(JSON.stringify(request) + '\n'); server.stdin.end(); // Process the response server.stdout.on('data', (data) => { const response = JSON.parse(data.toString()); console.log(response); }); // Handle errors server.stderr.on('data', (data) => { console.error(`Error: ${data}`); });

Environment Variables

You can also use environment variables instead of the config:

export DATAFORSEO_USERNAME=your_username export DATAFORSEO_PASSWORD=your_password npx @skobyn/mcp-dataforseo

Publishing

To publish this package to npm:

  1. Login to npm if not already logged in:
    npm login
  2. Publish the package:
    npm publish --access public
  3. To update the package later:
    npm version patch npm publish
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A stdio-based server that enables interaction with the DataForSEO API through the Model Context Protocol, allowing users to fetch SEO data including search results, keywords data, backlinks, on-page analysis, and more.

  1. Installation
    1. Usage
      1. Supported Request Types
        1. SERP API
        2. Keywords Data API
        3. Backlinks API
        4. On-Page API
        5. Domain Analytics API
        6. App Data API
        7. Merchant API
        8. Business Data API
      2. Integration Example
        1. Environment Variables
          1. Publishing

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              A server that provides access to Google Search Console data through the Model Context Protocol, allowing users to retrieve and analyze search analytics data with customizable dimensions and reporting periods.
              Last updated -
              6
              36
              12
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A server that enables AI systems to browse, retrieve content from, and interact with web pages through the Model Context Protocol.
              Last updated -
            • -
              security
              A
              license
              -
              quality
              A server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.
              Last updated -
              3
              5
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables Claude to interact with DataForSEO APIs, allowing access to SEO data including SERPs, keyword research, on-page metrics, and domain analytics.
              Last updated -
              20
              206
              59
              TypeScript
              Apache 2.0

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/Skobyn/mcp-dataforseo'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server