AI UGC Review
Workflows and teams

OAuth 2.1 or API Key? Choosing How to Connect the MCP Server

MCP OAuth or an API key for Mantinea's hosted server? When each fits, how key scopes work, and a setup pattern for agencies with many people and brands.

Short answer: use OAuth 2.1 when a person is sitting in a chat client, and an API key when a machine is calling the server on its own. Most teams end up with both, and that's fine.

Mantinea's hosted MCP server at https://app.mantinea.com/mcp accepts either. The rest of this post is about the edge cases, because that's where the wrong choice causes trouble: a shared key in a team's Claude account, or a background job that breaks because a person's sign-in expired. Server facts come from Mantinea's docs.

The two options in one table

OAuth 2.1API key
Who it representsA signed-in personWhatever holds the key
How you set it upAdd the server URL in the client, sign in through the browserCreate a key in the workspace, paste it into the client or config
Scope controlThe person's workspace accessKey scope: read, generate or admin
Best forClaude, ChatGPT, Cursor, VS Code used by peopleServers, CI jobs, scripts, headless agents
Where the secret livesManaged by the client after sign-inIn your config, env vars or secret manager
Rate limitsNot listed600 requests or 60 paid starts per minute, per key

Both connect to the same server, see the same tools and pay the same prices: one credit is $0.01 in the app, the API and MCP alike.

When OAuth is the right call

Pick OAuth when the MCP client is an interactive app and the person using it has their own Mantinea login.

It keeps a person attached to every action. In an agency, "who started that render?" is a real question. With OAuth, the answer is whoever signed in. With one shared key pasted into five people's clients, the answer is "the key".

It keeps secrets out of chat clients. Nobody has to copy a long-lived key into a settings screen on a laptop that might be lost or shared.

Seats aren't the constraint. Mantinea has unlimited seats on every plan, so there's no cost reason to have people share one login. Give everyone their own account and let each person sign in with OAuth.

The typical OAuth flow: add the server URL as a custom connector in Claude or ChatGPT (or in your editor's MCP config), pick OAuth, sign in in the browser, approve. The step-by-step for Claude is in the hosted MCP setup guide.

When an API key is the right call

Pick a key when there's no person in the loop at request time.

  • A headless agent you run on a server, which plans and renders ads on a schedule.
  • CI or a build step, for example a job that renders product videos when a new item lands in your catalog.
  • Your own app that calls the MCP server on behalf of your users.
  • A client that doesn't support OAuth for remote MCP servers yet.

The main advantage is control over scope. Mantinea's keys come in three scopes:

  • read: look things up, no generation.
  • generate: start paid jobs.
  • admin: workspace-level changes.

An agent that makes ads needs generate, not admin. An agent that only reports on what's in the library can work with read. Admin keys belong with whoever runs the workspace, not in an automation.

Rate limits are per key, which is another reason to give each automation its own: 600 requests or 60 paid starts per minute per key. Two busy pipelines sharing one key will throttle each other.

What about estimate-only mode?

It works with either. Add ?mode=estimate to the URL and the session can plan and price everything but can't spend credits. Auth doesn't change.

A good pattern for people: one OAuth connector on the estimate URL for planning and one on the live URL for production. A good pattern for automations: test a new agent against the estimate URL with its key before pointing it at the live one. More in estimate-only MCP mode.

A setup that works for an agency

Say you run ten client brands in one Mantinea workspace, with five people and two automations.

People:

  • Each person has their own Mantinea account (unlimited seats, no extra cost).
  • Each connects Claude or ChatGPT with OAuth, twice: estimate URL and live URL.
  • Workspace spending caps (daily, weekly or monthly) and confirm-before-generate are on, so a stray prompt can't drain the balance.

Automations:

  • The weekly hook-refresh agent gets its own generate key, stored in your secret manager.
  • The reporting script that pulls the asset library into your client dashboard gets its own read key.
  • Neither gets admin.

Hygiene:

  • Name keys after the job, not the person who made them ("weekly-hooks-prod", not "dave-key").
  • Rotate a key when a contractor leaves or a repo goes public by accident.
  • Revoke a key the day its automation is retired.

Common mistakes

Pasting an admin key into a chat client. Now anyone with that laptop can change the workspace. Use OAuth, or at worst a generate key.

Sharing one key across every automation. You lose the audit trail and share one rate-limit bucket. Give each job its own.

Using OAuth for a cron job. If the job runs at 3 a.m. under a person's sign-in, it's tied to that person's session and account. Give it a key.

Forgetting the server name. In both cases the server identifies itself as autonomous, an older product name still used in developer surfaces. That's expected, not a sign you've connected to the wrong thing.

The decision, in one line each

  • A person, in a chat app or editor: OAuth 2.1.
  • A machine, on a schedule or in a pipeline: API key, generate scope.
  • A machine that only reads: API key, read scope.
  • Anyone trying something new: the estimate URL first, whichever auth you use.

Both routes are on every Mantinea plan, including the 14-day trial with 1,000 credits and no card.

The AI UGC Review editors

We review AI UGC ad tools from their own pricing pages, docs and help centers, and we say who each one suits and who should skip it. We work from vendors' own pricing pages, docs and help centers, and date every price we quote. About us.