Connect the MCP server

Mint an API key, register dx-seo as an MCP server in Claude Code, and backfill your history

Overview

dx-seo exposes a self-hosted MCP server at POST /mcp. Once a Claude Code session can reach it, the /seo-* commands push their results to your dashboard automatically. Every push is authenticated with an API key you mint in Settings.

Steps

1

Mint an API key

In the dashboard, go to Settings → API keys and create a key. It is an opaque oat_… token shown once — copy it now.

2

Register the MCP server

Add dx-seo as a user-scoped MCP server so every project can push to it:

bash
claude mcp add --scope user --transport http dx-seo https://<your-dx-seo-host>/mcp \
      --header "Authorization: Bearer oat_…"

For local development the endpoint is http://localhost:8080/mcp.

3

Backfill your history (one time)

Existing projects have config and ledger history from before the dashboard. Sync it all once:

/seo-migrate

It's idempotent — safe to re-run.

What /seo-migrate backfills

/seo-migrate walks every registered project and pushes its seo/config.json (via seo_upsert_site) and every seo/actions.jsonl entry (via seo_sync_actions), then reads back per-site totals with seo_overview.

Verify the connection

Ask the connected session to call seo_overview, or run any command that pushes — for example /seo-quick-wins — and watch a site appear on the dashboard.

Next Steps

Navigation