> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adstellar.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AdStellar MCP Server

> Connect Claude, ChatGPT, Cursor, or your own agents to AdStellar over the Model Context Protocol — generate copy, query performance, browse models and avatars, and manage campaigns programmatically.

The AdStellar MCP server exposes the platform's creative-generation and ads-management surface as MCP tools, so any MCP-compatible client can drive AdStellar on your behalf.

**Endpoint** (streamable HTTP, stateless — no SSE required):

```
https://app.adstellar.ai/api/mcp
```

## What you can do

* **Generate ad copy** grounded in your brand kit (`generate_ad_copy`)
* **Query performance** across campaigns, ad sets, and ads (`query_performance`)
* **Discover models** — image, video, TTS, and lipsync registries with cost and capability metadata (`list_models`)
* **Browse avatars and voices** for talking-actor videos (`list_avatars`, `list_voices`)
* **Manage org data** — team info, credit balance, brand kit, products, projects, ad accounts
* **Search your asset library** and inspect campaigns and launches
* **Optimize live ads**: pause, resume or archive campaigns, ad sets and ads and change budgets, each behind a preview-and-confirm step
* **Launch campaigns**: build a complete campaign with the same builder the Agent uses, review the preview, publish (paused by default)
* **Automate**: create standing rules ("pause when 7-day CPA > $40 after $50 spend"), dry-run them, and approve or reject the actions they queue

## Multi-model by design

AdStellar is multi-model. The MCP does not expose one tool per model — instead:

1. Call `list_models` with a `capability` filter (`image`, `video`, `tts`, `lipsync`) to enumerate available models, their providers, costs, and limits.
2. Pass the chosen model's `id` as the `model` parameter of a generation tool. Omit it to use the default router (best quality-per-credit for the job).

## Credits & billing

> [!NOTE]
>
> Image and video generation over the MCP server **and** the REST API draw AI credits from your team's balance, exactly like generating inside the app. Ad copy and all read-only requests (analytics, model/avatar listings, status checks, org data) are free. Check your balance anytime with the `get_credit_balance` tool, and see per-model costs via `list_models`.

## Authentication

Interactive clients (ChatGPT, Claude, Cursor) connect with **OAuth 2.1** and no setup: paste the endpoint and approve the consent screen. Unattended agents use team-scoped API keys (`ast_live_...`). See [Authentication](https://docs.adstellar.ai/api-mcp/authentication.md).

## Connect ChatGPT or Claude

* **ChatGPT:** open [AdStellar in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6ac0b6df2c148191992b3a4334f2f833) and choose **Connect**.
* **Claude:** add the AdStellar connector. See [Use AdStellar in Claude](https://docs.adstellar.ai/api-mcp/claude.md).

## Next steps

> [card] [Authentication](https://docs.adstellar.ai/api-mcp/authentication.md)
>
> Create and scope your API key.

> [card] [Quickstart](https://docs.adstellar.ai/api-mcp/quickstart.md)
>
> Connect Claude Desktop in two minutes.

> [card] [Tool reference](https://docs.adstellar.ai/api-mcp/tools.md)
>
> Every tool, its scopes, and its parameters.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.