mcp
v1.8.0MCP server for the Mangos AI desktop app: manage agents, drafts and schedules from Claude Code or Codex.
Manage your Mangos AI agents from Claude Code or Codex. Mangos AI runs AI agents that post and reply on your social accounts. This MCP server lets you drive that setup in plain English from a terminal instead of clicking through the app: create any supported agent or a paused email campaign, adjust an agent's voice, rewrite drafts before they go out, approve and reschedule posts, and manage the outreach queue. 1. Open Mangos AI, go to Connect Claude / Codex in the sidebar, and turn on Enable local connection. 2. Run one of these once, in any terminal:
Summary extracted from the README.
@mangos-ai/mcp
Manage your Mangos AI agents from Claude Code or Codex.
Mangos AI runs AI agents that post and reply on your social accounts. This MCP server lets you drive that setup in plain English from a terminal instead of clicking through the app: create any supported agent or a paused email campaign, adjust an agent's voice, rewrite drafts before they go out, approve and reschedule posts, and manage the outreach queue.
Setup
- Open Mangos AI, go to Connect Claude / Codex in the sidebar, and turn on Enable local connection.
- Run one of these once, in any terminal:
claude mcp add mangos -- npx -y @mangos-ai/mcp
codex mcp add mangos -- npx -y @mangos-ai/mcp
Then just ask:
- "What are my agents posting about this week?"
- "Tighten the tone on my LinkedIn agent, it reads too salesy."
- "Show me tomorrow's scheduled posts and move the 9am one to noon."
- "Rewrite the pending Twitter drafts to drop the hashtags, then approve them."
- "Reword all my queued DMs to sound less pitchy, then show me what you changed."
- "Approve DMs 1, 3 and 4. Leave the rest for later."
- "Create an Instagram DM agent for @acme that reaches bootstrapped SaaS founders."
- "Create a paused LinkedIn posting agent for @acme that writes about developer tools."
- "Create a founder-outreach email campaign and a Mangos AI Business Profile for it."
- "Push these Apollo people into Mangos, show me what was deduped, then process one person every 30 minutes."
- "Show my remaining Instagram replies separately from first-touch DMs."
Keep Mangos AI running while you use it.
What it can and cannot do
Create any user-facing social agent, create a Business Profile with a paused organic email campaign, then review, edit, approve, schedule, and send outreach. Creation only saves configuration: it never logs in, runs an agent, researches, imports prospects, drafts, publishes, schedules, or sends. Separate tools can run any configured agent using its current approval mode, generate or save review-only post drafts, run one Reddit Post drafting cycle, or publish one named pending social draft when explicitly requested. Running an outreach agent researches prospects and queues drafts; it does not send the queued DMs or emails. Optional X relationship settings can permit a public reply or follow during research. Approved and scheduled content goes back to Mangos AI, which handles execution through its normal schedules, plan checks, and daily limits.
Approving outreach is not sending. DM and email approval marks drafts ready and is reversible. Social post approval puts a draft on the schedule, where it can publish automatically at its scheduled time. Sending is always a separate request, it has to name the exact drafts (there is no send-everything form), and it runs through the same daily caps and human-like pacing as the app's own Send button.
MCP sending accepts approved drafts only. Editing an approved DM returns it to
pending review. Instagram inbound replies use actionType: "dm_reply"; they can
only be sent by explicitly naming their message IDs and never join bulk Send
approved. The app rechecks the live Instagram conversation before delivery.
Edits and deletions made through MCP do not teach the agent a new writing style. Your own edits in the app can still teach it when learning is enabled.
Agent editing workflow
Mangos exposes both its configuration and its product vocabulary. Claude or Codex should use this sequence for every agent edit:
- Call
inspect_agent_for_editing. - Read the platform purpose, field definitions, full sanitized config, and
effectiveBehavior. - Use one of the semantic update tools with the returned
revisionasexpectedRevision. - Check the response's
effectiveBehaviorto confirm what the running agent will actually use.
If another app edit lands first, the update returns stale_revision instead of
overwriting it. Inspect again, reconcile the new value, and retry. Successful
MCP edits refresh an open agent editor. If both places changed the same field,
the app asks which value to keep.
Use searchTerms when changing targeting. The server maps it by platform:
- Original-post agents:
topics - X, Threads, LinkedIn, Facebook, and Reddit engagement:
keywords - Twitter DM:
dmKeywords, which override generated ICP tweet terms - Instagram DM: human-readable cold-discovery topic phrases. Runtime resolves
instagramDiscoveryTerms, thendmKeywords, then generated ICP search terms - Instagram:
hashtags - Email outreach:
localSearchQueries
Generated icpProfile.searchKeywords are fallback suggestions.
icpProfile.peopleSearchQueries are separate People-search phrases, not DM
tweet keywords. Use semantic peopleSearchQueries to override those generated
People-search suggestions without changing tweet search. The built-in mangos://product-guide and
mangos://field-guide resources provide this context before any tool call.
update_agent remains available for advanced raw fields. Prefer the semantic
tools for identity, targeting, style, and limits. Stale draft IDs and IDs owned
by another agent return errors.
| Tools | |
|---|---|
| Agents | list_agents, create_agent, create_instagram_dm_agent, get_agent, inspect_agent_for_editing, update_agent_identity, update_agent_targeting, update_agent_style, update_agent_limits, update_agent, set_agent_voice, set_agent_scheduler, run_agent, generate_post_drafts, save_post_drafts, run_reddit_post_draft_cycle |
| Instagram profile lists | list_instagram_profiles, add_instagram_profile, update_instagram_profile, delete_instagram_profiles |
| Replies on my posts (X / Threads reply agents) | get_own_post_replies, stop_watching_own_post, dismiss_waiting_reply; turn it on or off with update_agent {watchOwnPostReplies} |
| Drafts awaiting review | list_pending_drafts, update_pending_draft, delete_pending_draft, approve_draft, publish_draft_now |
| Scheduled posts | list_scheduled_posts, update_scheduled_post, reschedule_post, retry_scheduled_post, cancel_scheduled_post |
| DM outreach | list_dm_drafts, update_dm_draft, bulk_update_dm_drafts, approve_dm_drafts, unapprove_dm_drafts, send_dm_drafts, skip_dm_draft |
| Email outreach | create_email_campaign, list_email_accounts, configure_email_account, test_email_account, sync_email_inbox, disconnect_email_inbox, push_email_list, list_email_lists, get_email_list, list_email_drafts, update_email_draft, bulk_update_email_drafts, approve_email_drafts, unapprove_email_drafts, send_email_drafts, schedule_email, reschedule_email, cancel_email_schedule, skip_email_draft |
Mailbox passwords never pass through MCP. Add or replace a password in the local Mangos desktop UI. MCP can safely update hosts, ports, TLS, usernames, folders, and reply protection, reuse the SMTP password already encrypted by Mangos for IMAP, test stored credentials, and trigger an inbox sync.
Push lists from Apollo, Clay, or another MCP
Any MCP that can return structured people can hand them to push_email_list.
Mangos accepts up to 500 people per call, normalizes source IDs, emails and
LinkedIn URLs, and returns the accepted rows plus every exclusion reason. Repeating
the same push is idempotent. Suppressed, previously emailed, queued, and duplicate
people are excluded before Mangos spends research or enrichment credits.
Omit campaignId and include campaign to create an active list campaign. Pass
the returned campaignId on later calls to append. Research defaults to one
person every 30 minutes, up to 10 per day, inside the campaign's overnight
window. It creates review drafts only. It never approves or sends them.
Use list_email_lists to find campaigns and funnel counts, then page through
the canonical list with get_email_list to monitor research and draft readiness.
The approve, bulk-edit and send tools need a desktop app new enough to serve them. Against an older build they return a "No route" error; update Mangos AI.
run_agent(agentId) triggers one run of any configured agent using its current
settings. Auto social agents may publish immediately; manual agents create
review drafts; outreach agents research prospects and queue drafts without
sending. Schedules remain unchanged. The response reports accepted,
already_queued, already_running, or blocked, not completion. Runs share the
app's browser queue and runtime checks. Use get_agent to inspect activity and
drafts afterward. This tool requires an updated desktop app; older builds return
"No route" and must be updated.
run_reddit_post_draft_cycle runs the Reddit Post agent's research and drafting
once, then returns any new drafts. It is restricted to the review-only Reddit
Post platform and cannot approve, schedule, or publish a post.
list_dm_drafts covers Twitter, Instagram, Reddit, and LinkedIn. It includes
queue counts plus actionType, relationshipState, and explicit-send flags so
the caller can distinguish cold first touches from Instagram inbound replies.
Its dailyByAgent block reports sentToday, sendCap, and
remainingSendsToday; Instagram values are scoped to the sending account.
How it connects
The app serves a management API bound to 127.0.0.1 on an OS-assigned port,
behind a bearer token generated fresh on every launch. Port and token are
written to mcp.json in the app's data folder, which this server reads on each
call. The socket is not reachable off the loopback interface, the file is
removed when the app quits, and no API key or password ever crosses the API.
Management traffic and agent data stay on your machine. Explicit send tools deliver the approved outreach drafts you name.
publish_draft_now publishes one named pending social draft immediately;
approve_draft schedules a social draft for later publication.
Troubleshooting
"Could not reach the Mangos AI app" means the app is not running, or the local connection is still off in Settings.
"Mangos AI is not answering" means the app was force-quit and left a stale
mcp.json. Start the app again.
Set MANGOS_MCP_FILE to point at a specific mcp.json if you run the app from
a non-standard data directory.
Tests
Requires the app running with the connection enabled. These exercise real data and restore it afterwards.
node test/read-write.mjs && node test/approve-flow.mjs && node test/dm-approve.mjs && node test/offline.mjs
test/full-sample.mjs is the full destructive suite. It needs a
throwaway app instance and refuses to run against the real data directory:
npx electron . --user-data-dir=/tmp/mangos-sample
MANGOS_MCP_FILE=/tmp/mangos-sample/mangos-ai/mcp.json node test/full-sample.mjs
MIT