Skip to main content
Glama
yagomp

seoagent

by yagomp

SEOAgent

Latest Release GitHub Stars npm downloads Node.js License: MIT

开源的、以智能体为先的 SEO 工具包——支持关键词研究、排名追踪、网站审计、竞争对手分析、内容差距分析、域名权重评估以及 AI 驱动的策略生成。专为 AI 智能体设计,其次才是人类用户。

目录

Related MCP server: Citare

功能特性

  • 关键词研究 — 通过 DataForSEO 获取搜索量、难度评分和关键词建议

  • 排名追踪 — 追踪关键词随时间的排名变化,生成变动报告

  • 网站审计 — 爬取多达 5 万个页面,检测 SEO 问题(死链、缺失元数据、内容单薄、重复标题、孤立页面)

  • 竞争对手分析 — 关键词重叠度分析、内容差距识别

  • 域名权重评估 — DR 分数、反向链接概况、引用域名、链接机会

  • Google Search Console — 点击量、展示量、点击率 (CTR)、热门页面和查询

  • 策略引擎 — AI 驱动(Claude/GPT/Ollama)或基于规则的 SEO 策略生成

接口

接口

描述

CLI

npm install -g @seoagent/cli — 完整的命令行工具包

MCP 服务器

npx seoagent-mcp — 为 AI 智能体(Claude、Cursor 等)提供 24 个工具

仪表盘

seoagent dashboard — 本地 Web UI,地址为 http://localhost:3847

@seoagent/core — 在你的代码中直接导入函数

询问你的智能体

一旦通过 MCP 连接了 SEOAgent,只需与你的 AI 智能体自然对话即可。以下是一些有效的提示词:

网站审计

Do a full audit of mysite.com and tell me what SEO issues to fix first.
Crawl mysite.com and find all broken links, missing meta descriptions, and pages with thin content.
Which pages on my site have duplicate title tags?
Are there any redirect chains or orphan pages on mysite.com?

关键词研究与排名追踪

Research keywords for "fantasy football app" and show me volume and difficulty.
What keyword suggestions do you have for my niche around project management tools?
Start tracking these keywords for my project: "best fpl app", "fpl tips", "fantasy premier league"
Check current rankings for all tracked keywords and show me what moved this week.
Which keywords did I gain or lose positions on since last check?

竞争对手分析

Compare my site against competitor.com — where do they rank that I don't?
What are the content gaps between my site and competitor.com?
Show me which keywords competitor.com ranks for that I'm missing.

反向链接与域名权重

What's the domain reputation score for mysite.com?
Show me the backlink profile for mysite.com — referring domains, top links.
Find link building opportunities for my site based on competitor backlinks.
Has my domain reputation changed over the last 30 days?

Google Search Console

What are my top 10 pages by clicks in Search Console this month?
Which queries get the most impressions but have low CTR? Those are quick wins.
Show me GSC performance for the last 3 months — clicks, impressions, average position.

策略

Generate an SEO strategy for mysite.com based on current audit results and keyword data.
My site is in the fantasy football niche. What should I focus on for the next 90 days?
Refresh my SEO strategy — we've fixed the audit issues and added new content since last time.
Give me a prioritized action plan: what will move the needle fastest?

综合 / 深度分析

Do a complete SEO health check on mysite.com: crawl it, check rankings, pull GSC data, and give me a strategy.
I just launched mysite.com. Walk me through setting up SEOAgent and getting my first audit and keyword plan.
My organic traffic dropped 20% last month. Help me diagnose why using audit data and rank history.

快速开始

CLI

一键安装(如果缺少 Node.js,会自动安装):

curl -fsSL https://raw.githubusercontent.com/yagomp/seoagent/main/scripts/install.sh | sh

或者,如果你已经安装了 Node.js >= 20:

npm install -g @seoagent/cli

# Setup
seoagent project add mysite --domain example.com --niche "tech"
seoagent config set dataforseo.login YOUR_LOGIN
seoagent config set dataforseo.password YOUR_PASSWORD

# Use
seoagent keywords research "seo tips" "content marketing"
seoagent audit crawl --max-pages 500
seoagent audit report
seoagent competitor keywords competitor.com
seoagent content-gaps
seoagent domain reputation
seoagent strategy generate

# Output formats
seoagent keywords research "seo" --format json
seoagent audit report --format markdown

MCP 服务器(面向 AI 智能体)

添加到你的 Claude Desktop 配置或 Claude Code 设置中:

{
  "mcpServers": {
    "seoagent": {
      "command": "npx",
      "args": ["seoagent-mcp"],
      "env": {
        "SEOAGENT_PROJECT": "mysite"
      }
    }
  }
}

提供 24 个工具:seoagent_keyword_researchseoagent_audit_crawlseoagent_content_gapsseoagent_strategy_generate 等。

仪表盘

seoagent dashboard
# Opens http://localhost:3847

7 个视图:概览、关键词、排名追踪、审计、竞争对手、反向链接、策略。

数据源

层级

数据源

成本

免费

Google Search Console, PageSpeed Insights, 本地爬虫

$0

付费

DataForSEO (默认,可替换)

~$0.001/查询

衍生

内容差距、排名变动、审计评分、策略

$0

配置

# DataForSEO (keyword/SERP/backlink data)
seoagent config set dataforseo.login YOUR_LOGIN
seoagent config set dataforseo.password YOUR_PASSWORD

# LLM for strategy generation (optional)
seoagent config set llm.provider anthropic  # or openai, ollama
seoagent config set llm.apiKey sk-ant-...
seoagent config set llm.model claude-sonnet-4-6

# Google Search Console (optional)
seoagent gsc auth --client-id YOUR_ID --client-secret YOUR_SECRET

配置存储在 ~/.seoagent/config.json。每个项目的数据存储在 ~/.seoagent/projects/<slug>/ 中。

更新

CLI

npm install -g @seoagent/cli@latest

MCP 服务器

npx 会自动获取最新版本。若要强制刷新缓存版本:

npx --yes seoagent-mcp@latest

或者完全清除 npx 缓存:

npx clear-npx-cache

库 (@seoagent/core)

npm install @seoagent/core@latest

更新 CLI 后,验证已安装的版本:

seoagent --version

开发

git clone https://github.com/yagomp/seoagent.git
cd seoagent
pnpm install
pnpm build
pnpm test  # 260 tests

架构

packages/
  core/       @seoagent/core — all business logic (231 tests)
  cli/        seoagent CLI (16 tests)
  mcp/        seoagent-mcp server (13 tests)
  dashboard/  Local Vite + React web UI

核心原则: 每个功能首先都是 core 中的一个函数。CLI、MCP 和仪表盘只是轻量级的封装。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    F
    maintenance
    Downloads your entire Search Console dataset into a local SQLite database, then gives your LLM a pre-built SQL query library for every standard SEO analysis type, with context available for your LLM to perform any SQL query to answer your questions and analyse for you.
    12
    21
    17
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    AI search intelligence + Ahrefs-class SEO suite as 59 MCP tools. Track your brand across ChatGPT, Google AI Overview, Gemini, Claude, and Perplexity with persona-anchored Brand Radar dispatches.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to perform comprehensive SEO audits on web pages, including meta tags, headings, links, images, performance, and more, via a CLI or MCP server.
    18
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • SEO research, audits, backlinks, GSC, and content workflow tools for AI agents.

  • Open-source SEO manager for coding agents: keyword research, content PRs, rank + Search Console.

  • SEO MCP server: crawl your site, find AI-visibility gaps, and ship the fix from your coding agent.

View all MCP Connectors

Latest Blog Posts

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/yagomp/seoagent'

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