---
title: "User MCP setup | AEO API"
description: "Connect your AI client to the hosted AEO API MCP server with your API key, check the connection and find tools for your account."
url: "https://aeoapi.dev/docs/mcp"
canonical: "https://aeoapi.dev/docs/mcp"
last_updated: "2026-12-01"
---

# User MCP setup

Connect your AI client to AEO API to read and update your brands, prompts, runs and reports from a chat. The hosted Model Context Protocol (MCP) server has data tools, documentation tools and, for keys with write permissions, write tools. Reading data uses no credits. Runs you start spend credits the same way they do through the REST API.

## Before you connect

You need an [activated AEO API account](https://aeoapi.dev/docs/getting-started) with hosted MCP access and a scoped API key. For the examples that use `AEO_API_KEY`, load the key into your client's environment before starting it. Set the variable to the key alone. The client adds `Bearer` when sending the request.

If you already have MCP servers configured, add just the `aeoapi` entry to the existing server list in the file for your client.

## Claude Code

Save this configuration in `.mcp.json` at the root of your project. Start Claude Code in that project and approve the server when prompted. Run `/mcp` to check its status.

```
{
  "mcpServers": {
    "aeoapi": {
      "type": "http",
      "url": "https://api.aeoapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${AEO_API_KEY}"
      }
    }
  }
}
```

## Codex

Run this command in your terminal. Codex saves the variable name and reads the key from its environment when it connects.

```
codex mcp add aeoapi --url https://api.aeoapi.dev/mcp --bearer-token-env-var AEO_API_KEY
```

Start Codex in the same shell and run `/mcp` to see the active servers.

## Windsurf

In Cascade, open the MCP menu and select **Open MCP config file**. Add the server below, save the file and refresh the MCP server list in Cascade.

```
{
  "mcpServers": {
    "aeoapi": {
      "serverUrl": "https://api.aeoapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AEO_API_KEY}"
      }
    }
  }
}
```

## Cursor

Add this entry to `~/.cursor/mcp.json` to use it in all your local projects. Open Cursor with your key in its environment, then check that `aeoapi` appears in the MCP server list.

```
{
  "mcpServers": {
    "aeoapi": {
      "url": "https://api.aeoapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AEO_API_KEY}"
      }
    }
  }
}
```

## Claude Desktop

Claude Desktop can launch `mcp-remote` locally. This bridge connects to the hosted server over Streamable HTTP. Install a current Node.js LTS release and make sure `npx` is available to Claude Desktop.

1. Open `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS or `%APPDATA%\Claude\claude_desktop_config.json` on Windows. Create the file if needed.
2. Add the configuration below. In `AEO_AUTH`, replace `<your API key>` with your key and keep the space after `Bearer`. Keep this file private.
3. Save, fully quit Claude Desktop and reopen it. Open the tools menu in a new chat and look for `aeoapi`.

```
{
  "mcpServers": {
    "aeoapi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.aeoapi.dev/mcp",
        "--transport",
        "http-only",
        "--header",
        "Authorization:${AEO_AUTH}"
      ],
      "env": {
        "AEO_AUTH": "Bearer <your API key>"
      }
    }
  }
}
```

## VS Code

For VS Code with GitHub Copilot, add the following to `.vscode/mcp.json` in your workspace. Start VS Code with the key in its environment. Run **MCP: List Servers** in the Command Palette and select `aeoapi` to check the connection.

```
{
  "servers": {
    "aeoapi": {
      "type": "http",
      "url": "https://api.aeoapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AEO_API_KEY}"
      }
    }
  }
}
```

## Gemini CLI

Add the server to `~/.gemini/settings.json`. The `httpUrl` field selects Streamable HTTP. Start Gemini CLI and run `/mcp` to list connected servers and their tools.

```
{
  "mcpServers": {
    "aeoapi": {
      "httpUrl": "https://api.aeoapi.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${AEO_API_KEY}"
      }
    }
  }
}
```

## Other MCP clients

Select Streamable HTTP and enter `https://api.aeoapi.dev/mcp` as the server URL. In the client's private header settings, set `Authorization` to `Bearer <your API key>`, replacing the placeholder with your key. Connect and list the available tools.

## Check the connection

With an `account:read` key, ask your client to call `get_account` with `{}` and show your plan. The tool returns the account overview in `structuredContent.data`.

If you see HTTP `401`, check that the client received the key and sent the full `Authorization` header. If a tool is missing, check your plan, enabled features, role and [key permissions](https://aeoapi.dev/docs/guides/authentication-and-access).

## Available tools

The catalog includes 4 documentation tools, 57 data tools and up to 115 write tools. Your client's `tools/list` request shows which ones you can use. The list depends on your plan, role, enabled features and key permissions. A key with only read permissions sees no write tools.

### Data and documentation tools

- **Documentation** · `list_endpoints`, `get_endpoint`, `search_docs`, `get_doc`
- **Account and usage** · `get_account`, `get_usage`
- **Brands and connections** · `list_brands`, `get_brand_profile`, `suggest_brand_profile`, `get_bing_connection`, `get_bing_insights`
- **Prompts and topics** · `list_prompts`, `suggest_buyer_questions`, `get_brand_prompt_coverage`, `export_brand_prompts`, `get_brand_prompt_metadata`, `list_topics`, `suggest_topic_prompts`, `get_topic_fields`, `get_prompt_fields`, `list_prompt_checks`, `get_prompt_check`, `get_tracked_prompt_history`
- **Collection and runs** · `get_job`, `get_managed_prompt_set`, `get_managed_estimate`, `list_managed_runs`, `get_managed_run`, `get_managed_schedule`
- **Visibility and analytics** · `query_visibility`, `query_prompts`, `query_attribution`, `get_analytics_dashboard`, `get_search_performance`, `get_brand_perception`
- **Audits and content checks** · `get_audit`, `get_page_experience`, `get_url_impact`, `get_simulation_run`, `get_answer_accuracy`, `get_draft_accuracy`
- **Citations** · `get_citation_analytics`, `get_citation_inventory`, `get_citation_gaps`, `get_missing_brand_sources`, `get_citation_fields`
- **Recommendations** · `get_recommendations`, `get_optimization`, `get_recommendation_board`, `get_analyst_action`, `get_analyst_run`, `get_analyst_outcome_report`
- **Content drafts** · `get_content_generation`, `lookup_brand_keywords`, `get_brand_content_voice`, `list_brand_content_drafts`, `get_brand_content_draft`, `list_brand_content_events`
- **Reports** · `get_report`, `compare_reports`, `get_report_rollup`

### Write tools

- **Brands and connections** · `create_brand`, `refresh_bing_connection`, `review_competitor_suggestions`, `update_answer_accuracy_schedule`, `update_brand`, `update_brand_profile`, `update_brand_voice`, `update_cited_page_sweep_schedule`, `update_collection_schedule`, `update_managed_schedule`
- **Prompts and topics** · `archive_prompt`, `build_prompts`, `create_prompt`, `delete_topic`, `generate_prompts`, `import_prompts`, `preview_conversation_prompts`, `preview_local_prompts`, `request_prompt_deletion`, `save_prompt_set`, `save_topic`, `update_prompt`, `update_prompt_batch`, `update_prompt_metadata`
- **Runs and estimates** · `cancel_audit`, `cancel_collection`, `cancel_managed_run`, `estimate_ai_search_topics`, `estimate_audit`, `estimate_check_answer_accuracy`, `estimate_check_draft_accuracy`, `estimate_cited_page_labelling`, `estimate_cited_page_sweep`, `estimate_collect`, `estimate_editorial_generation`, `estimate_managed`, `estimate_managed_batch`, `estimate_passage_overlap`, `estimate_prepublish_review`, `estimate_prompt_suggestions`, `estimate_query_fanout_coverage`, `estimate_retrieval_benchmark`, `estimate_retrieval_regression`, `estimate_retrieval_win_rate`, `estimate_verify_answer_claims`, `start_ai_search_topics`, `start_asset_readability`, `start_audit`, `start_brave_submit`, `start_check_answer_accuracy`, `start_check_draft_accuracy`, `start_citation_check`, `start_cited_page_labelling`, `start_cited_page_sweep`, `start_collect`, `start_comparison_evidence_gaps`, `start_context_position_test`, `start_editorial_generation`, `start_explain_visibility_change`, `start_managed`, `start_managed_batch`, `start_page_refresh`, `start_passage_overlap`, `start_persona_geo_divergence`, `start_prepublish_review`, `start_query_fanout_coverage`, `start_retrieval_benchmark`, `start_retrieval_regression`, `start_retrieval_win_rate`, `start_verify_answer_claims`
- **Recommendations** · `act_on_optimization`, `approve_analyst_action`, `create_analyst_action`, `decide_optimization`, `preview_editorial_action`, `update_recommendation_board`
- **Content drafts** · `approve_draft`, `archive_draft`, `claim_draft_artifact`, `claim_draft_delivery`, `create_draft`, `hand_off_draft`, `pause_draft_artifacts`, `record_draft_artifact`, `record_draft_failure`, `record_draft_publication`, `request_draft_changes`, `submit_draft`, `update_draft`
- **Brand evidence** · `remove_asset_document_evidence`, `remove_citation_review_evidence`, `remove_impact_target_evidence`, `remove_keyword_dataset_evidence`, `remove_passage_document_evidence`, `remove_prepublish_snapshot_evidence`, `save_access_logs_evidence`, `save_accuracy_facts_evidence`, `save_asset_document_evidence`, `save_citation_review_evidence`, `save_impact_target_evidence`, `save_keyword_dataset_evidence`, `save_page_experience_evidence`, `save_passage_document_evidence`, `save_prepublish_capture_evidence`, `save_prepublish_competitors_evidence`, `save_prepublish_draft_evidence`, `save_prepublish_prompts_evidence`, `save_traffic_evidence`, `save_verified_facts_evidence`
- **Reports** · `create_report_share_link`, `revoke_report_share_link`
- **Tracking fields and attribution** · `ingest_attribution`, `update_citation_fields`, `update_prompt_fields`, `update_topic_fields`

## Make a change from your client

Every write tool needs a `confirm` field. Nothing changes until it is `true`.

1. Call the tool with `confirm` set to `false`. The reply describes the target, the fields and, for paid work, the cost. Nothing changes.
2. Check the preview. For a run with a spending limit, include the most credits you approve.
3. Send the same fields with `confirm` set to `true` to apply the change. Check `isError` before you use the result.
4. If you lose the reply, send the same request again with the same `idempotency_key`. The change is not applied twice.

Tools that archive, cancel, delete, revoke or replace something are marked as destructive, so your client can ask you before it runs them. Tool replies never include API keys, passwords, email addresses or internal account IDs. Manage keys, users, billing and connections that need credentials in your account.

Find the [arguments for each tool](https://github.com/aeo-api/aeoapi-mcp/blob/main/TOOLS.md) and the client configuration files in the [AEO API MCP repository](https://github.com/aeo-api/aeoapi-mcp).
