Token导航 LogoToken导航TokenDH.com
MCP Yaml Sop Enable AI Seo Automation logo
运维云端stdio官方级别未说明来源级核验

MCP Yaml Sop Enable AI Seo Automation

MCP Server

一个全面的SEO自动化平台,连接WordPress、Google Business Profile、SEMrush、Google Analytics 4和Looker Studio,自动将客户上传的内容转化为优化的SEO内容,监控性能并在排名下降时触发重新优化。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
TypeScript性能监控云端部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

H-tech-AFAQ-CEO

提供方

H-tech-AFAQ-CEO

最后核验

2026/5/17 20:19

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -r requirements.txt

详细介绍

AI驱动的SEO自动化系统

一个全面的SEO自动化平台,将WordPress、Google Business Profile、SEMrush、Google Analytics 4和Looker Studio连接到一个无缝的工作流程中。该系统会自动将客户端上传的内容转换为优化的SEO内容,监控性能,并在排名下降时触发重新优化。

🚀 特性

核心自动化功能

  • AI内容生成:OpenAI支持的博客文章和GBP内容创作
  • 多平台发布:自动发布到WordPress和Google Business Profile
  • 关键字监控:通过SEMrush集成进行实时排名跟踪
  • 性能分析:GA4指标收集和分析
  • 重新优化触发器:排名下降时自动更新内容
  • 架构标记:用于SEO的JSON-LD结构化数据生成
  • Looker工作室报道:自动仪表板更新和月度报告

支持的集成

  • ✅ WordPress REST API(文章,投资组合,媒体上传)
  • ✅ 谷歌商业简介API(帖子,照片,评论)
  • ✅ SEMrush API(关键词跟踪、领域分析)
  • ✅ 谷歌分析4(性能指标,实时数据)
  • ✅ OpenAI API(内容生成、重新优化)
  • ✅ Looker Studio(自动报告仪表板)

🏗️ 建筑

数据库架构(Prisma)

- User (authentication)
- Client (business profiles with API keys)
- Automation (content processing jobs)
- BlogPost (generated content)
- Keyword (ranking tracking)
- Analytics (performance metrics)
- ApiKey (service credentials)

工作流引擎

  • YAML配置:客户端特定的自动化设置
  • Python自动化脚本:命令行工作流执行
  • TypeScript自动化引擎:服务器端处理
  • Cron调度器:自动执行任务

📋 先决条件

  • Node.js 18+
  • Python 3.8+
  • SQLite(或PostgreSQL/MySQL)
  • 启用REST API的WordPress网站
  • Google Business Profile API访问
  • SEMrush API密钥
  • 谷歌分析4属性
  • OpenAI API密钥

🚀 快速开始

1.克隆和安装

git clone https://github.com/HTS-CEO/MCP-YAML---SOP-enable-AI-SEO-automation
cd seo-dashboard
npm install
pip install -r requirements.txt

2.数据库设置

npx prisma generate
npx prisma db push

3.环境配置

创建 .env.local:

DATABASE_URL="file:./dev.db"
OPENAI_API_KEY="your-openai-key"
# Add other API keys as needed

4.配置客户端

编辑 config/workflow.yaml 带有客户端信息和API密钥。

5.启动应用程序

npm run dev

6.运行自动化脚本

# Process a content upload
python scripts/automation-workflow.py --client client_001 --upload upload.json

# Run scheduled automations
python scripts/automation-workflow.py --schedule

# Generate monthly report
python scripts/automation-workflow.py --client client_001

📖 使用示例

内容上传处理

import { AutomationEngine } from './lib/automation-engine'

const engine = new AutomationEngine({
  clientId: 'client_001',
  wordpressEnabled: true,
  gbpEnabled: true,
  semrushEnabled: true,
  ga4Enabled: true,
  reoptimizationEnabled: true
})

const result = await engine.processUpload({
  type: 'photo',
  title: 'New Construction Project',
  description: 'Completed residential renovation in Springfield',
  service: 'Home Renovation',
  location: 'Springfield, IL',
  filePath: '/path/to/image.jpg'
})

月度报告生成

const report = await engine.generateMonthlyReport()
console.log('Monthly SEO Report:', report.reportData)

🔧 api参考

WordPress集成

import { createWordPressPost, uploadWordPressMedia } from './lib/wordpress'

// Create blog post
const postResult = await createWordPressPost(
  'https://example.com',
  'api-key',
  {
    title: 'SEO Title',
    content: 'Full content...',
    excerpt: 'Meta description',
    categories: [1, 2]
  }
)

// Upload media
const mediaResult = await uploadWordPressMedia(
  'https://example.com',
  'api-key',
  imageBuffer,
  'filename.jpg',
  'Alt text for SEO'
)

Google商家档案

import { createGBPPost, uploadGBPPhoto } from './lib/gbp'

// Create GBP post
const gbpResult = await createGBPPost(
  'business-id',
  'access-token',
  {
    title: 'Business Update',
    summary: 'Short summary for GBP',
    hashtags: ['construction', 'renovation'],
    callToAction: 'https://example.com'
  }
)

SEMrush集成

import { fetchSEMrushKeywords, trackKeywordRankings } from './lib/semrush'

// Get domain keywords
const keywords = await fetchSEMrushKeywords('api-key', 'example.com')

// Track specific keywords
const rankings = await trackKeywordRankings('api-key', 'example.com',
  ['keyword1', 'keyword2'])

⚙️ 配置

YAML工作流配置

clients:
  client_001:
    name: "ABC Construction"
    website: "https://abcconstruction.com"
    wordpress_url: "https://abcconstruction.com"
    wordpress_api_key: "${WORDPRESS_API_KEY}"
    gbp_business_id: "123456789"
    gbp_access_token: "${GBP_ACCESS_TOKEN}"
    semrush_api_key: "${SEMRUSH_API_KEY}"
    ga4_property_id: "123456789"
    automation:
      auto_publish_wordpress: true
      auto_publish_gbp: true
      auto_reoptimize: true
      monthly_reports: true

环境变量

# Database
DATABASE_URL="file:./dev.db"

# AI Content Generation
OPENAI_API_KEY="sk-..."

# Client API Keys (use environment variables for security)
WORDPRESS_API_KEY_CLIENT_001="wp_key_123"
GBP_ACCESS_TOKEN_CLIENT_001="gbp_token_456"
SEMRUSH_API_KEY_CLIENT_001="semrush_key_789"
GA4_ACCESS_TOKEN_CLIENT_001="ga4_token_012"

# Email/Slack Notifications
EMAIL_USERNAME="noreply@seoautomation.com"
SLACK_WEBHOOK_URL="https://hooks.slack.com/..."

🔄 自动化工作流程

内容创建流程

  1. 上传接待:客户上传照片/推荐信/项目笔记
  2. AI内容生成:OpenAI创建SEO优化的博客文章
  3. 架构标记:生成JSON-LD结构化数据
  4. WordPress发布:使用架构自动发布博客文章
  5. 英镑交叉记账:为Google Business Profile创建精简帖子
  6. 数据库存储:存储所有生成的内容和元数据

监控和重新优化流程

  1. 每日排名检查:SEMrush API获取当前关键字位置
  2. 阈值分析:与之前的排名进行比较
  3. 重新优化触发器:如果排名下降>5位
  4. 内容更新:AI重新优化现有内容
  5. 再版:用改进的内容更新WordPress帖子

报告流程

  1. 数据收集:收集GA4、SEMrush、GBP指标
  2. 报告生成:编制月度绩效报告
  3. 仪表板更新:将数据推送到Looker Studio
  4. 通知:向客户发送电子邮件/Slack

📊 仪表板功能

执行摘要

  • 整体SEO绩效得分
  • 关键KPI随月份变化
  • 表现最佳的关键字和内容

有机搜索性能

  • 会话、用户、页面浏览量趋势
  • 顶级登录页面分析
  • 有机流量来源细分

关键词排名

  • 当前与上一期排名
  • 排名分布(前3、4-10、11-20等)
  • 需要注意的关键词

内容性能

  • 发布频率和一致性
  • 表现最佳的博客文章
  • 内容参与度指标

本地搜索引擎优化(英镑)

  • 配置文件视图和操作
  • 审查响应指标
  • 照片上传活动

🛠️ 发展

项目结构

├── app/                    # Next.js application
│   ├── actions/           # Server actions
│   ├── api/              # API routes
│   └── components/       # React components
├── lib/                   # Core business logic
│   ├── automation-engine.ts
│   ├── wordpress.ts
│   ├── gbp.ts
│   ├── semrush.ts
│   ├── ga4.ts
│   ├── openai.ts
│   ├── schema-generator.ts
│   └── cron-scheduler.ts
├── scripts/              # Automation scripts
│   └── automation-workflow.py
├── config/               # Configuration files
│   └── workflow.yaml
├── prisma/               # Database schema
└── README.md

添加新集成

  1. 在中创建集成模块 lib/
  2. 添加带有错误处理的API函数
  3. 更新工作流配置
  4. 添加到自动化引擎
  5. 彻底测试集成

测试

# Run unit tests
npm test

# Run integration tests
npm run test:integration

# Test automation workflows
python scripts/test-workflows.py

🔒 安全

  • 存储为环境变量的API密钥
  • 敏感数据的数据库加密
  • 所有API调用的速率限制
  • 输入验证和净化
  • 所有自动化操作的审核日志记录

📈 监控和记录

  • 全面的错误处理和记录
  • 绩效指标收集
  • API使用情况跟踪
  • 自动化成功/失败率
  • 实时仪表板监控

🚀 部署

Docker部署

FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npx prisma generate
EXPOSE 3000
CMD ["npm", "start"]

环境设置

# Production environment
export NODE_ENV=production
export DATABASE_URL="postgresql://..."
# Configure all API keys

📄 许可证

这个项目是专有软件。保留所有权利。

🤝 贡献

  1. 复刻仓库
  2. 创建要素分支
  3. 通过测试进行更改
  4. 提交拉取请求

______________________________________________________________________

内置于❤️ SEO自动化卓越

目录标签

目录标签

TypeScript性能监控云端部署SEO自动化本地部署内容优化多平台集成AI内容生成

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP