Connect an AI agent (MCP)

Give Claude, Cursor, or any MCP client the ADVNT agent's tools for research, post generation, review, and phone tasks.

ADVNT serves the same tools as its in-app agent over the Model Context Protocol. Connect an MCP client to research winners, generate and review posts, read analytics, and run phone tasks for your organization's accounts.

Endpoint: https://advnt.co/api/mcp (Streamable HTTP)

Write tools act immediately

In the ADVNT dashboard, actions such as approving posts or starting a phone task show an approval card first. Over MCP there is no ADVNT approval step: the call runs as soon as the client makes it. Keep your client's per-tool permission prompts turned on for the write tools.

Before you start

  • Your workspace must have content creation enabled. Otherwise every request returns 403.
  • Create an API key. The MCP server uses the same organization API keys as the REST API, and a key acts as its creator within the organization where it was created.
  • Your MCP client must support remote servers over Streamable HTTP with a custom Authorization header. OAuth sign-in is not supported.

Treat the key like a publishing credential: with it, an agent can approve posts for publishing and drive real phones.

Connect your client

Claude Code

claude mcp add --transport http advnt https://advnt.co/api/mcp \
  --header "Authorization: Bearer advnt_YOUR_API_KEY"

Run /mcp inside Claude Code to confirm advnt is connected and list its tools.

Cursor

Add the server to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "advnt": {
      "url": "https://advnt.co/api/mcp",
      "headers": {
        "Authorization": "Bearer advnt_YOUR_API_KEY"
      }
    }
  }
}

Claude Desktop and other stdio-only clients

Clients that only launch local servers can reach ADVNT through the mcp-remote proxy. For Claude Desktop, add this to claude_desktop_config.json and restart the app:

{
  "mcpServers": {
    "advnt": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://advnt.co/api/mcp",
        "--header",
        "Authorization:${ADVNT_AUTH}"
      ],
      "env": {
        "ADVNT_AUTH": "Bearer advnt_YOUR_API_KEY"
      }
    }
  }
}

The header value goes through env because some clients split arguments on spaces.

Other clients

Configure a remote (HTTP) MCP server with:

SettingValue
URLhttps://advnt.co/api/mcp
TransportStreamable HTTP
HeaderAuthorization: Bearer advnt_YOUR_API_KEY

Do not commit a config file containing your key. Use your client's environment-variable support or secret store where available.

What the agent can do

On connect, the server sends instructions describing the content loop, so most clients need no extra prompting. Ask in plain language, for example:

  • "Which of my TikTok posts from the last 30 days held viewers best at 24 hours, and why?"
  • "Find a winner for @your.account, write 10 variations, and create them."
  • "Show me the posts awaiting review, tighten weak hooks, and delete the ones that shouldn't ship."
  • "Start a warmup session on @your.account."

Every tool is scoped to the API key's organization. Keys created by ADVNT platform admins are the exception: every tool also takes an optional organizationId to act in another organization, and list_organizations lists them.

Read tools

ToolWhat it does
list_accountsManaged accounts with post counts and aggregate performance.
get_account_strategy_contextAn account's audience, product, CTA, voice, constraints, and visual direction.
extract_product_profileDrafts a product profile from a public URL or pasted description. Does not save.
analyze_account_postsTotals, averages, and top posts for one account over a date window.
compare_content_cohortsCompares top, typical, and bottom posts for an account.
analyze_post_insightsCompares published posts on completion rate, watch time, save/share rates, and drop-off, optionally grouped by angle, winner, or slide count.
get_post_insightsFull analytics history for one published post.
list_templatesGlobal and account-bound content templates.
list_winnersWinning posts that can be adapted for an account.
get_winnerOne winner in full, including the exact slide count variations must match.
list_postsPosts awaiting review, queued, or published.
get_postOne post in full: caption and every slide's text and image.
get_generation_statusStatus of post-generation runs.
get_phone_task_statusStatus and timing of a phone task.

Write tools

These change data or act on a real phone as soon as they are called.

ToolEffect
save_product_profileReplaces the account's product profile.
create_posts_from_winnerCreates up to 100 posts from a winner.
update_postRewrites the title, caption, or slide text of a post awaiting review.
approve_postsSends posts awaiting review to the publishing queue. They publish without another check.
delete_postsPermanently deletes posts awaiting review.
start_phone_taskStarts warmup, navigation, commenting, or posting on the account's phone.
cancel_phone_taskCancels an active phone task.

Long-running work

create_posts_from_winner and start_phone_task return IDs and keep working in the background. The agent polls get_generation_status or get_phone_task_status with those IDs, then reads the finished posts with list_posts and get_post. Individual tool calls time out after two minutes.

Errors

StatusMeaning
401Missing, invalid, or revoked API key, or its creator no longer has access.
403Content creation is not enabled for the workspace.

Errors inside a tool, such as an unknown post ID, come back as a tool result with isError: true and a JSON body like { "success": false, "error": "..." }. The agent can read it and correct its next call.

To cut off an agent's access, revoke its API key. Revoking does not cancel generation runs or phone tasks already started.

On this page