seoagent
Agent-first SEO toolkit with 24 MCP tools for keyword research, rank tracking, site audits up to 50k pages, competitor analysis, content gap detection, domain reputation, backlink intelligence, Google Search Console integration, and AI-powered strategy generation with Claude, GPT, and Ollama. SQLite-backed and bring-your-own-key.
README
SEOAgent
Open-source, agent-first SEO toolkit — keyword research, rank tracking, site audits, competitor analysis, content gap analysis, domain reputation, and AI-powered strategy generation. Built for AI agents first, humans second.
Table of Contents
- Features
- Interfaces
- Ask Your Agent
- Quick Start
- Data Sources
- Configuration
- Updating
- Development
- License
Features
- Keyword Research — Search volumes, difficulty scores, keyword suggestions via DataForSEO
- Rank Tracking — Track keyword positions over time, movers reports
- Site Audit — Crawl up to 50k pages, detect SEO issues (broken links, missing meta, thin content, duplicate titles, orphan pages)
- Competitor Analysis — Keyword overlap, content gap identification
- Domain Reputation — DR score, backlink profile, referring domains, link opportunities
- Google Search Console — Clicks, impressions, CTR, top pages and queries
- Strategy Engine — AI-powered (Claude/GPT/Ollama) or rule-based SEO strategy generation
Interfaces
| Interface | Description |
|---|---|
| CLI | npm install -g @seoagent/cli — full command-line toolkit |
| MCP Server | npx seoagent-mcp — 24 tools for AI agents (Claude, Cursor, etc.) |
| Dashboard | seoagent dashboard — local web UI at http://localhost:3847 |
| Library | @seoagent/core — import functions directly in your code |
Ask Your Agent
Once SEOAgent is connected via MCP, just talk to your AI agent naturally. Here are prompts that work well:
Site Audit
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?
Keyword Research & Rank Tracking
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?
Competitor Analysis
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.
Backlinks & Domain Reputation
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.
Strategy
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?
Combined / Deep Dives
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.
Quick Start
CLI
One-liner install (installs Node.js automatically if missing):
curl -fsSL https://raw.githubusercontent.com/yagomp/seoagent/main/scripts/install.sh | sh
Or, if you already have 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 Server (for AI Agents)
Add to your Claude Desktop config or Claude Code settings:
{
"mcpServers": {
"seoagent": {
"command": "npx",
"args": ["seoagent-mcp"],
"env": {
"SEOAGENT_PROJECT": "mysite"
}
}
}
}
24 tools available: seoagent_keyword_research, seoagent_audit_crawl, seoagent_content_gaps, seoagent_strategy_generate, and more.
Dashboard
seoagent dashboard
# Opens http://localhost:3847
7 views: Overview, Keywords, Rank Tracker, Audit, Competitors, Backlinks, Strategy.
Data Sources
| Tier | Source | Cost |
|---|---|---|
| Free | Google Search Console, PageSpeed Insights, local crawler | $0 |
| Paid | DataForSEO (default, swappable) | ~$0.001/query |
| Derived | Content gaps, rank deltas, audit scores, strategy | $0 |
Configuration
# 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
Config stored at ~/.seoagent/config.json. Per-project data in ~/.seoagent/projects/<slug>/.
Updating
CLI
npm install -g @seoagent/cli@latest
MCP Server
npx fetches the latest version automatically. To force-refresh a cached version:
npx --yes seoagent-mcp@latest
Or clear the npx cache entirely:
npx clear-npx-cache
Library (@seoagent/core)
npm install @seoagent/core@latest
After updating the CLI, verify the installed version:
seoagent --version
Development
git clone https://github.com/yagomp/seoagent.git
cd seoagent
pnpm install
pnpm build
pnpm test # 260 tests
Architecture
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
Key principle: Every feature is a function in core first. CLI, MCP, and dashboard are thin wrappers.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。