Free planRead every connected account, 100 reads a day, free forever.See pricing →

Security

Paranoid by design.

You're handing an AI the keys to your ad accounts. Here's exactly how MegaMCP keeps those keys safe, and keeps the AI on a leash.

Last updated:

Token encryption
AES-256-GCM
AI sign-in
OAuth 2.1 + PKCE
Access tokens last
1 hour
Plans expire after
24 hours

Three locks on every account

Encrypted keys. Human approvals. Narrow scopes.

Your AI can read what you switch on and propose changes. It can't apply them, raise a cap, or see a token.

Encrypted, row-bound tokens

Platform tokens are sealed with AES-256-GCM under versioned keys, and each ciphertext is bound to the connection it belongs to.

Plans, not actions

Every write is a plan with a diff that waits for a person. Budget bumpers are checked when it's proposed and again before it's applied.

Only the scopes features use

Each permission is listed below with the reason MegaMCP asks for it. Optional products ask separately.

  • openid
  • email
  • adwords
  • analytics.readonly
  • analytics.edit
  • webmasters
  • tagmanager.readonly
  • tagmanager.edit.containers
  • tagmanager.edit.containerversions
  • tagmanager.publish
  • ads_read
  • ads_management
  • business_management

No login passwords

OAuth platforms use their own sign-in. HubSpot also supports private-app tokens, and WordPress uses an application password, never your login password. Disconnect removes stored access in MegaMCP; revoke credentials at the platform to end their access there.

Encrypted tokens

Platform tokens are encrypted with AES-256-GCM, with versioned keys for rotation, and bound to the database row they belong to.

Humans approve

Connected-platform changes require a reviewed plan with a diff and human approval. Budget bumpers can block supported budget changes. Internal report drafts can be saved directly; public sharing requires admin review.

Undo

Supported operations record what they need for reversal. Irreversible operations are marked before approval and excluded from undo. Undo is its own plan, with its own diff and approval.

Flight recorder

Every tool call, plan, approval, connection and billing event is logged with who did it and from which AI app.

No training

We never train models on your data. Reporting snapshots are stored when you capture them. The optional hosted agent stores encrypted conversations and tool receipts; your chosen provider's data terms apply.

On this page
  1. How your AI connects
  2. How we connect to Google, Meta, Microsoft and HubSpot
  3. Encryption and secrets
  4. Changes are gated
  5. Audit log
  6. Application security
  7. Your data
  8. Responsible disclosure
  9. Questions
Back to top

How your AI connects

  • OAuth 2.1 with PKCE (S256 only). Each person signs in to MegaMCP in their browser and picks a workspace. The AI app never sees a password.
  • Tokens are scoped to MegaMCP's MCP endpoint (resource indicators, RFC 8707), so a token issued for MegaMCP is useless anywhere else.
  • Short-lived access tokens (1 hour) with refresh tokens that rotate on every use (30 days max). If an old refresh token or authorization code is replayed, we treat it as theft and revoke that connection.
  • Role checks on every call. Each tool call re-checks the person's membership, role and the workspace's plan. Viewers can't propose or approve changes.
  • Origin checks and rate limits on the MCP endpoint to block DNS-rebinding attacks and runaway clients.
  • Revoke anytime from Connect AI in the dashboard. It takes effect immediately.

How we connect to Google, Meta, Microsoft and HubSpot

OAuth flows use single-use state and PKCE where supported. Review account access and client assignment after connecting. A first Google, Meta, Microsoft, HubSpot or other one-click sign-in switches on every account it finds for reads; changes still need a person's approval. New file, key-based and beta integration accounts start switched off, and a first WordPress or store connection with exactly one discovered account switches that account on. Reconnecting preserves existing choices. Your AI sees enabled accounts within its permitted client scope. We request the scopes MegaMCP's features use:

Google

Each Google product is its own short consent: connecting Google Ads asks only for the Ads permission, Search Console only for Search Console, and so on. Adding another product to the same login uses Google's incremental authorization, so earlier grants stay as they were.

ScopeWhy
openidIdentify which Google account you connected.
emailShow which Google account a connection belongs to.
adwordsGoogle Ads API access. Google offers only this one scope; MegaMCP's own approvals decide what actually changes.
analytics.readonlyRun GA4 reports.
analytics.editChange the GA4 settings you approve: key events, custom dimensions and metrics, audiences, web data streams, data retention, enhanced measurement and property settings. Deleting a data stream or archiving a definition is marked irreversible before approval.
webmastersRead Search Console performance, inspect URLs, submit sitemaps (after approval).
tagmanager.readonlyRead and audit Tag Manager containers.
tagmanager.edit.containersCreate and update GA4 event tags, custom-event triggers and constant variables, and pause tags, in a workspace (after approval).
tagmanager.edit.containerversionsCreate a container version so a workspace can be published.
tagmanager.publishPublish a workspace, always as its own approved plan.

Optional Google products

These are requested separately when an admin connects the corresponding product. They are not added to the default marketing grant automatically. Operator API setup, Google verification and customer consent are required; code support alone does not establish public approval.

ScopeWhy
drive.fileRead and edit only files created for or explicitly selected for MegaMCP, including supported Sheets, Docs and Slides. Existing files use Google's Picker and a separate narrow browser grant.
contentInspect Merchant Center products and data sources, and perform the specific account-name/product-copy edits you approve. Product-input edits are irreversible.
business.manageDiscover Business Profile locations, read reviews, and after approval reply to a review or change a location's website URI or regular hours. Google project/API approval may also be required.
youtube.readonlyRead your connected channel and owned video metadata.
youtube.force-sslOptional YouTube management consent for reviewed video title/description changes. The permission is broader than the metadata tools MegaMCP exposes.
bigqueryRead metadata and dry-run constructed SELECT queries in an enabled dataset. Actual query execution requires cost consent and a separate human-approved plan with maximum bytes billed; costs cannot be undone.

File services and customer API keys

Microsoft Graph requests delegated Files.Read.All for reads, or Files.ReadWrite.All when reviewed renames are selected, plus identity and offline access. These grants are broad at Microsoft; MegaMCP checks the enabled folder and client before file operations. Dropbox OAuth requests account_info.read, files.metadata.read and files.content.read and restricts tools to the enabled folder. Private commerce, research, advertising and SEO credentials can also have broader vendor privileges than MegaMCP's tool set. Use dedicated credentials, review each connection's disclosure, and revoke vendor access separately when finished.

Meta

PermissionWhy
ads_readRead campaigns, ad sets, ads and insights.
ads_managementMake the changes you approve (pause, budgets, duplicate, create paused ads).
business_managementFind ad accounts owned by your Business Manager.

Microsoft Advertising

ScopeWhy
https://ads.microsoft.com/msads.manageMicrosoft Advertising API access. Microsoft offers only this one scope; it lets MegaMCP read the ad accounts your login can reach and make the changes you approve (statuses, daily budgets, negative keywords).
offline_accessGet a refresh token, so the connection keeps working after the one-hour access token expires.
openidSign you in with your Microsoft account.
profileShow which Microsoft account a connection belongs to.

HubSpot

ScopeWhy
oauthRequired by HubSpot for every app that connects with OAuth; also lets us read the connected account's id, name and currency.
crm.objects.contacts.readSearch and read contacts, and read notes, tasks, calls, emails and meetings (HubSpot's activity APIs use the contact scopes).
crm.objects.contacts.writeCreate contacts, update contact properties, and add notes and tasks (after you approve the plan).
crm.objects.companies.readSearch and read companies.
crm.objects.companies.writeUpdate company properties (after you approve the plan).
crm.objects.deals.readSearch and read deals and deal pipelines.
crm.objects.deals.writeCreate deals and update deal properties such as stage and amount (after you approve the plan).
crm.objects.owners.readShow who owns a record and check owner ids before assigning them.
crm.schemas.contacts.readList contact properties, including traffic-source and click-id properties.
crm.schemas.deals.readList deal properties.

Other one-click sign-ins

Each appears in the dashboard only after the vendor approves MegaMCP's app. Customers can still use their own dedicated tokens or keys instead.

ServiceWhat MegaMCP requests
TikTok AdsAd account management, campaign management and reporting permissions, chosen on MegaMCP's TikTok app
LinkedIn Adsr_ads, r_ads_reporting, rw_ads
Reddit Adsidentity, adsread, adsedit
Pinterest Adsads:read, ads:write, user_accounts:read
X AdsOAuth 1.0a read and write access for the X Ads API
Shopifyread_products, write_products, read_orders, read_locations, read_inventory, write_inventory
Klaviyoaccounts:read, campaigns:read, campaigns:write, lists:read, metrics:read, templates:read, templates:write
MailchimpMailchimp's standard account access (Mailchimp has no narrower scopes); tools stay within enabled audiences and drafts

Google lets you untick individual permissions on its consent screen. MegaMCP shows which products a login hasn't granted and offers to add just those.

Encryption and secrets

  • Platform tokens and WordPress application passwords are encrypted at rest with AES-256-GCM. Application passwords are only ever sent to the site they belong to, over https. Keys are versioned: new data is encrypted with the newest key while older keys can still decrypt, so keys can be rotated without downtime.
  • Row binding. Each ciphertext is bound to the connection and purpose it belongs to (authenticated additional data), so an encrypted token copied into another row simply fails to decrypt.
  • We store only hashes of our own secrets. Session cookies, sign-in links and the OAuth tokens we issue to AI apps are stored as SHA-256 hashes. A database leak wouldn't hand anyone a working session.
  • In transit, everything is served over HTTPS with HSTS.
  • Never logged. Tokens and secrets are kept out of logs, error messages and the flight recorder.

Changes are gated

  • Plans, not actions. Write tools read the live state and return a plan with before and after values. They can't touch the platform.
  • Human approval, in the dashboard by default. If an admin opts in, a connection can also apply its own plans in chat after an explicit yes, but never workflow plans or uncapped spend increases.
  • Budget bumpers are checked when a plan is proposed and again right before it's applied. Blocked plans can't be applied by anyone.
  • Applied at most once. A plan flips from pending to applying atomically, so a double click or a retried request can't apply it twice.
  • Stops on the first failure, and skips the rest, so you never get half a plan you didn't expect.
  • Plans expire after 24 hours, because the live account may have moved on.
  • Safe defaults: new Google Ads campaigns and new Meta ads are created paused, and Tag Manager publishing is always its own plan.

How approvals and undo work · Budget bumpers

Audit log

The flight recorder logs every tool call (with its arguments), plan, approval, rejection, change, undo, connection, team change and billing event, with the person and the AI app behind it. It's searchable in the dashboard and admins can export it as CSV.

Application security

  • A strict Content Security Policy: no inline scripts, no framing, and no third-party scripts except Google Analytics, which runs without cookies until you accept them.
  • CSRF tokens on every form that changes anything, and HttpOnly, SameSite, Secure cookies.
  • Parameterized SQL everywhere, and every query scoped to your workspace.
  • Rate limits on sign-in, sign-up and the MCP endpoint.
  • Stripe webhooks are verified by signature; card details go to Stripe, never to us.
  • Automated tests for the security-critical paths: OAuth, encryption, the change engine, guardrails and workspace isolation.

Your data

We don't sell your data and we never use it (or data from Google, Meta, Microsoft or HubSpot) to train AI models. Ordinary immediate connector reads do not create saved report snapshots. Saved reporting stores definitions, layouts, commentary, imported rows, brand kits, and captured data with source receipts. Report access follows workspace and client permissions; admin-approved snapshot links expire after 30 days or can be revoked earlier. Expiring a link does not delete its saved snapshot. The optional hosted agent stores encrypted conversations and tool receipts until deleted or after 30 days without activity; your chosen provider's data terms also apply. Google data is handled under Google's API Services User Data Policy, including the Limited Use requirements. The full story is in our Privacy Policy.

Subprocessors

ProviderPurpose
OpenAI APIOptional hosted agent, workflow AI and image creation/editing using authorized BYOK or configured included AI where supported
Anthropic APIOptional hosted agent, only when an admin supplies an Anthropic key and authorizes it
Gemini APIOptional hosted agent, workflow AI and Veo creation using authorized customer Paid Services credentials
DeepSeek APIOptional BYOK hosted agent and workflow AI after admin training-exclusion attestation
xAI APIOptional BYOK hosted agent and workflow AI with response continuation storage disabled
CloudinaryOptional deterministic private MP4 trimming, cropping, downscaling and audio removal using a customer-configured account
LinkedInOptional approved Advertising API access at the customer direction
MailchimpOptional Marketing API reads and reviewed plaintext draft edits at the customer direction
SnapOptional Snapchat Marketing API operations at the customer direction
XOptional approved Ads API operations at the customer direction
Customer SMTP providerOptional exact plaintext email and owned attachments sent only after authenticated human dashboard approval
RailwayApplication hosting and managed Postgres database
StripeSubscription billing and payments
ResendTransactional email (sign-in links, invitations, workflow emails)
Google APIsAuthorized Google marketing, selected Workspace files, Merchant Center, Business Profile, YouTube and BigQuery operations, at the customer direction
Meta PlatformsMeta advertising and optional owned Facebook Page/linked professional Instagram operations, at the customer direction
Microsoft AdvertisingMicrosoft Advertising API (Bing Ads), at the customer's direction
HubSpotHubSpot CRM API, at the customer's direction

Responsible disclosure

Found a vulnerability? Email security@megamcp.com with what you found, steps to reproduce, and the impact you think it has. We'll acknowledge your report, keep you updated while we fix it, and credit you if you'd like.

Please test only against your own account and workspace, don't access or modify other people's data, don't degrade the service (no denial-of-service or spam), don't use social engineering, and give us reasonable time to fix the issue before disclosing it. If you follow these guidelines in good faith, we won't pursue legal action against you for your research.

Machine-readable contact details: /.well-known/security.txt.

Questions

Can MegaMCP staff see my ad accounts?

We don't browse customer accounts. Platform tokens are encrypted and only used to run the tools you and your AI call. We'd only look at your data with your permission (for example, in a support request), for security investigations, or when the law requires it.

What if my AI app gets tricked by a prompt injection?

It still can't change anything on its own. Write tools only create plans; applying one needs a human approval, budget bumpers still apply, and approvals in chat are off unless an admin turns them on. MegaMCP also tells the AI to treat platform data like search terms and page titles as untrusted, never as instructions.

What happens to my tokens if I disconnect?

They're wiped from our database immediately and we ask Google, Meta or HubSpot to revoke them (Microsoft has no revocation endpoint, so remove MegaMCP from your Microsoft account's app permissions to revoke it there). The accounts are switched off.

Do you have SOC 2?

Not yet. We're an early-stage company and we'd rather tell you that than wave a badge. Ask us for our security questionnaire answers at security@megamcp.com.

5 days. On the house.

Put Mega to work. Your ad budget stays yours.

No credit card to start. Every workspace comes with a sandbox ad account, so you can watch the whole ask, diff, approve, undo loop before you connect anything real.

Get launch updates

New integrations, platform approvals, the occasional dark joke. One or two emails a month. Unsubscribe anytime.

Want early access? Join the waiting list →