Skip to main content
Glama

DataForSEO MCP Server

by Skobyn

DataForSEO MCP 服务器

用于 DataForSEO API 的基于 stdio 的模型上下文协议 (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}`); });

环境变量

您还可以使用环境变量代替配置:

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

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.

基于 stdio 的服务器,可通过模型上下文协议与 DataForSEO API 进行交互,允许用户获取 SEO 数据,包括搜索结果、关键字数据、反向链接、页面分析等。

  1. 安装
    1. 用法
      1. 支持的请求类型
        1. SERP API
        2. 关键字数据 API
        3. 反向链接 API
        4. 页面 API
        5. 域名分析 API
        6. 应用数据 API
        7. 商户 API
        8. 业务数据API
      2. 集成示例
        1. 环境变量
          1. 出版

            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 7 days ago
              6
              565
              47
              JavaScript
            • 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 2 days ago
              20
              1,639
              79
              TypeScript
              Apache 2.0
            • -
              security
              A
              license
              -
              quality
              Model Context Protocol server that enables AI assistants to perform keyword research, SEO analysis, and content planning through natural language queries against kwrds.ai's SEO tools.
              Last updated 2 months ago
              1
              Python
              Apache 2.0
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that provides AI assistants with access to FetchSERP API capabilities for SEO analysis, SERP data, web scraping, and keyword research.
              Last updated 7 days ago
              20
              565
              9
              JavaScript
              MIT License

            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