DataForSEO MCP 服务器
DataForSEO 的模型上下文协议 (MCP) 服务器实现,使 Claude 能够与选定的 DataForSEO API 进行交互并通过标准化接口获取 SEO 数据。
特征
SERP API:Google、Bing 和 Yahoo 的实时搜索引擎结果页面 (SERP) 数据;
KEYWORDS_DATA API:关键词研究和点击流数据,包括搜索量、每次点击费用和其他指标;
ONPAGE API:允许根据可定制的参数抓取网站和网页,以获取页面 SEO 性能指标;
DATAFORSEO_LABS API:基于 DataForSEO 内部数据库和专有算法的关键字、SERP 和域数据。
先决条件
Node.js(v14 或更高版本)
DataForSEO API 凭证(API 登录名和密码)
安装
克隆存储库:
安装依赖项:
设置环境变量:
作为 NPM 包安装
您可以全局安装该包:
或者无需安装直接运行:
运行命令之前记得设置环境变量:
构建和运行
构建项目:
运行服务器:
可用模块
以下模块可以启用/禁用:
SERP
:Google、Bing 和 Yahoo 的实时 SERP 数据;KEYWORDS_DATA
:关键词研究和点击流数据;ONPAGE
:抓取网站和网页以获取页面 SEO 性能指标;DATAFORSEO_LABS
:基于 DataForSEO 数据库和算法的关键字、SERP 和域名数据;BACKLINKS
:任何域、子域或网页的入站链接、引用域和引用页面的数据;BUSINESS_DATA
:基于以下平台公开分享的商业评论和商业信息:Google、Trustpilot、Tripadvisor;DOMAIN_ANALYTICS
:帮助识别用于构建网站的所有可能技术并提供 Whois 数据;
添加新工具/模块
模块结构
每个模块对应一个特定的DataForSEO API:
SERP
模块 → SERP APIKEYWORDS_DATA
模块 →关键词数据 APIONPAGE
模块 → OnPage APIDATAFORSEO_LABS
模块 → DataForSEO Labs APIBACKLINKS
:模块→反向链接APIBUSINESS_DATA
:模块→业务数据 APIDOMAIN_ANALYTICS
:模块 →域名分析 API
实施选项
您可以:
向现有模块添加新工具
创建一个全新的模块
添加新工具
以下是向任何新模块或现有模块添加新工具的方法:
创建新模块
在
src/modules/
下为您的模块创建一个新目录:
创建模块文件:
在
src/config/modules.config.ts
中注册您的模块:
在
src/index.ts
中初始化您的模块:
您希望我们接下来支持哪些端点/API?
我们始终致力于扩展此 MCP 服务器的功能。如果您希望支持特定的 DataForSEO 端点或 API,请:
查看DataForSEO API 文档,了解可用内容
在我们的 GitHub 存储库中打开一个问题:
您希望支持的 API/端点;
您的用例的简要描述;
描述您希望实现的任何具体功能。
您的反馈有助于我们确定下一步要支持的 API 的优先级!
资源
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.
Tools
模型上下文协议服务器使 Claude 能够与 DataForSEO API 进行交互,从而允许访问 SEO 数据,包括 SERP、关键字研究、页面指标和域分析。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that allows Claude to make API requests on your behalf, providing tools for testing various APIs including HTTP requests and OpenAI integrations without sharing your API keys in the chat.Last updated -
- -securityFlicense-qualityA Model Context Protocol server that enables Claude to perform Google Custom Search operations by connecting to Google's search API.Last updated -1
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.Last updated -315,70416MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Claude to perform advanced web research with intelligent search queuing, enhanced content extraction, and deep research capabilities.Last updated -391MIT License