theseoagent-mcp
# theseoagent-mcp
[The SEO Agent](https://www.theseoagent.ai) as MCP tools. Plug it into Claude Code, Claude Desktop, or Cursor and your agent can run real keyword research, deep SEO audits, daily fact-checked article generation, and one-click CMS publishing as native tool calls.
No scraping, no estimates. The tools hit the same live API the product runs on: real keyword data, full-crawl audits with AI-content scoring, articles that go through a fact-check and quality gate before they exist, and native publishing to WordPress, Webflow, Shopify, Wix, Ghost, or a webhook.
## Install
You need Node 18+ and an API key (see [Getting a key](#getting-a-key)).
### Claude Code
```sh
claude mcp add theseoagent -e THESEOAGENT_API_KEY=sk_live_... -- npx -y theseoagent-mcp
```
### Claude Desktop
Add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"theseoagent": {
"command": "npx",
"args": ["-y", "theseoagent-mcp"],
"env": {
"THESEOAGENT_API_KEY": "sk_live_..."
}
}
}
}
```
### Cursor
Add to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):
```json
{
"mcpServers": {
"theseoagent": {
"command": "npx",
"args": ["-y", "theseoagent-mcp"],
"env": {
"THESEOAGENT_API_KEY": "sk_live_..."
}
}
}
}
```
## Tools
| Tool | What it does | Caps |
| ------------------ | -------------------------------------------------------------------------------------------------------- | ------------------------- |
| `list_projects` | List your projects (sites) with id, domain, status. | - |
| `list_articles` | List generated articles (title, slug, status, word count, scores, published URL) with cursor pagination. | - |
| `get_article` | Fetch one article by id, including full markdown/HTML content and meta description. | - |
| `generate_article` | Queue a fact-checked article for a keyword and poll to completion (up to 20 min). | 1 article / project / day |
| `keyword_research` | Run the full keyword pipeline on a project: live keyword data, clustering, article planning. | 10 runs / day |
| `run_audit` | Deep SEO audit of any domain. Returns a shareable report URL. | 5 audits / day |
| `publish_article` | Push a generated article to the project's connected CMS. Synchronous. | - |
Long-running tools (`generate_article`, `keyword_research`, `run_audit`) poll the job server-side and send MCP progress notifications while they wait. If a job outlives the polling window, the tool returns the `job_id` and `poll_url` so you can check on it later instead of losing the run.
## Getting a key
1. Create an account at [theseoagent.ai/signup](https://www.theseoagent.ai/signup) and start the trial.
2. Mint a key (org admin only) at [theseoagent.ai/settings/api-keys](https://www.theseoagent.ai/settings/api-keys). The key is shown once, so copy it then.
3. Set it as `THESEOAGENT_API_KEY` (format `sk_live_...`).
API calls need an active plan: $1 for a 3-day trial, then $99/mo. Cancel in-app, instantly, no email required. Without a key the server still starts and lists its tools, so you can check the setup first.
## Configuration
| Env var | Required | Default | What it does |
| ---------------------- | -------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------ |
| `THESEOAGENT_API_KEY` | Yes (for tool calls) | - | Your `sk_live_...` API key. The server starts without it, but every tool call will tell you to set it. |
| `THESEOAGENT_API_BASE` | No | `https://www.theseoagent.ai/api/v1` | Override the API base URL. You almost never want this. |
## Example prompts
Once the server is connected, ask your agent things like:
- "List my SEO Agent projects."
- "Run an SEO audit on example.com and give me the report link."
- "Run keyword research on my project, then write an article for the best keyword."
- "Publish the article you just generated to my site."
## Raw REST API
Everything these tools do is also available as plain REST: [theseoagent.ai/docs/api](https://www.theseoagent.ai/docs/api).
## Version history
See [CHANGELOG.md](CHANGELOG.md).
## License
MIT
TDQS
Scored across 7 tools
Each tool targets a distinct resource+action: project listing, article listing/fetching, article generation, article publishing, keyword research, and domain audit. generate_article vs publish_article and keyword_research vs run_audit have clearly different scopes and outputs. No pair is likely to be confused by an agent.
Most names follow a verb_noun snake_case pattern (list_projects, list_articles, get_article, generate_article, run_audit, publish_article). The outlier is keyword_research, which reads as a noun phrase rather than verb_noun, but it is still readable and unambiguous.
Seven tools is well-scoped for an SEO content pipeline: discovery (projects), research (keyword_research, run_audit), generation (generate_article), retrieval (list/get_article), and distribution (publish_article). Each tool earns its place with no redundancy.
The core lifecycle (list projects -> research/audit -> generate -> read -> publish) is covered end to end. Minor gaps remain: no update/delete/unpublish article, no create_project, and no way to check status of an in-flight article beyond the blocking generate call, but agents can work around these.