AgentSEO — Claude Code MCP server: what it does, how to install
Connects AI coding agents to the AgentSEO intelligence API. It fetches search engine results and automates SEO checks directly from development workflows.
claude mcp add --env AGENTSEO_API_KEY=<AGENTSEO_API_KEY> --env AGENTSEO_API_URL=<AGENTSEO_API_URL> --env AGENTSEO_PROJECT_ID=<AGENTSEO_PROJECT_ID> --env AGENTSEO_WORKFLOW_ID=<AGENTSEO_WORKFLOW_ID> --transport stdio agentseo -- npx -y @agentseo/mcp-serverWhat AgentSEO does
This server bridges coding agents with the AgentSEO cloud platform. The open-source repository holds only client packages: libraries for TypeScript and Python alongside the MCP wrapper. Backend infrastructure, provider routing, and data processing remain on the hosted service.
Running the local client requires an AGENTSEO_API_KEY. Without a valid API key, requests to the external search endpoint will fail immediately. Configuration also supports optional project and workflow environment flags.
Setup works via standard input/output using npx or by connecting directly to the hosted HTTP endpoint.
What it helps with
- query search engine results with location targeting
- integrate live SEO lookups into coding assistant sessions
- fetch ranked results programmatically with custom result limits
Example prompts for the agent
- Search for "seo api" targeted to "United States" using AgentSEO
- Fetch the top 5 search results synchronously for my target keyword
How to install AgentSEO
1Platform CLI
claude mcp add --env AGENTSEO_API_KEY=<AGENTSEO_API_KEY> --env AGENTSEO_API_URL=<AGENTSEO_API_URL> --env AGENTSEO_PROJECT_ID=<AGENTSEO_PROJECT_ID> --env AGENTSEO_WORKFLOW_ID=<AGENTSEO_WORKFLOW_ID> --transport stdio agentseo -- npx -y @agentseo/mcp-serverReplace <…> with your own values
2Platform CLI: remote server
claude mcp add --transport http agentseo https://www.agentseo.dev/mcp1Platform CLI: remote server
codex mcp add agentseo --url https://www.agentseo.dev/mcp2Platform CLI
codex mcp add agentseo --env AGENTSEO_API_KEY=<AGENTSEO_API_KEY> --env AGENTSEO_API_URL=<AGENTSEO_API_URL> --env AGENTSEO_PROJECT_ID=<AGENTSEO_PROJECT_ID> --env AGENTSEO_WORKFLOW_ID=<AGENTSEO_WORKFLOW_ID> -- npx -y @agentseo/mcp-serverReplace <…> with your own values
Config file
{
"mcpServers": {
"agentseo": {
"url": "https://www.agentseo.dev/mcp"
}
}
}{
"mcpServers": {
"agentseo": {
"command": "npx",
"args": [
"-y",
"@agentseo/mcp-server"
],
"env": {
"AGENTSEO_API_KEY": "<AGENTSEO_API_KEY>",
"AGENTSEO_API_URL": "<AGENTSEO_API_URL>",
"AGENTSEO_PROJECT_ID": "<AGENTSEO_PROJECT_ID>",
"AGENTSEO_WORKFLOW_ID": "<AGENTSEO_WORKFLOW_ID>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"agentseo": {
"type": "http",
"url": "https://www.agentseo.dev/mcp"
}
}
}{
"servers": {
"agentseo": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agentseo/mcp-server"
],
"env": {
"AGENTSEO_API_KEY": "<AGENTSEO_API_KEY>",
"AGENTSEO_API_URL": "<AGENTSEO_API_URL>",
"AGENTSEO_PROJECT_ID": "<AGENTSEO_PROJECT_ID>",
"AGENTSEO_WORKFLOW_ID": "<AGENTSEO_WORKFLOW_ID>"
}
}
}
}Replace <…> with your own values
1Platform CLI: remote server
gemini mcp add -t http agentseo https://www.agentseo.dev/mcp2Platform CLI
gemini mcp add -e AGENTSEO_API_KEY=<AGENTSEO_API_KEY> -e AGENTSEO_API_URL=<AGENTSEO_API_URL> -e AGENTSEO_PROJECT_ID=<AGENTSEO_PROJECT_ID> -e AGENTSEO_WORKFLOW_ID=<AGENTSEO_WORKFLOW_ID> agentseo npx -y @agentseo/mcp-serverReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about AgentSEO
How to install AgentSEO in Claude Code?
Add the server via stdio by running claude mcp add agentseo-mcp -e AGENTSEO_API_KEY=<AGENTSEO_API_KEY> -- npx -y @agentseo/mcp-server.
What does AgentSEO do?
It gives coding agents direct access to AgentSEO intelligence APIs to inspect search data and run queries while developing.
Is the backend logic included in the package?
No, this repository only contains the client SDKs and MCP server. The worker system, billing, and provider orchestration run on the hosted AgentSEO platform.