DataForSEO MCP Server

by Skobyn
Verified

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.

Integrations

  • Supports JavaScript functionality in on-page analysis through the 'enable_javascript' parameter in the DataForSEO On-Page API integration.

  • Provides Node.js integration examples for programmatically interacting with the DataForSEO API services through child processes.

  • Supports installation and distribution through npm, allowing users to install the package globally or run it directly with npx.

DataForSEO MCP サーバー

DataForSEO API 用の stdio ベースの Model Context Protocol (MCP) サーバー。

インストール

npx で直接実行できます:

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

またはグローバルにインストールします:

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

使用法

JSON リクエストを stdin に送信し、stdout から JSON 応答を受信します。

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

サポートされているリクエストタイプ

SERP API

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

キーワードデータAPI

{ "type": "dataforseo_keywords_data", "keywords": ["seo", "search engine optimization"], "location_code": 2840, "language_code": "en" }

バックリンクAPI

{ "type": "dataforseo_backlinks", "target": "example.com", "limit": 100 }

オンページAPI

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

ドメイン分析API

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

アプリデータAPI

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

マーチャントAPI

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

ビジネスデータAPI

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

統合例

Node.js コードでこの MCP サーバーを使用する方法は次のとおりです。

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}`); });

環境変数

config の代わりに環境変数を使用することもできます。

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

出版

このパッケージを npm に公開するには:

  1. まだログインしていない場合は npm にログインします。
    npm login
  2. パッケージを公開します。
    npm publish --access public
  3. 後でパッケージを更新するには:
    npm version patch npm publish
-
security - not tested
F
license - not found
-
quality - not tested

モデル コンテキスト プロトコルを介して DataForSEO API とのやり取りを可能にする stdio ベースのサーバー。これにより、ユーザーは検索結果、キーワード データ、バックリンク、ページ内分析などの SEO データを取得できます。

  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
            ID: gbsao9yoe4