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
Authorizationheader. 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:
| Setting | Value |
|---|---|
| URL | https://advnt.co/api/mcp |
| Transport | Streamable HTTP |
| Header | Authorization: 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
| Tool | What it does |
|---|---|
list_accounts | Managed accounts with post counts and aggregate performance. |
get_account_strategy_context | An account's audience, product, CTA, voice, constraints, and visual direction. |
extract_product_profile | Drafts a product profile from a public URL or pasted description. Does not save. |
analyze_account_posts | Totals, averages, and top posts for one account over a date window. |
compare_content_cohorts | Compares top, typical, and bottom posts for an account. |
analyze_post_insights | Compares published posts on completion rate, watch time, save/share rates, and drop-off, optionally grouped by angle, winner, or slide count. |
get_post_insights | Full analytics history for one published post. |
list_templates | Global and account-bound content templates. |
list_winners | Winning posts that can be adapted for an account. |
get_winner | One winner in full, including the exact slide count variations must match. |
list_posts | Posts awaiting review, queued, or published. |
get_post | One post in full: caption and every slide's text and image. |
get_generation_status | Status of post-generation runs. |
get_phone_task_status | Status and timing of a phone task. |
Write tools
These change data or act on a real phone as soon as they are called.
| Tool | Effect |
|---|---|
save_product_profile | Replaces the account's product profile. |
create_posts_from_winner | Creates up to 100 posts from a winner. |
update_post | Rewrites the title, caption, or slide text of a post awaiting review. |
approve_posts | Sends posts awaiting review to the publishing queue. They publish without another check. |
delete_posts | Permanently deletes posts awaiting review. |
start_phone_task | Starts warmup, navigation, commenting, or posting on the account's phone. |
cancel_phone_task | Cancels 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
| Status | Meaning |
|---|---|
401 | Missing, invalid, or revoked API key, or its creator no longer has access. |
403 | Content 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.